thanks for the quick reply. Frankly I don't undestandan exactly what is
going on, but with a manually constructed message the process starts.
Now I'm stuck again in assign phase. It seems that I'm not using XPATH
correctly. I know this is not a mailing list about bpel and XPATH but I
try.
The following is the exception  I receive. I attach the message and the
bpel process. Thanks. 
Raffaele

---------------------exception------------------------------------

SEVERE: Native Exception: ResolverException. Native Message:
org.apache.ode.bpe.interaction.NonExistentNodeException: Node null not
found.  Check the associated business process to ensure that the source
variable has been initialized and check runtime data to ensure that the
requested element exists in the source variable.
org.apache.ode.bpe.util.BPException: Native Exception:
ResolverException. Native Message:
org.apache.ode.bpe.interaction.NonExistentNodeException: Node null not
found.  Check the associated business process to ensure that the source
variable has been initialized and check runtime data to ensure that the
requested element exists in the source variable.
        at
org.apache.ode.bpe.context.resolver.ContextResolver.resolveBPContext(ContextResolver.java:158)
        at
org.apache.ode.bpe.action.bpel.CopyAction.execute(CopyAction.java:104)
        at
org.apache.ode.bpe.engine.ProcessInstance.executeActions(ProcessInstance.java:359)
        at
org.apache.ode.bpe.engine.ProcessInstance.evaluate(ProcessInstance.java:325)
        at
org.apache.ode.bpe.engine.ProcessInstance.evaluate(ProcessInstance.java:414)
        at
org.apache.ode.bpe.engine.ProcessInstance.processInternalEvent(ProcessInstance.java:254)
        at
org.apache.ode.bpe.engine.ProcessInstance.processEvent(ProcessInstance.java:209)
        at
org.apache.ode.bpe.correlation.CorrelationService.createInstanceAndRoute(CorrelationService.java:230)
        at
org.apache.ode.bpe.correlation.CorrelationService.correlateEvent(CorrelationService.java:337)
        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)
Caused by: org.apache.ode.bpe.context.resolver.ResolverException:
org.apache.ode.bpe.interaction.NonExistentNodeException: Node null not
found.  Check the associated business process to ensure that the source
variable has been initialized and check runtime data to ensure that the
requested element exists in the source variable.
        at
org.apache.ode.bpe.context.resolver.ContextResolver.resolve(ContextResolver.java:265)
        at
org.apache.ode.bpe.context.resolver.ContextResolver.resolve(ContextResolver.java:201)
        at
org.apache.ode.bpe.context.resolver.ContextResolver.resolve(ContextResolver.java:191)
        at
org.apache.ode.bpe.context.resolver.ContextResolver.resolveBPContext(ContextResolver.java:156)
        ... 15 more
Caused by: org.apache.ode.bpe.interaction.NonExistentNodeException: Node
null not found.  Check the associated business process to ensure that
the source variable has been initialized and check runtime data to
ensure that the requested element exists in the source variable.
        at
org.apache.ode.bpe.interaction.operations.GetTextValueOperation.execute(GetTextValueOperation.java:40)
        at
org.apache.ode.bpe.interaction.operations.DocumentOperation.execute(DocumentOperation.java:62)
        at
org.apache.ode.bpe.interaction.Invocation.execute(Invocation.java:79)
        at
org.apache.ode.bpe.interaction.BaseInteraction.invoke(BaseInteraction.java:41)
        at
org.apache.ode.bpe.interaction.BaseInteraction.invoke(BaseInteraction.java:77)
        at
org.apache.ode.bpe.context.resolver.ContextResolver.resolve(ContextResolver.java:252)
        ... 18 more
Mar 31, 2006 9:52:59 AM org.apache.ode.bpe.action.bpel.CopyAction
execute

---------------------exception------------------------------------


On Thu, 2006-03-30 at 17:15 +0200, Guillaume Nodet wrote:
> Just thought that this attribute should also be used for soap consumer
> endpoints.  I will fix that asap.
> 
> Guillaume
> 
> On 3/30/06, Guillaume Nodet <[EMAIL PROTECTED]> wrote:
> > I think the problem comes from the fact that the operation defined on
> > the exchange is {http://it.imolinfo.demo.types}EchoRequest.  It have
> > to be {http://it.imolinfo.demo.types}EchoOperation.
> >
> > Try using the defaultOperation attribute on your http consumer
> > endpoint (if it is not a soap endpoint) else use wsa:Action soap
> > header (see http://servicemix.org/servicemix-http).
> > If none is specified, he operation defaults to the qname of the root
> > xml content.
> >
> > Cheers,
> > Guillaume Nodet
> >
> > On 3/30/06, Raffaele Spazzoli <[EMAIL PROTECTED]> wrote:
> > > 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: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:assign>
			 <bpel:copy>
				<bpel:from variable="request" part="payload"
					query="/typens:EchoRequest/typens:msg1" />
				<bpel:to variable="corba-request" part="payload"
					query="/corba:echoRequest/corba:in0" />
			</bpel:copy>
			<!-- <bpel:copy>
				<bpel:from><corba:in0>Hello</corba:in0></bpel:from>
				<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>
<SOAP-ENV:Envelope
	xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
	xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
	<SOAP-ENV:Body>
		<im:EchoOperation xmlns:im="http://it.imolinfo.demo";>
		<typens:EchoRequest xmlns:typens="http://it.imolinfo.demo.types";>
			<typens:msg1>Hello</typens:msg1>
			<typens:msg2>World</typens:msg2>
		</typens:EchoRequest>
		</im:EchoOperation>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Reply via email to