Skip to Content
0
Former Member
Nov 28, 2011 at 02:18 AM

Caught exception while dispatching onCommit events: java.lang.NullPointerEx

52 Views

Hello,

I'm having an strange problem from an UI task complete event. When it's executed it shows me in the logging trace,

commit():Caught exception while dispatching onCommit events: java.lang.NullPointerException

at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:881)

at com.sap.glx.core.internaladapter.ExceptionAdapter$ExceptionHandler$6.inCommit(ExceptionAdapter.java:1308)

at com.sap.glx.core.internaladapter.ExceptionAdapter$ExceptionHandler$6.inCommit(ExceptionAdapter.java:1305)

at com.sap.glx.core.kernel.api.GenericTransitionCallback.inCommit(GenericTransitionCallback.java:27)

at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_commit(AbstractTransaction.java:251)

at com.sap.glx.core.kernel.mmtx.PrimaryTransaction$PersistentCommit.afterCompletion(PrimaryTransaction.java:378)

at com.sap.engine.services.ts.jta.impl.SynchronizationWrapper.afterCompletion(SynchronizationWrapper.java:48)

at com.sap.engine.services.ts.jta.impl2.TXR_TransactionImpl.commitSecondPhase(TXR_TransactionImpl.java:979)

at com.sap.engine.services.ts.jta.impl2.TXR_TransactionImpl.commit(TXR_TransactionImpl.java:1058)

at com.sap.engine.services.ts.jta.impl2.TXR_TransactionManagerImpl.commit(TXR_TransactionManagerImpl.java:317)

at com.sap.engine.services.ts.jta.impl2.TXR_UserTransaction.commit(TXR_UserTransaction.java:141)

at com.sap.glx.core.resource.impl.j2ee.J2EETransactionManagerFactory$JTATransactionManagerImpl.commit(J2EETransactionManagerFactory.java:146)

at com.sap.glx.core.kernel.mmtx.PrimaryTransaction.inDeferredCommit(PrimaryTransaction.java:218)

at com.sap.glx.core.kernel.mmtx.AbstractTransaction.commit(AbstractTransaction.java:86)

at com.sap.glx.core.internaladapter.ExceptionAdapter$ExceptionCompletionCallback.inCompletion(ExceptionAdapter.java:710)

at com.sap.glx.core.kernel.mmtx.AbstractTransaction.internalComplete(AbstractTransaction.java:404)

at com.sap.glx.core.kernel.mmtx.AbstractTransaction.complete(AbstractTransaction.java:350)

at com.sap.glx.core.kernel.mmtx.AbstractTransaction.rollback(AbstractTransaction.java:310)

at com.sap.glx.core.kernel.execution.LeaderWorkerPool$Follower.run(LeaderWorkerPool.java:131)

at com.sap.glx.core.resource.impl.common.WorkWrapper.run(WorkWrapper.java:58)

at com.sap.glx.core.resource.impl.j2ee.J2EEResourceImpl$Sessionizer.run(J2EEResourceImpl.java:249)

at com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator$1.run(ServiceUserManager.java:150)

at java.security.AccessController.doPrivileged(Native Method)

at javax.security.auth.Subject.doAs(Subject.java:337)

at com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator.run(ServiceUserManager.java:147)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:182)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:299)

And the process stop.

I don't know what's happening, I've comment all the code and I'm only executing the complete event in the controller.

wdThis.wdGetBPMReqdepessoalComponentController().fireBPMReqdepessoalCompleteEvent();

I don't understand the error. It seems that somewhere, the process is getting a null exception, but it's executing standard code. Anyone have an idea?

Regards

SU