You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by 冯仁君 <fe...@gmail.com> on 2013/06/03 11:19:51 UTC

Fwd: run tuscany2.0 bpel-helloworld-reference testcase

hi, can anyone help me? I know I should forward this mail to tuscany mail
list, but there seem to be very silent and I get no reply.

I think this issue has something to with ODE, can any one give some tips??

---------- Forwarded message ----------
From: 冯仁君 <fe...@gmail.com>
Date: Wed, May 22, 2013 at 3:15 PM
Subject: run tuscany2.0 bpel-helloworld-reference testcase
To: dev@tuscany.apache.org


hi, all!

I run tuscany2.0-src bpel-helloworld-reference helloworld testcase. In the
testcase there are a bpel component and pojo component, and the bpel
component relies on pojo component. Then i get the following errors:

org.oasisopen.sca.ServiceRuntimeException:
java.util.concurrent.TimeoutException: Message exchange
org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@33c3d029timed
out(10000 ms) when waiting for a response!
 at
org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediateFault(MediatorImpl.java:297)
 at
org.apache.tuscany.sca.binding.sca.transform.WSDLMediateTransformer.transformFault(WSDLMediateTransformer.java:70)
 at
org.apache.tuscany.sca.binding.local.LocalSCABindingInvoker.processResponse(LocalSCABindingInvoker.java:117)
at
org.apache.tuscany.sca.core.invocation.InterceptorAsyncImpl.invoke(InterceptorAsyncImpl.java:59)
 at
org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:329)
 at
org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:272)
at
org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:125)
 at
org.apache.tuscany.sca.core.invocation.impl.AsyncJDKInvocationHandler.doInvokeSync(AsyncJDKInvocationHandler.java:238)
 at
org.apache.tuscany.sca.core.invocation.impl.AsyncJDKInvocationHandler.invoke(AsyncJDKInvocationHandler.java:157)
 at $Proxy37.hello(Unknown Source)
at
helloworld.HelloWorldTestCase.testServiceInvocation(HelloWorldTestCase.java:76)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
 at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
 at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
 at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
 at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
 at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
 at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
 at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
 at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
 at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.util.concurrent.TimeoutException: Message exchange
org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@33c3d029timed
out(10000 ms) when waiting for a response!
 at
org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture.get(MyRoleMessageExchangeImpl.java:240)
at
org.apache.tuscany.sca.implementation.bpel.ode.provider.BPELInvoker.doTheWork(BPELInvoker.java:176)
 at
org.apache.tuscany.sca.implementation.bpel.ode.provider.BPELInvoker.invoke(BPELInvoker.java:126)
 at
org.apache.tuscany.sca.binding.local.LocalSCABindingInvocationInterceptor.invoke(LocalSCABindingInvocationInterceptor.java:48)
 at
org.apache.tuscany.sca.core.invocation.InterceptorAsyncImpl.invoke(InterceptorAsyncImpl.java:58)
... 31 more


It seems that the ODE server can't invoke the pojo component correctly, and
when I manually invoke the pojo service directly, it works well.

Can any one help me??

-- 

Best Regards,
Feng Renjun.



-- 

Best Regards,
Feng Renjun.

Re: run tuscany2.0 bpel-helloworld-reference testcase

Posted by 冯仁君 <fe...@gmail.com>.
Thank you for your reply very much.

I am not using correlation, this bpel process is a very simple one. here is
my bpel :====================================================

<process name="HelloWorld"
    targetNamespace="http://helloworld"
    xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
    xmlns:tns="http://helloworld"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:helloworld="http://helloworld"
    xmlns:greetings="http://greetings"
    queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
    expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable">

  <import location="helloworld.wsdl" importType="
http://schemas.xmlsoap.org/wsdl/"
     namespace="http://helloworld"/>

  <import location="../greetings/greetings.wsdl" importType="
http://schemas.xmlsoap.org/wsdl/"
     namespace="http://greetings"/>

   <partnerLinks>
      <partnerLink name="helloPartnerLink"
