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

[jira] Commented: (ODE-614) ClassCastException: org.apache.ode.jbi.JbiEndpointReference

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

Ian Harrigan commented on ODE-614:
----------------------------------

Im trying to see if the patch for this issue works, however, would it be possible for someone to either give me a quick overview or point me in the direction of how to apply this patch? Also, assuming it doesnt work is the patch easy enough to revert?

Thanks in advance,
Ian Harrigan

> ClassCastException: org.apache.ode.jbi.JbiEndpointReference
> -----------------------------------------------------------
>
>                 Key: ODE-614
>                 URL: https://issues.apache.org/jira/browse/ODE-614
>             Project: ODE
>          Issue Type: Bug
>          Components: JBI Integration
>    Affects Versions: 1.3.2
>            Reporter: Alexis Midon
>            Assignee: Alexis Midon
>         Attachments: ODE-614.potential.patch
>
>
> Im trying to invoke an external axis2 web service from a ODE BPEL project deployed inside a ServiceMix JBI container but every time i try to invoke i get the following errors.
> java.lang.ClassCastException: org.apache.ode.jbi.JbiEndpointReference
>        at org.apache.ode.jbi.EndpointReferenceContextImpl.getConfigLookup(EndpointReferenceContextImpl.java:116)
>        at org.apache.ode.store.ProcessConfImpl.getEndpointProperties(ProcessConfImpl.java:417)
>        at org.apache.ode.bpel.engine.BpelProcess.getTimeout(BpelProcess.java:1089)
>        at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.scheduleInvokeCheck(BpelRuntimeContextImpl.java:839)
>        at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:777)
>        at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:100)
>        at sun.reflect.GeneratedMethodAccessor61.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)
>        at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>        at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:870)
>        at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
>        at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:237)
>        at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:408)
>        at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:439)
>        at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:441)
>        at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:411)
>        at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:405)
>        at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:218)
>        at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:404)
>        at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:401)
>        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)

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


Re: [jira] Commented: (ODE-614) ClassCastException: org.apache.ode.jbi.JbiEndpointReference

Posted by Ian Harrigan <ia...@hotmail.com>.
Ok, ive managed to build ODE version 2.1 (finally). Ive tried to apply the 
suggested patch but couldn’t work out how to do it, howerver, the patch is 
simple (and small enough) for me to make manually, however, when I then 
deploy this new version of JBI service assembly I get the following 
exception (and the axis2 web service is never callled):

INFO  - Query                          - This query on type "class 
org.apache.ode.dao.jpa.MessageExchangeDAOImpl" must load the entire 
candidate class extent and evaluate the query in-memory.  This may be very 
slow.  The query must be executed in memory because OpenJPA is configured 
with IgnoreCache=false and FlushBeforeQueries=false and there are dirty 
instances that may affect the query's outcome in the cache.
 THE PATCH WAS APPLIED (this is a simple system.out to ensure that the patch 
was working)
WARN  - OdeConsumer                    - Received a response for unknown 
partner role message exchange ID:192.168.1.105-1219bbe638a-2:1
ERROR - OdeService                     - ODE MEX 
{MyRoleMex#hqejbhcnphr4bjrhoutd9r [Client null] calling 
{http://xmlns.apache.ode.com/DynamicPLTest}TestProvider.PerformTest(...)} 
resulted in an error.

WARN  - jetty                          - /DynamicPLTest/
java.lang.Exception: java.util.concurrent.TimeoutException
        at 
org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:209)
        at 
org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBridgeServlet.java:71)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
        at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:757)
        at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
        at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:371)
        at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
        at 
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation.run(SelectChannelConnector.java:525)
        at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
Caused by: java.util.concurrent.TimeoutException
        at 
org.apache.ode.bpel.engine.MessageExchangeImpl$ResponseFuture.get(MessageExchangeImpl.java:441)
        at 
org.apache.ode.bpel.engine.MessageExchangeImpl$ResponseFuture.get(MessageExchangeImpl.java:418)
        at 
org.apache.ode.bpel.engine.UnreliableMyRoleMessageExchangeImpl.invokeBlocking(UnreliableMyRoleMessageExchangeImpl.java:68)
        at org.apache.ode.jbi.OdeService.invokeOde(OdeService.java:205)
        at 
org.apache.ode.jbi.OdeService.onJbiMessageExchange(OdeService.java:142)
        at 
org.apache.ode.jbi.JbiMessageExchangeEventRouter.onJbiMessageExchange(JbiMessageExchangeEventRouter.java:67)
        at org.apache.ode.jbi.Receiver$1.run(Receiver.java:179)
        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)

Any ideas?

Cheers,
Ian Harrigan




--------------------------------------------------
From: "Ian Harrigan (JIRA)" <ji...@apache.org>
Sent: Monday, June 01, 2009 8:48 AM
To: <de...@ode.apache.org>
Subject: [jira] Commented: (ODE-614) ClassCastException: 
org.apache.ode.jbi.JbiEndpointReference

>
>    [ 
> https://issues.apache.org/jira/browse/ODE-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715007#action_12715007 ]
>
> Ian Harrigan commented on ODE-614:
> ----------------------------------
>
> Im trying to see if the patch for this issue works, however, would it be 
> possible for someone to either give me a quick overview or point me in the 
> direction of how to apply this patch? Also, assuming it doesnt work is the 
> patch easy enough to revert?
>
> Thanks in advance,
> Ian Harrigan
>
>> ClassCastException: org.apache.ode.jbi.JbiEndpointReference
>> -----------------------------------------------------------
>>
>>                 Key: ODE-614
>>                 URL: https://issues.apache.org/jira/browse/ODE-614
>>             Project: ODE
>>          Issue Type: Bug
>>          Components: JBI Integration
>>    Affects Versions: 1.3.2
>>            Reporter: Alexis Midon
>>            Assignee: Alexis Midon
>>         Attachments: ODE-614.potential.patch
>>
>>
>> Im trying to invoke an external axis2 web service from a ODE BPEL project 
>> deployed inside a ServiceMix JBI container but every time i try to invoke 
>> i get the following errors.
>> java.lang.ClassCastException: org.apache.ode.jbi.JbiEndpointReference
>>        at 
>> org.apache.ode.jbi.EndpointReferenceContextImpl.getConfigLookup(EndpointReferenceContextImpl.java:116)
>>        at 
>> org.apache.ode.store.ProcessConfImpl.getEndpointProperties(ProcessConfImpl.java:417)
>>        at 
>> org.apache.ode.bpel.engine.BpelProcess.getTimeout(BpelProcess.java:1089)
>>        at 
>> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.scheduleInvokeCheck(BpelRuntimeContextImpl.java:839)
>>        at 
>> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:777)
>>        at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:100)
>>        at sun.reflect.GeneratedMethodAccessor61.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)
>>        at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>>        at 
>> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:870)
>>        at 
>> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
>>        at 
>> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:237)
>>        at 
>> org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:408)
>>        at 
>> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:439)
>>        at 
>> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:441)
>>        at 
>> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:411)
>>        at 
>> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:405)
>>        at 
>> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:218)
>>        at 
>> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:404)
>>        at 
>> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:401)
>>        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)
>
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>