Hi, I'm trying to launch a simple process with bpe. My configuration is the following
SOAP/HTTP client <---> servicemix-http <---> servicemix-bpe <- ... the bpe process link interal endpoint -> The process seems to deploy correctly, launching the process I receive the following error: DEBUG - BaseLifeCycle.processExchange(362) | Received exchange: status: Active, role: Provider ERROR - BaseLifeCycle$2.run(242) | Error processing exchange [EMAIL PROTECTED] org.apache.ode.bpe.correlation.CorrelationServiceException: An error occurred when attempting to route the service request for operation: EchoRequest, port type: DoubleEcho, target namespace http://it.imolinfo.demo, correlation key(s): to a business process instance. The correlation definition for this operation is as follows: . Inspect the business process design and verify that a business process instance is waiting for this request to be sent. at org.apache.ode.bpe.correlation.CorrelationService.correlateEvent(CorrelationService.java:361) at org.apache.ode.bpe.bped.unmanaged.EventDirectorSLImpl.sendEvent(EventDirectorSLImpl.java:116) at org.apache.servicemix.bpe.BPEEndpoint.process(BPEEndpoint.java:99) at org.apache.servicemix.common.BaseLifeCycle.processExchange(BaseLifeCycle.java:374) at org.apache.servicemix.common.BaseLifeCycle $2.run(BaseLifeCycle.java:240) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) DEBUG - DeliveryChannelImpl.traceMessageExchange(342) | Sent: MessageExchange[ id: ID:raffaele-32840-1143727115057-9:0 status: Error role: provider service: {http://it.imolinfo.demo}DoubleEcho endpoint: DoubleEchoJBIPort operation: {http://it.imolinfo.demo.types}EchoRequest in: <?xml version="1.0" encoding="UTF-8"?><m:EchoRequest xmlns:m="http://it.imolinfo.demo.types" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><msg1>Hello</msg1><msg2>World</msg2></m:EchoRequest> error: An error occurred when attempting to route the service request for operation: EchoRequest, port type: DoubleEcho, target namespace http://it.imolinfo.demo, correlation key(s): to a business process instance. The correlation definition for this operation is as follows: . Inspect the business process design and verify that a business process instance is waiting for this request to be sent. ] I'm not an expert of bpel but it looks like bpe is looking for an existing instance of a process wich is not what I expect because the process is just starting. I attach the content of the bpe service unit. thanks Raffaele
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:tns="http://it.imolinfo.jbi4corba.test.webservice.generator" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://it.imolinfo.jbi4corba.test.webservice.generator"> <wsdl:types> <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://it.imolinfo.jbi4corba.test.webservice.generator"> <xsd:element name="echo"> <xsd:complexType> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="echoResponse"> <xsd:complexType> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </wsdl:types> <wsdl:message name="echoRequest"> <wsdl:part element="tns:echo" name="payload" /> </wsdl:message> <wsdl:message name="echoResponse"> <wsdl:part element="tns:echoResponse" name="payload" /> </wsdl:message> <wsdl:portType name="EchoServicePortType"> <wsdl:operation name="echo"> <wsdl:input message="tns:echoRequest" name="echoRequest" /> <wsdl:output message="tns:echoResponse" name="echoResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="EchoServiceJBIBinding" type="tns:EchoServicePortType"> <wsdlsoap:binding style="document" transport="http://java.sun.com/xml/ns/jbi/binding/service+engine" /> <wsdl:operation name="echo"> <wsdlsoap:operation soapAction="" /> <wsdl:input name="echoRequest"> <wsdlsoap:body use="literal" /> </wsdl:input> <wsdl:output name="echoResponse"> <wsdlsoap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="EchoService"> <wsdl:port binding="tns:EchoServiceJBIBinding" name="EchoServiceJBIPort"> <wsdlsoap:address location="jbi://{http://it.imolinfo.jbi4corba.test.webservice.generator}EchoService" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
<?xml version="1.0" encoding="UTF-8"?> <bpel:process name="DoubleEchoProcess" suppressJoinFailure="yes" targetNamespace="http://it.imolinfo.demo.process" xmlns:tns="http://it.imolinfo.demo.process" xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:im="http://it.imolinfo.demo" xmlns:typens="http:/it.imolinfo.demo.types" xmlns:corba="http://it.imolinfo.jbi4corba.test.webservice.generator" xmlns:jsr181="http://it.imolinfo.demo.jsr181" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2003/03/business-process/ http://schemas.xmlsoap.org/ws/2003/03/business-process/"> <!--<bpel:partnerLinks> <bpel:partnerLink name="doubleEchoing" partnerLinkType="im:DoubleEchoingLT" myRole="DoubleEchoService" /> </bpel:partnerLinks>--> <!--<partnerLink name="invoicing" partnerLinkType="lns:invoicingLT" myRole="invoiceRequester" partnerRole="invoiceService" /> <partnerLink name="shipping" partnerLinkType="lns:shippingLT" myRole="shippingRequester" partnerRole="shippingService" /> <partnerLink name="scheduling" partnerLinkType="lns:schedulingLT" partnerRole="schedulingService" />--> <bpel:variables> <bpel:variable name="response" messageType="im:EchoResponse" /> <bpel:variable name="request" messageType="im:EchoRequest" /> <bpel:variable name="corba-request" messageType="corba:echoRequest" /> <bpel:variable name="corba-response" messageType="corba:echoResponse" /> <bpel:variable name="jsr181-request" messageType="jsr181:echoRequest" /> <bpel:variable name="jsr181-response" messageType="jsr181:echoResponse" /> </bpel:variables> <bpel:sequence> <!-- <bpel:receive name="request" partnerLink="DouleEchoRequest" portType="im:DoubleEcho" operation="EchoOperation" variable="request" createInstance="yes"> </bpel:receive> --> <bpel:receive name="request" partnerLink="DouleEchoRequest" portType="im:DoubleEcho" operation="EchoOperation" variable="request" > </bpel:receive> <bpel:assign> <bpel:copy> <bpel:from variable="request" part="payload" query="/im:DoubleEchoRequst/typens:msg1" /> <bpel:to variable="corba-request" part="payload" query="/corba:echoRequest/corba:in0" /> </bpel:copy> </bpel:assign> <bpel:invoke name="corba-service" partnerLink="CorbaEchoRequest" portType="corba:EchoServicePortType" operation="echo" inputVariable="corba-request" outputVariable="corba-response" /> <bpel:assign> <bpel:copy> <bpel:from variable="request" part="payload" query="/im:DoubleEchoRequst/typens:msg2" /> <bpel:to variable="jsr181-request" part="payload" query="/jsr181:echoRequest/jsr181:input" /> </bpel:copy> </bpel:assign> <bpel:invoke name="jsr181-service" partnerLink="Jsr181EchoRequest" portType="jsr181:EchoServicePortType" operation="echo" inputVariable="jsr181-request" outputVariable="jsr181-response" /> <bpel:assign> <bpel:copy> <bpel:from variable="request" part="payload" query="/im:DoubleEchoRequst/typens:msg2" /> <bpel:to variable="jsr181-request" part="payload" query="/jsr181:echoRequest/jsr181:input" /> </bpel:copy> </bpel:assign> <bpel:assign> <bpel:copy> <bpel:from variable="jsr181-response" part="payload" query="/jsr181:echoRequest/jsr181:ouput" /> <bpel:to variable="jsr181-request" part="payload" query="/im:EchoResponse/typens:EchoResponse" /> </bpel:copy> </bpel:assign> <bpel:reply partnerLink="DouleEchoRequest" portType="im:DoubleEcho" operation="EchoOperation" variable="response" /> </bpel:sequence> </bpel:process>
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://it.imolinfo.demo" xmlns:typens="http://it.imolinfo.demo.types" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://it.imolinfo.demo" name="DoubleEcho"> <wsdl:import namespace="http://it.imolinfo.jbi4corba.test.webservice.generator" location="CorbaEcho.wsdl" /> <wsdl:import namespace="http://it.imolinfo.demo.jsr181" location="jsr181Echo.wsdl" /> <wsdl:types> <xsd:schema targetNamespace="http://it.imolinfo.demo.types"> <xsd:element name="EchoRequest"> <xsd:complexType> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="msg1" nillable="true" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="1" name="msg2" nillable="true" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="EchoResponse"> <xsd:complexType> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="response" nillable="true" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </wsdl:types> <wsdl:message name="EchoRequest"> <wsdl:part name="payload" element="typens:EchoRequest" /> </wsdl:message> <wsdl:message name="EchoResponse"> <wsdl:part name="payload" element="typens:EchoResponse" /> </wsdl:message> <wsdl:portType name="DoubleEcho"> <wsdl:operation name="EchoOperation"> <wsdl:input message="tns:EchoRequest" /> <wsdl:output message="tns:EchoResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="DoubleEchoJBIBinding" type="tns:DoubleEcho"> <wsdlsoap:binding style="document" transport="http://java.sun.com/xml/ns/jbi/binding/service+engine" /> <wsdl:operation name="EchoOperation"> <wsdlsoap:operation /> <wsdl:input> <wsdlsoap:body use="literal" /> </wsdl:input> <wsdl:output> <wsdlsoap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="DoubleEcho"> <wsdl:port name="DoubleEchoJBIPort" binding="tns:DoubleEchoJBIBinding"> <wsdlsoap:address location="jbi://{http://it.imolinfo.demo}DoubleEcho" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:tns="http://it.imolinfo.demo.jsr181" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://it.imolinfo.demo.jsr181"> <wsdl:types> <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://it.imolinfo.demo.jsr181"> <xsd:element name="echo"> <xsd:complexType> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="input" nillable="true" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="echoResponse"> <xsd:complexType> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </wsdl:types> <wsdl:message name="echoRequest"> <wsdl:part element="tns:echo" name="payload" /> </wsdl:message> <wsdl:message name="echoResponse"> <wsdl:part element="tns:echoResponse" name="payload" /> </wsdl:message> <wsdl:portType name="EchoServicePortType"> <wsdl:operation name="echo"> <wsdl:input message="tns:echoRequest" name="echoRequest" /> <wsdl:output message="tns:echoResponse" name="echoResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="EchoServiceJBIBinding" type="tns:EchoServicePortType"> <wsdlsoap:binding style="document" transport="http://java.sun.com/xml/ns/jbi/binding/service+engine" /> <wsdl:operation name="echo"> <wsdlsoap:operation soapAction="" /> <wsdl:input name="echoRequest"> <wsdlsoap:body use="literal" /> </wsdl:input> <wsdl:output name="echoResponse"> <wsdlsoap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="EchoService"> <wsdl:port binding="tns:EchoServiceJBIBinding" name="EchoServiceJBIPort"> <wsdlsoap:address location="jbi://{http://it.imolinfo.demo}EchoService" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
