when i use apache-ode-jbi component invoke a external webservice in
servicemix,error is unknown endpoint
---------------------------------------------------------------------------------------------------------
Key: MYFACESTEST-2
URL: https://issues.apache.org/jira/browse/MYFACESTEST-2
Project: Apache MyFaces Test
Issue Type: Bug
Environment: servicemix3.3,apache-ode-jbi-1.3.3
Reporter: liminjing
hello everyone:
i write an bpel process named example.bpel,which invoke an external webservice,
i use service-http component to bind the external webservice , it deployed
successful,but when i call the bpel process in client,it display the following
error:
org.apache.ode.bpel.iapi.Scheduler$JobProcessorException: java.lang.RuntimeExcep
tion: org.apache.ode.bpel.iapi.ContextException: Unknown endpoint: {http://servi
ce.flow.cvicse.com}CSService:CS
at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineIm
pl.java:452)
at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerIm
pl.java:441)
at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleSchedu
ler.java:411)
at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleSchedu
ler.java:405)
at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(Simpl
eScheduler.java:218)
at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleSchedule
r.java:404)
at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleSchedule
r.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(ThreadPoolExec
utor.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: org.apache.ode.bpel.iapi.ContextException
: Unknown endpoint: {http://service.flow.cvicse.com}CSService:CS
at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:4
64)
at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntime
ContextImpl.java:875)
at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(Pa
rtnerLinkMyRoleImpl.java:206)
at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java
:237)
at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.ja
va:408)
at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineIm
pl.java:439)
... 11 more
Caused by: org.apache.ode.bpel.iapi.ContextException: Unknown endpoint: {http://
service.flow.cvicse.com}CSService:CS
at org.apache.ode.jbi.JbiEndpointReference.getServiceEndpoint(JbiEndpoin
tReference.java:99)
at org.apache.ode.jbi.JbiEndpointReference.toXML(JbiEndpointReference.ja
va:64)
at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeC
ontextImpl.java:777)
at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:100)
at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:4
51)
... 17 more
-------------------------------------
i think the error maybe caused by the endpoint , i use xbean.xml in the
servicemix-http su,it following:
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:Me="http://service.flow.cvicse.com">
<http:endpoint service="Me:CSService"
endpoint="Me:CS"
role="provider"
locationURI="http://localhost:8081/ConcatString/services/CS?wsdl"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
soap="true"
wsdlResource="classpath:CS.wsdl" />
</beans>
-------------------------------
2 the cs.wsdl in the ode component is
<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="http://service.flow.cvicse.com"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://service.flow.cvicse.com"
xmlns:intf="http://service.flow.cvicse.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:smix="http://servicemix.org/wsdl/jbi/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema elementFormDefault="qualified"
targetNamespace="http://service.flow.cvicse.com"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="concatString">
<complexType>
<sequence>
<element name="param" type="xsd:string" />
</sequence>
</complexType>
</element>
<element name="concatStringResponse">
<complexType>
<sequence>
<element name="concatStringReturn" type="xsd:string" />
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="concatStringResponse">
<wsdl:part element="impl:concatStringResponse" name="parameters" />
</wsdl:message>
<wsdl:message name="concatStringRequest">
<wsdl:part element="impl:concatString" name="parameters" />
</wsdl:message>
<wsdl:portType name="CS">
<wsdl:operation name="concatString">
<wsdl:input message="impl:concatStringRequest" name="concatStringRequest" />
<wsdl:output message="impl:concatStringResponse" name="concatStringResponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CSSoapBinding" type="impl:CS">
<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="concatString">
<wsdlsoap:operation soapAction="" />
<wsdl:input name="concatStringRequest">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl:output name="concatStringResponse">
<wsdlsoap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CSService">
<wsdl:port binding="impl:CSSoapBinding" name="CS">
<wsdlsoap:address location="http://localhost:8081/ConcatString/services/CS" />
<smix:endpoint role="provider" defaultMep="in-out"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
-----------------------------------------
i am anxious, thanks for your help.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.