partnerLinkType="helloworld:HelloPartnerLinkType" myRole="me" />
      <partnerLink name="greetingsPartnerLink"
partnerLinkType="greetings:GreetingsPartnerLinkType" partnerRole="Provider"
initializePartnerRole="yes" />
   </partnerLinks>

   <variables>
     <variable name="helloMessage" messageType="helloworld:HelloMessage"/>
     <variable name="helloMessageResponse"
messageType="helloworld:HelloMessageResponse"/>
     <variable name="greetingsRequest"
messageType="greetings:GreetingsRequest"/>
     <variable name="greetingsResponse"
messageType="greetings:GreetingsResponse"/>
   </variables>

   <sequence>
       <receive
          name="start"
          createInstance="yes"
          operation="hello"
          variable="helloMessage"
          partnerLink="helloPartnerLink"
          portType="helloworld:HelloWorld" />

       <assign name="assignToGreetingsRequest">
          <copy>
              <from>$helloMessage.TestPart</from>
              <to>$greetingsRequest.request</to>
          </copy>
       </assign>

      <invoke name="invokeGreetings"
              operation="getGreetings"
              inputVariable="greetingsRequest"
              outputVariable="greetingsResponse"
              partnerLink="greetingsPartnerLink"
              portType="greetings:Greetings" />

       <assign name="assignToHelloResponse">
          <copy>

<from>$greetingsResponse.parameters/greetings:GreetingsResponse</from>
              <to>$helloMessageResponse.TestPart</to>
          </copy>
       </assign>

       <reply name="end"
              operation="hello"
              partnerLink="helloPartnerLink"
              portType="helloworld:HelloWorld"
              variable="helloMessageResponse"/>
   </sequence>
</process>


and its
wsld:==============================================================================================

<wsdl:definitions name="helloworld"
    targetNamespace="http://helloworld"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://helloworld"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/">

    <wsdl:types>
        <schema elementFormDefault="qualified"
           targetNamespace="http://helloworld"
           xmlns="http://www.w3.org/2001/XMLSchema">

           <element name="hello">
                <complexType>
                    <sequence>
                        <element name="message" type="xsd:string"/>
                    </sequence>
                </complexType>
            </element>

            <element name="helloResponse">
                <complexType>
                    <sequence>
                        <element name="messageResponse" type="xsd:string"/>
                    </sequence>
                </complexType>
            </element>
        </schema>
    </wsdl:types>

    <wsdl:message name="HelloMessage">
        <wsdl:part element="tns:hello" name="TestPart"/>
    </wsdl:message>

    <wsdl:message name="HelloMessageResponse">
        <wsdl:part element="tns:helloResponse" name="TestResponse"/>
    </wsdl:message>

    <wsdl:portType name="HelloWorld">
        <wsdl:operation name="hello">
            <wsdl:input message="tns:HelloMessage" name="TestIn"/>
            <wsdl:output message="tns:HelloMessageResponse" name="TestOut"/>
        </wsdl:operation>
    </wsdl:portType>


    <wsdl:binding name="HelloSoapBinding" type="tns:HelloWorld">
        <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="hello">
            <wsdlsoap:operation soapAction=""/>
            <wsdl:input name="TestIn">
                <wsdlsoap:body use="literal"/>
            </wsdl:input>
            <wsdl:output name="TestOut">
                <wsdlsoap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>

    <wsdl:service name="HelloWorldService">
<wsdl:port name="HelloSoapPort" binding="tns:HelloSoapBinding">
      <soap:address location="http://localhost:8086/ode/processes/helloWorld
"/>
</wsdl:port>
    </wsdl:service>

   <plnk:partnerLinkType name="HelloPartnerLinkType">
       <plnk:role name="me" portType="tns:HelloWorld"/>
       <plnk:role name="you" portType="tns:HelloWorld"/>
   </plnk:partnerLinkType>
</wsdl:definitions>


And below is the wsdl to be
invoked:===============================================================================

<wsdl:definitions name="greetings"
    targetNamespace="http://greetings"
    xmlns:tns="http://greetings"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/">

    <wsdl:types>
        <schema elementFormDefault="qualified" targetNamespace="
