WLS 9.2.2 - Intermittent NullPointerException in EJB transaction from WLS transaction manager (Doc ID 1096255.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle WebLogic Server - Version 9.2 to 10.3.2
Information in this document applies to any platform.

Symptoms

Application is deployed to WLS 9.2.2.  There are intermittent NullPointerException within WLS EJB container during EJB transactions, resulting in transaction rollback. 

Server log shows the following exception stack trace -

javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: java.lang.NullPointerException: javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: java.lang.NullPointerException
java.lang.NullPointerException
at java.util.LinkedList.indexOf(LinkedList.java:421)
at java.util.LinkedList.contains(LinkedList.java:191)
at weblogic.ejb.container.internal.TxManager$TxListener.isFlushPending(TxManager.java:686)
at weblogic.ejb.container.internal.TxManager$TxListener.getNotModifiedKeys(TxManager.java:659)
at weblogic.ejb.container.internal.TxManager.getNotModifiedOtherTxKeys(TxManager.java:218)
at weblogic.ejb.container.cache.EntityPassivator.passivateNotInOurTx(EntityPassivator.java:332)
at weblogic.ejb.container.cache.EntityPassivator.passivate(EntityPassivator.java:86)
at weblogic.ejb.container.cache.EntityCache$SizeTracker.shrinkNext(EntityCache.java:623)
at weblogic.ejb.container.cache.EntityCache.put(EntityCache.java:181)
at weblogic.ejb.container.manager.DBManager.create(DBManager.java:1515)
at weblogic.ejb.container.manager.DBManager.localCreate(DBManager.java:1354)
at weblogic.ejb.container.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.java:205)
at weblogic.ejb.container.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.java:179)
at com.xxx.server.components.MyEJB_if5c5v_LocalHomeImpl.create(MyEJB_if5c5v_LocalHomeImpl.java:101)
at sun.reflect.GeneratedMethodAccessor295.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.xxx.foundation.servicelocator.EJBService.createLocalEntity(EJBService.java:461)
... ... ...
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
... ... ...
javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: java.lang.NullPointerException
at weblogic.ejb.container.internal.EJBRuntimeUtils.throwTransactionRolledbackLocal(EJBRuntimeUtils.java:226)
at weblogic.ejb.container.internal.BaseLocalObject.handleSystemException(BaseLocalObject.java:671)
at weblogic.ejb.container.internal.BaseEJBLocalHome.handleSystemException(BaseEJBLocalHome.java:150)
at weblogic.ejb.container.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.java:223)
at weblogic.ejb.container.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.java:179)
at com.xxx.server.components..MyEJB_if5c5v_LocalHomeImpl.create(MyEJB_if5c5v_LocalHomeImpl.java:101)
at sun.reflect.GeneratedMethodAccessor295.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.xxx.foundation.servicelocator.EJBService.createLocalEntity(EJBService.java:461)
... ... ...
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:3962)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.lang.NullPointerException
at java.util.LinkedList.indexOf(LinkedList.java:421)
at java.util.LinkedList.contains(LinkedList.java:191)
at weblogic.ejb.container.internal.TxManager$TxListener.isFlushPending(TxManager.java:686)
at weblogic.ejb.container.internal.TxManager$TxListener.getNotModifiedKeys(TxManager.java:659)
at weblogic.ejb.container.internal.TxManager.getNotModifiedOtherTxKeys(TxManager.java:218)
at weblogic.ejb.container.cache.EntityPassivator.passivateNotInOurTx(EntityPassivator.java:332)
at weblogic.ejb.container.cache.EntityPassivator.passivate(EntityPassivator.java:86)
at weblogic.ejb.container.cache.EntityCache$SizeTracker.shrinkNext(EntityCache.java:623)
at weblogic.ejb.container.cache.EntityCache.put(EntityCache.java:181)
at weblogic.ejb.container.manager.DBManager.create(DBManager.java:1515)
at weblogic.ejb.container.manager.DBManager.localCreate(DBManager.java:1354)
at weblogic.ejb.container.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.java:205)
... 25 more

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