Topic
No replies
SystemAdmin
SystemAdmin
6042 Posts
ACCEPTED ANSWER

Pinned topic NullPointerException - While calling an EJB from an MDB

‏2009-10-02T21:46:13Z |
I have an MDB(which listens to a queue) and when a message arrives, the mdb picks and calls an EJB. (both are in same App server WAS5.1)
The call is passing sometime and during certain server restarts the call is calling with the below exceptions..

Any insight on the below issue is greatly appreciated. Thanks..

3e5f7e04 SystemOut O TestWorkflow Process JNDI Name : com/example/www/process21006680/TestWorkflow20090808T000000
3e5f7e04 ExceptionUtil E CNTR0020E: Non-application exception occurred while processing method "callTestWorkflow" on bean "BeanId(TestProcessEAR_20090808#TestProcessEJB.jar#TestWorkflowBean, null)". Exception data: java.lang.NullPointerException
at com.ibm.ws.ilm.bpel.InstanceLocatorImpl.getCreateMethod(InstanceLocatorImpl.java:665)
at com.ibm.ws.ilm.bpel.InstanceLocatorImpl.findInstance(InstanceLocatorImpl.java:200)
at com.ibm.ws.ilm.bpel.InstanceLocatorImpl.findInstance(InstanceLocatorImpl.java:149)
at com.example.www.process21006680.TestWorkflowBean.callTestWorkflow(IAATestWorkflowBean.java:85)
at com.example.www.process21006680.EJSRemoteStatelessTestWorkflowBean_b142b068.callTestWorkflow(EJSRemoteStatelessTestWorkflowBean_b142b068.java:155)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:725)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1179)
at $Proxy16.callTestWorkflow(Unknown Source)
at com.example.www.process21006680._TestWorkflow_Stub.callTestWorkflow(_TestWorkflow_Stub.java:551)
at com.jpmc.test.mdb.workflow.TestWorkflowMDBBean.onMessage(TestWorkflowMDBBean.java:46)
at com.ibm.ejs.jms.listener.MDBWrapper$PriviledgedOnMessage.run(MDBWrapper.java:211)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ejs.jms.listener.MDBWrapper.callOnMessage(MDBWrapper.java:200)
at com.ibm.ejs.jms.listener.MDBWrapper.onMessage(MDBWrapper.java:178)
at com.ibm.mq.jms.MQSession.run(MQSession.java:1744)
at com.ibm.ejs.jms.JMSSessionHandle.run(JMSSessionHandle.java:924)
at com.ibm.ejs.jms.listener.ServerSession.connectionConsumerOnMessage(ServerSession.java:752)
at com.ibm.ejs.jms.listener.ServerSession.onMessage(ServerSession.java:527)
at com.ibm.ejs.jms.listener.ServerSession.dispatch(ServerSession.java:494)
at sun.reflect.GeneratedMethodAccessor617.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.ejs.jms.listener.ServerSessionDispatcher.dispatch(ServerSessionDispatcher.java:37)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:91)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:127)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:375)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))