http://greetings" xmlns="http://www.w3.org/2001/XMLSchema">

            <element name="greetings">
                <complexType>
                    <sequence>
                        <element name="greetings" type="xsd:string"/>
                    </sequence>
                </complexType>
            </element>

            <element name="greetingsResponse">
                <complexType>
                    <sequence>
                        <element name="greetingsResponse"
type="xsd:string"/>
                    </sequence>
                </complexType>
            </element>

        </schema>
    </wsdl:types>

    <wsdl:message name="GreetingsRequest">
        <wsdl:part element="tns:greetings" name="request"/>
    </wsdl:message>

    <wsdl:message name="GreetingsResponse">
        <wsdl:part element="tns:greetingsResponse" name="response"/>
    </wsdl:message>

    <wsdl:portType name="Greetings">
        <wsdl:operation name="getGreetings">
            <wsdl:input message="tns:GreetingsRequest"
name="GreetingsRequest"/>
            <wsdl:output message="tns:GreetingsResponse"
name="GreetingsResponse"/>
        </wsdl:operation>
    </wsdl:portType>

    <wsdl:binding name="GreetingsSoapBinding" type="tns:Greetings">
        <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="getGreetings">
            <wsdlsoap:operation soapAction=""/>
            <wsdl:input name="GreetingsRequest">
                <wsdlsoap:body use="literal"/>
            </wsdl:input>
            <wsdl:output name="GreetingsResponse">
                <wsdlsoap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>

    <wsdl:service name="GreetingsService">
        <wsdl:port name="GreetingsSoapPort"
binding="tns:GreetingsSoapBinding">
            <wsdlsoap:address location="
http://localhost:8085/ode/processes/greetings"/>
        </wsdl:port>
    </wsdl:service>

    <plnk:partnerLinkType name="GreetingsPartnerLinkType">
        <plnk:role name="Provider" portType="tns:Greetings"/>
    </plnk:partnerLinkType>
</wsdl:definitions>


=============================================================================================================

Some tips on Internet says my process is not correct, but I can't find any
problem with my process.

Although this process is run on Tuscany, Tuscany uses ODE as its BPEL
engine. And now I think this issue comes from ODE not Tuscany.


On Mon, Jun 3, 2013 at 8:47 PM, Wagner Marques <wa...@gmail.com>wrote:

