WLS 9.2.3 - NullPointerException in javax.ejb.FinderException during FindByPrimaryKey (Doc ID 1276038.1)

Last updated on FEBRUARY 22, 2017

Applies to:

Oracle Weblogic Server - Version 9.2 to 10.3.3
Information in this document applies to any platform.

Symptoms

The following NullPointerException was thrown during runtime of EJB application -

Caused by: javax.ejb.FinderException: Exception raised in findByPrimaryKey
java.lang.NullPointerException
java.lang.NullPointerException
at weblogic.ejb.container.cache.EntityCache$MRUElement.remove(EntityCache.java:514)
at weblogic.ejb.container.cache.EntityCache$SizeTracker.shrinkNext(EntityCache.java:584)
at weblogic.ejb.container.cache.EntityCache.put(EntityCache.java:181)
at weblogic.ejb.container.manager.DBManager.finderCacheInsert(DBManager.java:1869)
at weblogic.ejb.container.manager.BaseEntityManager.finderCacheInsert(BaseEntityManager.java:2125)
at weblogic.ejb.container.manager.DBManager.getBeanFromRS(DBManager.java:1790)
at weblogic.ejb.container.manager.BaseEntityManager.getBeanFromRS(BaseEntityManager.java:2009)
at weblogic.ejb.container.cmp.rdbms.RDBMSPersistenceManager.getBeanFromRS(RDBMSPersistenceManager.java:3364)
at it.sella.security.ExecutionContext_oecide__WebLogic_CMP_RDBMS.ejbFindByPrimaryKey(ExecutionContext_oecide__WebLogic_CMP_RDBMS.java:871)
at sun.reflect.GeneratedMethodAccessor290.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at weblogic.ejb.container.cmp.rdbms.RDBMSPersistenceManager.findByPrimaryKey(RDBMSPersistenceManager.java:361)
at weblogic.ejb.container.manager.BaseEntityManager.findByPrimaryKey(BaseEntityManager.java:2328)
at weblogic.ejb.container.manager.BaseEntityManager.remoteFindByPrimaryKey(BaseEntityManager.java:2269)
at weblogic.ejb.container.internal.EntityEJBHome.findByPrimaryKey(EntityEJBHome.java:376)
at it.sella.security.ExecutionContext_oecide_HomeImpl.findByPrimaryKey(ExecutionContext_oecide_HomeImpl.java:193)
at it.sella.security.internal.impl.SellaSecurityManagerImpl.getExecutionContextRemote(SellaSecurityManagerImpl.java:491)
at it.sella.security.internal.impl.SellaSecurityManagerImpl.getExecutionContext(SellaSecurityManagerImpl.java:462)
at it.sella.security.internal.impl.SellaSecurityManagerImpl.getExecutionContextView(SellaSecurityManagerImpl.java:879)
at it.sella.security.internal.impl.AbstractSellaSecurityManagerProxy.getExecutionContextView(AbstractSellaSecurityManagerProxy.java:102)
----------


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms