You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Karthick Sankarachary (JIRA)" <ji...@apache.org> on 2009/09/22 20:06:18 UTC

[jira] Issue Comment Edited: (ODE-665) Publish / Subscribe unit test throws error

    [ https://issues.apache.org/jira/browse/ODE-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12758322#action_12758322 ] 

Karthick Sankarachary edited comment on ODE-665 at 9/22/09 11:06 AM:
---------------------------------------------------------------------

These exceptions are most likely innocuous. In the case of a two-way pub-sub request, the server will get back one response from each subscriber. By design, we treat one of those responses as the response of the original pub-sub request, and drop the rest. I should probably try to gracefully handle the responses that do get dropped so that they don't cause any exceptions. I will look into how that might be achieved.

      was (Author: karthick):
    These exceptions are most likely innocuous. By design, in the case of a two-way pub-sub request, the server will get back one response from each subscriber. We treat one of those responses as the response of the original pub-sub request, and drop the rest. I should probably try to gracefully handle the responses that do get dropped so that they don't cause any exceptions. I will look into how that might be achieved.
  
> Publish / Subscribe unit test throws error
> ------------------------------------------
>
>                 Key: ODE-665
>                 URL: https://issues.apache.org/jira/browse/ODE-665
>             Project: ODE
>          Issue Type: Bug
>    Affects Versions: 1.3.3
>         Environment: ODE unit tests
>            Reporter: Rafal Rusin
>            Assignee: Karthick Sankarachary
>
> buildr _1.2.10_ test:PubSubTest
> gives sometimes NPE and sometimes a following exception. Sometimes there's no sign of test error, but those exceptions show up in logs.
> [junit] <message><TestPart>Hello World</TestPart></message>
>     [junit] ERROR - JacobVPU$JacobThreadImpl.run(463) | Method "run" in class "org.apache.ode.bpel.runtime.REPLY" threw an unexpected exception.
>     [junit] java.lang.IllegalStateException: Not in REQUEST state!
>     [junit] 	at org.apache.ode.bpel.engine.MessageExchangeImpl.setResponse(MessageExchangeImpl.java:166)
>     [junit] 	at org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.reply(PartnerRoleMessageExchangeImpl.java:83)
>     [junit] 	at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.reply(BpelRuntimeContextImpl.java:551)
>     [junit] 	at org.apache.ode.bpel.runtime.REPLY.run(REPLY.java:64)
>     [junit] 	at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
>     [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [junit] 	at java.lang.reflect.Method.invoke(Method.java:585)
>     [junit] 	at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
>     [junit] 	at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>     [junit] 	at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:849)
>     [junit] 	at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:203)
>     [junit] 	at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:202)
>     [junit] 	at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:370)
>     [junit] 	at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:419)
>     [junit] 	at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:373)
>     [junit] 	at org.apache.ode.il.MockScheduler.doExecute(MockScheduler.java:261)
>     [junit] 	at org.apache.ode.il.MockScheduler.access$000(MockScheduler.java:46)
>     [junit] 	at org.apache.ode.il.MockScheduler$3$1.call(MockScheduler.java:110)
>     [junit] 	at org.apache.ode.il.MockScheduler.execTransaction(MockScheduler.java:134)
>     [junit] 	at org.apache.ode.il.MockScheduler$4.call(MockScheduler.java:147)
>     [junit] 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
>     [junit] 	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
>     [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>     [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>     [junit] 	at java.lang.Thread.run(Thread.java:595)
>     [junit] ERROR - BpelEngineImpl.onScheduledJob(428) | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, inmem=true, mexid=4611686018427387905, pid={http://ode/bpel/unit-test}HelloWorld1-1}
>     [junit] java.lang.RuntimeException: java.lang.IllegalStateException: Not in REQUEST state!
>     [junit] 	at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:464)
>     [junit] 	at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>     [junit] 	at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:849)
>     [junit] 	at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:203)
>     [junit] 	at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:202)
>     [junit] 	at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:370)
>     [junit] 	at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:419)
>     [junit] 	at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:373)
>     [junit] 	at org.apache.ode.il.MockScheduler.doExecute(MockScheduler.java:261)
>     [junit] 	at org.apache.ode.il.MockScheduler.access$000(MockScheduler.java:46)
>     [junit] 	at org.apache.ode.il.MockScheduler$3$1.call(MockScheduler.java:110)
>     [junit] 	at org.apache.ode.il.MockScheduler.execTransaction(MockScheduler.java:134)
>     [junit] 	at org.apache.ode.il.MockScheduler$4.call(MockScheduler.java:147)
>     [junit] 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
>     [junit] 	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
>     [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>     [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>     [junit] 	at java.lang.Thread.run(Thread.java:595)
>     [junit] Caused by: java.lang.IllegalStateException: Not in REQUEST state!
>     [junit] 	at org.apache.ode.bpel.engine.MessageExchangeImpl.setResponse(MessageExchangeImpl.java:166)
>     [junit] 	at org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.reply(PartnerRoleMessageExchangeImpl.java:83)
>     [junit] 	at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.reply(BpelRuntimeContextImpl.java:551)
>     [junit] 	at org.apache.ode.bpel.runtime.REPLY.run(REPLY.java:64)
>     [junit] 	at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
>     [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [junit] 	at java.lang.reflect.Method.invoke(Method.java:585)
>     [junit] 	at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
>     [junit] 	... 17 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.