> I do not know if it can help, but I am facing a similar situation but I
> know what is is the cause.
>
> thats is my logs, I think  that is have to do with yours...
>
>
> IA_ALUNO.wsdl}AVALIA_ALUNOService.recebe_avaliacao(...)}
> java.util.concurrent.TimeoutException: Message exchange
>
> org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@5fb7c4timed
> out(120000 ms) when waiting for a response!
> java.util.concurrent.TimeoutException: Message exchange
>
> org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@5fb7c4timed
> out(120000 ms) when waiting for a response!
>     at
>
> org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture.get(MyRoleMessageExchangeImpl.java:245)
>     at
> org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java:161)
>     at
>
> org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java:69)
>
>
> My problem is that my second receive are receiving a message but the
> correlationset is not configure already.
>
> So, if you are working with explicit correlation, make a ckeck can worthy
>
>
>
>
>
> 2013/6/3 冯仁君 <fe...@gmail.com>
>
> > hi, can anyone help me? I know I should forward this mail to tuscany mail
> > list, but there seem to be very silent and I get no reply.
> >
> > I think this issue has something to with ODE, can any one give some
> tips??
> >
> > ---------- Forwarded message ----------
> > From: 冯仁君 <fe...@gmail.com>
> > Date: Wed, May 22, 2013 at 3:15 PM
> > Subject: run tuscany2.0 bpel-helloworld-reference testcase
> > To: dev@tuscany.apache.org
> >
> >
> > hi, all!
> >
> > I run tuscany2.0-src bpel-helloworld-reference helloworld testcase. In
> the
> > testcase there are a bpel component and pojo component, and the bpel
> > component relies on pojo component. Then i get the following errors:
> >
> > org.oasisopen.sca.ServiceRuntimeException:
> > java.util.concurrent.TimeoutException: Message exchange
> >
> >
> org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@33c3d029timed
> > out(10000 ms) when waiting for a response!
> >  at
> >
> >
> org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediateFault(MediatorImpl.java:297)
> >  at
> >
> >
> org.apache.tuscany.sca.binding.sca.transform.WSDLMediateTransformer.transformFault(WSDLMediateTransformer.java:70)
> >  at
> >
> >
> org.apache.tuscany.sca.binding.local.LocalSCABindingInvoker.processResponse(LocalSCABindingInvoker.java:117)
> > at
> >
> >
> org.apache.tuscany.sca.core.invocation.InterceptorAsyncImpl.invoke(InterceptorAsyncImpl.java:59)
> >  at
> >
> >
> org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:329)
> >  at
> >
> >
> org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:272)
> > at
> >
> >
> org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:125)
> >  at
> >
> >
> org.apache.tuscany.sca.core.invocation.impl.AsyncJDKInvocationHandler.doInvokeSync(AsyncJDKInvocationHandler.java:238)
> >  at
> >
> >
> org.apache.tuscany.sca.core.invocation.impl.AsyncJDKInvocationHandler.invoke(AsyncJDKInvocationHandler.java:157)
> >  at $Proxy37.hello(Unknown Source)
> > at
> >
> >
> helloworld.HelloWorldTestCase.testServiceInvocation(HelloWorldTestCase.java:76)
> >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >  at
> >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >  at java.lang.reflect.Method.invoke(Method.java:597)
> > at
> >
> >
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> >  at
> >
> >
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> >  at
> >
> >
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> > at
> >
> >
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> >  at
> >
> >
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
> >  at
> >
> >
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> >  at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> >  at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
> >  at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
> >  at
> >
> >
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> > at
> >
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
> >  at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> >  at
> >
> >
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
> > at
> >
> >
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> >  at
> >
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> >  at
> >
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> > at
> >
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> >  at
> >
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> > Caused by: java.util.concurrent.TimeoutException: Message exchange
> >
> >
> org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@33c3d029timed
> > out(10000 ms) when waiting for a response!
> >  at
> >
> >
> org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture.get(MyRoleMessageExchangeImpl.java:240)
> > at
> >
> >
> org.apache.tuscany.sca.implementation.bpel.ode.provider.BPELInvoker.doTheWork(BPELInvoker.java:176)
> >  at
> >
> >
> org.apache.tuscany.sca.implementation.bpel.ode.provider.BPELInvoker.invoke(BPELInvoker.java:126)
> >  at
> >
> >
> org.apache.tuscany.sca.binding.local.LocalSCABindingInvocationInterceptor.invoke(LocalSCABindingInvocationInterceptor.java:48)
> >  at
> >
> >
> org.apache.tuscany.sca.core.invocation.InterceptorAsyncImpl.invoke(InterceptorAsyncImpl.java:58)
> > ... 31 more
> >
> >
> > It seems that the ODE server can't invoke the pojo component correctly,
> and
> > when I manually invoke the pojo service directly, it works well.
> >
> > Can any one help me??
> >
> > --
> >
> > Best Regards,
> > Feng Renjun.
> >
> >
> >
> > --
> >
> > Best Regards,
> > Feng Renjun.
> >
>
>
>
> --
> Wagner França Marques
> 54731643 (vivo)
> 70768470 (claro)
>



-- 

Best Regards,
Feng Renjun.

Re: run tuscany2.0 bpel-helloworld-reference testcase

Posted by Wagner Marques <wa...@gmail.com>.
I do not know if it can help, but I am facing a similar situation but I
know what is is the cause.

thats is my logs, I think  that is have to do with yours...


IA_ALUNO.wsdl}AVALIA_ALUNOService.recebe_avaliacao(...)}
java.util.concurrent.TimeoutException: Message exchange
org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@5fb7c4timed
out(120000 ms) when waiting for a response!
java.util.concurrent.TimeoutException: Message exchange
org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@5fb7c4timed
out(120000 ms) when waiting for a response!
    at
