You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by "Jackson, Douglas" <do...@siemens.com> on 2009/04/30 01:17:46 UTC
NullPointerException during invoke
Hi!
I am encountering the following NullPointerException when using Ode 2 beta 2 in a Jetty application. Other calls very similar to this one are working, so I am at a loss as to why this one fails. Perhaps someone can tell from the traceback what a possible cause might be.
-Doug.
[FATAL] 2009-04-29 18:11:28,431 org.apache.ode.bpel.engine.BpelInstanceWorker:120 - Unexpected error in instance 13606 thread Thread[ODEServerImpl-1,5,main]; the error was not handled, it is likely that this has corrupted the state of theinstance!
org.apache.ode.bpel.iapi.BpelEngineException: java.lang.RuntimeException: java.lang.NullPointerException
at org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:92)
at org.apache.ode.bpel.engine.BpelServerImpl$TransactedRunnable.run(BpelServerImpl.java:981)
at org.apache.ode.bpel.engine.BpelInstanceWorker$2.call(BpelInstanceWorker.java:143)
at org.apache.ode.bpel.engine.BpelInstanceWorker$2.call(BpelInstanceWorker.java:142)
at org.apache.ode.bpel.engine.BpelInstanceWorker.doInstanceWork(BpelInstanceWorker.java:174)
at org.apache.ode.bpel.engine.BpelInstanceWorker.run(BpelInstanceWorker.java:141)
at org.apache.ode.bpel.engine.ODEProcess$ProcessRunnable.run(ODEProcess.java:1189)
at org.apache.ode.bpel.engine.BpelServerImpl$ServerRunnable.run(BpelServerImpl.java:923)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:464)
at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
at org.apache.ode.bpel.rtrep.v2.RuntimeInstanceImpl.execute(RuntimeInstanceImpl.java:639)
at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:593)
at org.apache.ode.bpel.engine.ODEProcess.executeContinueInstancePartnerRoleResponseReceived(ODEProcess.java:473)
at org.apache.ode.bpel.engine.PartnerLinkPartnerRoleImpl$UnreliableInvoker$2.run(PartnerLinkPartnerRoleImpl.java:395)
at org.apache.ode.bpel.engine.Contexts$1.call(Contexts.java:86)
at org.apache.ode.bpel.engine.Contexts$1.call(Contexts.java:85)
at org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:106)
at org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:83)
... 13 more
Caused by: java.lang.NullPointerException
at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:508)
at org.apache.ode.bpel.rtrep.v2.RuntimeInstanceImpl.invoke(RuntimeInstanceImpl.java:582)
at org.apache.ode.bpel.rtrep.v2.INVOKE.run(INVOKE.java:97)
at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
... 22 more
RE: NullPointerException during invoke
Posted by "Jackson, Douglas" <do...@siemens.com>.
Hi!
The <invoke> entry was missing in the deploy.xml for that process for that wsdl file/endpoint. Usually that was caught by the compiler. As stated previously I was using another endpoint from the same wsdl in another process deployed on that Ode server. Perhaps that was enough for the compiler.
cj - It was not a dynamic endpoint.
-Doug.
-----Original Message-----
From: Matthieu Riou [mailto:matthieu.riou@gmail.com]
Sent: Thursday, April 30, 2009 10:16 AM
To: user@ode.apache.org
Subject: Re: NullPointerException during invoke
On Wed, Apr 29, 2009 at 4:17 PM, Jackson, Douglas <
douglas.s.jackson@siemens.com> wrote:
> Hi!
> I am encountering the following NullPointerException when using Ode 2 beta
> 2 in a Jetty application. Other calls very similar to this one are working,
> so I am at a loss as to why this one fails. Perhaps someone can tell from
> the traceback what a possible cause might be.
It's a bit unusual, it looks like the engine doesn't know about the partner
link your invoke is using. But I believe we are catching this type of
discrepancy at compile time so can you check if something could be amiss
w.r.t. your partner links? I'd also be curious to know what we're missing.
Thanks,
Matthieu
>
> -Doug.
>
>
> [FATAL] 2009-04-29 18:11:28,431
> org.apache.ode.bpel.engine.BpelInstanceWorker:120 - Unexpected error in
> instance 13606 thread Thread[ODEServerImpl-1,5,main]; the error was not
> handled, it is likely that this has corrupted the state of theinstance!
> org.apache.ode.bpel.iapi.BpelEngineException: java.lang.RuntimeException:
> java.lang.NullPointerException
> at
> org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:92)
> at
> org.apache.ode.bpel.engine.BpelServerImpl$TransactedRunnable.run(BpelServerImpl.java:981)
> at
> org.apache.ode.bpel.engine.BpelInstanceWorker$2.call(BpelInstanceWorker.java:143)
> at
> org.apache.ode.bpel.engine.BpelInstanceWorker$2.call(BpelInstanceWorker.java:142)
> at
> org.apache.ode.bpel.engine.BpelInstanceWorker.doInstanceWork(BpelInstanceWorker.java:174)
> at
> org.apache.ode.bpel.engine.BpelInstanceWorker.run(BpelInstanceWorker.java:141)
> at
> org.apache.ode.bpel.engine.ODEProcess$ProcessRunnable.run(ODEProcess.java:1189)
> at
> org.apache.ode.bpel.engine.BpelServerImpl$ServerRunnable.run(BpelServerImpl.java:923)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.RuntimeException: java.lang.NullPointerException
> at
> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:464)
> at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
> at
> org.apache.ode.bpel.rtrep.v2.RuntimeInstanceImpl.execute(RuntimeInstanceImpl.java:639)
> at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:593)
> at
> org.apache.ode.bpel.engine.ODEProcess.executeContinueInstancePartnerRoleResponseReceived(ODEProcess.java:473)
> at
> org.apache.ode.bpel.engine.PartnerLinkPartnerRoleImpl$UnreliableInvoker$2.run(PartnerLinkPartnerRoleImpl.java:395)
> at org.apache.ode.bpel.engine.Contexts$1.call(Contexts.java:86)
> at org.apache.ode.bpel.engine.Contexts$1.call(Contexts.java:85)
> at
> org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:106)
> at
> org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:83)
> ... 13 more
> Caused by: java.lang.NullPointerException
> at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:508)
> at
> org.apache.ode.bpel.rtrep.v2.RuntimeInstanceImpl.invoke(RuntimeInstanceImpl.java:582)
> at org.apache.ode.bpel.rtrep.v2.INVOKE.run(INVOKE.java:97)
> at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 22 more
>
Re: NullPointerException during invoke
Posted by Matthieu Riou <ma...@gmail.com>.
On Wed, Apr 29, 2009 at 4:17 PM, Jackson, Douglas <
douglas.s.jackson@siemens.com> wrote:
> Hi!
> I am encountering the following NullPointerException when using Ode 2 beta
> 2 in a Jetty application. Other calls very similar to this one are working,
> so I am at a loss as to why this one fails. Perhaps someone can tell from
> the traceback what a possible cause might be.
It's a bit unusual, it looks like the engine doesn't know about the partner
link your invoke is using. But I believe we are catching this type of
discrepancy at compile time so can you check if something could be amiss
w.r.t. your partner links? I'd also be curious to know what we're missing.
Thanks,
Matthieu
>
> -Doug.
>
>
> [FATAL] 2009-04-29 18:11:28,431
> org.apache.ode.bpel.engine.BpelInstanceWorker:120 - Unexpected error in
> instance 13606 thread Thread[ODEServerImpl-1,5,main]; the error was not
> handled, it is likely that this has corrupted the state of theinstance!
> org.apache.ode.bpel.iapi.BpelEngineException: java.lang.RuntimeException:
> java.lang.NullPointerException
> at
> org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:92)
> at
> org.apache.ode.bpel.engine.BpelServerImpl$TransactedRunnable.run(BpelServerImpl.java:981)
> at
> org.apache.ode.bpel.engine.BpelInstanceWorker$2.call(BpelInstanceWorker.java:143)
> at
> org.apache.ode.bpel.engine.BpelInstanceWorker$2.call(BpelInstanceWorker.java:142)
> at
> org.apache.ode.bpel.engine.BpelInstanceWorker.doInstanceWork(BpelInstanceWorker.java:174)
> at
> org.apache.ode.bpel.engine.BpelInstanceWorker.run(BpelInstanceWorker.java:141)
> at
> org.apache.ode.bpel.engine.ODEProcess$ProcessRunnable.run(ODEProcess.java:1189)
> at
> org.apache.ode.bpel.engine.BpelServerImpl$ServerRunnable.run(BpelServerImpl.java:923)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.RuntimeException: java.lang.NullPointerException
> at
> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:464)
> at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
> at
> org.apache.ode.bpel.rtrep.v2.RuntimeInstanceImpl.execute(RuntimeInstanceImpl.java:639)
> at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:593)
> at
> org.apache.ode.bpel.engine.ODEProcess.executeContinueInstancePartnerRoleResponseReceived(ODEProcess.java:473)
> at
> org.apache.ode.bpel.engine.PartnerLinkPartnerRoleImpl$UnreliableInvoker$2.run(PartnerLinkPartnerRoleImpl.java:395)
> at org.apache.ode.bpel.engine.Contexts$1.call(Contexts.java:86)
> at org.apache.ode.bpel.engine.Contexts$1.call(Contexts.java:85)
> at
> org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:106)
> at
> org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:83)
> ... 13 more
> Caused by: java.lang.NullPointerException
> at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:508)
> at
> org.apache.ode.bpel.rtrep.v2.RuntimeInstanceImpl.invoke(RuntimeInstanceImpl.java:582)
> at org.apache.ode.bpel.rtrep.v2.INVOKE.run(INVOKE.java:97)
> at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 22 more
>
Re: NullPointerException during invoke
Posted by Ciaran <ci...@gmail.com>.
To satisfy an idle curiosity I have, you don't happen to be using dynamic
endpoint references for setting up this invoke in your BPEL do you ?
-cj.
On Thu, Apr 30, 2009 at 12:17 AM, Jackson, Douglas <
douglas.s.jackson@siemens.com> wrote:
> Hi!
> I am encountering the following NullPointerException when using Ode 2 beta
> 2 in a Jetty application. Other calls very similar to this one are working,
> so I am at a loss as to why this one fails. Perhaps someone can tell from
> the traceback what a possible cause might be.
> -Doug.
>
>
> [FATAL] 2009-04-29 18:11:28,431
> org.apache.ode.bpel.engine.BpelInstanceWorker:120 - Unexpected error in
> instance 13606 thread Thread[ODEServerImpl-1,5,main]; the error was not
> handled, it is likely that this has corrupted the state of theinstance!
> org.apache.ode.bpel.iapi.BpelEngineException: java.lang.RuntimeException:
> java.lang.NullPointerException
> at
> org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:92)
> at
> org.apache.ode.bpel.engine.BpelServerImpl$TransactedRunnable.run(BpelServerImpl.java:981)
> at
> org.apache.ode.bpel.engine.BpelInstanceWorker$2.call(BpelInstanceWorker.java:143)
> at
> org.apache.ode.bpel.engine.BpelInstanceWorker$2.call(BpelInstanceWorker.java:142)
> at
> org.apache.ode.bpel.engine.BpelInstanceWorker.doInstanceWork(BpelInstanceWorker.java:174)
> at
> org.apache.ode.bpel.engine.BpelInstanceWorker.run(BpelInstanceWorker.java:141)
> at
> org.apache.ode.bpel.engine.ODEProcess$ProcessRunnable.run(ODEProcess.java:1189)
> at
> org.apache.ode.bpel.engine.BpelServerImpl$ServerRunnable.run(BpelServerImpl.java:923)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.RuntimeException: java.lang.NullPointerException
> at
> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:464)
> at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
> at
> org.apache.ode.bpel.rtrep.v2.RuntimeInstanceImpl.execute(RuntimeInstanceImpl.java:639)
> at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:593)
> at
> org.apache.ode.bpel.engine.ODEProcess.executeContinueInstancePartnerRoleResponseReceived(ODEProcess.java:473)
> at
> org.apache.ode.bpel.engine.PartnerLinkPartnerRoleImpl$UnreliableInvoker$2.run(PartnerLinkPartnerRoleImpl.java:395)
> at org.apache.ode.bpel.engine.Contexts$1.call(Contexts.java:86)
> at org.apache.ode.bpel.engine.Contexts$1.call(Contexts.java:85)
> at
> org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:106)
> at
> org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:83)
> ... 13 more
> Caused by: java.lang.NullPointerException
> at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:508)
> at
> org.apache.ode.bpel.rtrep.v2.RuntimeInstanceImpl.invoke(RuntimeInstanceImpl.java:582)
> at org.apache.ode.bpel.rtrep.v2.INVOKE.run(INVOKE.java:97)
> at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 22 more
>