org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture.get(MyRoleMessageExchangeImpl.java:245)
    at
org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java:161)
    at
org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java:69)


My problem is that my second receive are receiving a message but the
correlationset is not configure already.

So, if you are working with explicit correlation, make a ckeck can worthy





2013/6/3 冯仁君 <fe...@gmail.com>

> hi, can anyone help me? I know I should forward this mail to tuscany mail
> list, but there seem to be very silent and I get no reply.
>
> I think this issue has something to with ODE, can any one give some tips??
>
> ---------- Forwarded message ----------
> From: 冯仁君 <fe...@gmail.com>
> Date: Wed, May 22, 2013 at 3:15 PM
> Subject: run tuscany2.0 bpel-helloworld-reference testcase
> To: dev@tuscany.apache.org
>
>
> hi, all!
>
> I run tuscany2.0-src bpel-helloworld-reference helloworld testcase. In the
> testcase there are a bpel component and pojo component, and the bpel
> component relies on pojo component. Then i get the following errors:
>
> org.oasisopen.sca.ServiceRuntimeException:
> java.util.concurrent.TimeoutException: Message exchange
>
> org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@33c3d029timed
> out(10000 ms) when waiting for a response!
>  at
>
> org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediateFault(MediatorImpl.java:297)
>  at
>
> org.apache.tuscany.sca.binding.sca.transform.WSDLMediateTransformer.transformFault(WSDLMediateTransformer.java:70)
>  at
>
> org.apache.tuscany.sca.binding.local.LocalSCABindingInvoker.processResponse(LocalSCABindingInvoker.java:117)
> at
>
> org.apache.tuscany.sca.core.invocation.InterceptorAsyncImpl.invoke(InterceptorAsyncImpl.java:59)
>  at
>
> org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:329)
>  at
>
> org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:272)
> at
>
> org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:125)
>  at
>
> org.apache.tuscany.sca.core.invocation.impl.AsyncJDKInvocationHandler.doInvokeSync(AsyncJDKInvocationHandler.java:238)
>  at
>
> org.apache.tuscany.sca.core.invocation.impl.AsyncJDKInvocationHandler.invoke(AsyncJDKInvocationHandler.java:157)
>  at $Proxy37.hello(Unknown Source)
> at
>
> helloworld.HelloWorldTestCase.testServiceInvocation(HelloWorldTestCase.java:76)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:597)
> at
>
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>  at
>
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>  at
>
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> at
>
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>  at
>
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
>  at
>
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>  at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>  at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>  at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>  at
>
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>  at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>  at
>
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
> at
>
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>  at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>  at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>  at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> Caused by: java.util.concurrent.TimeoutException: Message exchange
>
> org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@33c3d029timed
> out(10000 ms) when waiting for a response!
>  at
>
> org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture.get(MyRoleMessageExchangeImpl.java:240)
> at
>
> org.apache.tuscany.sca.implementation.bpel.ode.provider.BPELInvoker.doTheWork(BPELInvoker.java:176)
>  at
>
> org.apache.tuscany.sca.implementation.bpel.ode.provider.BPELInvoker.invoke(BPELInvoker.java:126)
>  at
>
> org.apache.tuscany.sca.binding.local.LocalSCABindingInvocationInterceptor.invoke(LocalSCABindingInvocationInterceptor.java:48)
>  at
>
> org.apache.tuscany.sca.core.invocation.InterceptorAsyncImpl.invoke(InterceptorAsyncImpl.java:58)
> ... 31 more
>
>
> It seems that the ODE server can't invoke the pojo component correctly, and
> when I manually invoke the pojo service directly, it works well.
>
> Can any one help me??
>
> --
>
> Best Regards,
> Feng Renjun.
>
>
>
> --
>
> Best Regards,
> Feng Renjun.
>



-- 
Wagner França Marques
54731643 (vivo)
70768470 (claro)