Hi Anup,

Looks like the namespace is missing in your query:

<prop:query>TaskMsg</prop:query>

It should be in the http://eclipse.org/bpel/sample namespace (probably
associated with the tns prefix but can't tell for sure from your snippet).

Matthieu

On 9/23/07, Anup Chandran <[EMAIL PROTECTED]> wrote:
>
>
> Hi All,
>
> Not sure what is wrong with my definition. Can someone guide me?
>
> BPEL file snippet...
>
> <variables>
> <variable name="InvokingTaskOID" messageType="tns:CBPTaskMessage"/>
> ........
> </variables>
>
> <correlationSets>
>     <correlationSet name="CoordTaskOID" properties="tns:CoTaskOID" />
> </correlationSets>....
>
>
> <!-- Has the following invoke-->
>
> <invoke inputVariable="CreateECRPartnerLinkRequest"
> name="CreateCordinatorTask" operation="createBus"
> outputVariable="CreateECRPartnerLinkResponse"
> partnerLink="CreateECRPartnerLink" portType="ns:ECR">
>      <correlations>
>         <correlation set="CoordTaskOID" initiate="yes"
> pattern="response"/>
>       </correlations>
> </invoke>
>
> <!-- followed by some async receive-->
>
> <receive createInstance="no" name="receiveCoordTaskCompletion"
> operation="receiveCBPTaskMessage" partnerLink="CBPTaskPartnerLink"
> portType="tns:CBPTaskPortType" variable="InvokingTaskOID">
>       <correlations>
>         <correlation set="CoordTaskOID" initiate="no"/>
>       </correlations>
> </receive>
>
> The WSDL definition has :
>
>         <types>
>                 <schema attributeFormDefault="unqualified"
>                         elementFormDefault="qualified"
>                         targetNamespace="http://eclipse.org/bpel/sample";
>                         xmlns="http://www.w3.org/2001/XMLSchema";>
>
>                         <element name="TaskInvocationMsg">
>                           <complexType>
>                           <sequence>
>                                 <element name="TaskMsg"
> type="string"></element>
>                           </sequence>
>                           </complexType>
>                         </element>
>
> .......
>
> </types>
>
>    <message name="CBPTaskMessage">
>         <part name="payload" element="tns:TaskInvocationMsg" />
>     </message>
>
>
>     <portType name="CBPTaskPortType">
>         <operation name="receiveCBPTaskMessage">
>             <input message="tns:CBPTaskMessage" name="TestIn"/>
>         </operation>
>     </portType>
>
>
>      <binding name="CBPTaskSoapBinding" type="tns:CBPTaskPortType">
>         <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>         <operation name="receiveCBPTaskMessage">
>             <soap:operation soapAction="" style="document"/>
>             <input>
>                 <soap:body
>                     namespace="http://sample.bpel.org/bpel/sample";
>                     use="literal"/>
>             </input>
>         </operation>
>     </binding>
>
>
>                 CORRELATION DEFINITION
>                 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> -->
>         <!-- define correlation properties -->
>   <prop:property name="CoTaskOID" type="xsd:string"/>
>
>
>         <!-- define correlation property alias -->
>
>   <prop:propertyAlias propertyName="tns:CoTaskOID"
> messageType="tns:CBPTaskMessage">
>                       part="payload">
>      <prop:query>TaskMsg</prop:query>
>   </prop:propertyAlias>
>   <prop:propertyAlias propertyName="tns:CoTaskOID"
> messageType="ecr:createBusResponse"
>                       part="createBusReturn"/>
>
>
> The error at runtime when a response message is sent to the receive
> activity
> is:
>
>
>
> 10:40:53,731 DEBUG [ODEMessageReceiver] Received one-way message for
> CompleteCBPTask.{http://eclipse.org/bpel/sample}rec
> eiveCBPTaskMessage
> DEBUG - GeronimoLog.debug(66) | Starting transaction.
> 10:40:53,731 DEBUG [ODEService] Starting transaction.
> DEBUG - GeronimoLog.debug(66) | Routed: svcQname
> {http://eclipse.org/bpel/sample}CBPTaskService --> BpelProcess[{http://
> eclipse.org/bpel/sample}ECRProcess-22]
> 10:40:53,731 DEBUG [BpelEngineImpl] Routed: svcQname
> {http://eclipse.org/bpel/sample}CBPTaskService --> BpelProcess[{htt
> p://eclipse.org/bpel/sample}ECRProcess-22]
> DEBUG - GeronimoLog.trace(54) | Mex[hqejbhcnphr2m0s9oeu494].setPortOp(...)
> 10:40:53,741 DEBUG [MessageExchangeImpl]
> Mex[hqejbhcnphr2m0s9oeu494].setPortOp(...)
> DEBUG - GeronimoLog.debug(66) | ODE routed to operation Operation:
> name=receiveCBPTaskMessage
> style=ONE_WAY,0
> Input: name=TestIn
> Message: name={http://eclipse.org/bpel/sample}CBPTaskMessage
> Part: name=payload
> elementName={http://eclipse.org/bpel/sample}TaskInvocationMsg from service
> {http://eclipse.org/bpel/sample}CBPTaskServic
> e
> 10:40:53,741 DEBUG [ODEService] ODE routed to operation Operation:
> name=receiveCBPTaskMessage
> style=ONE_WAY,0
> Input: name=TestIn
> Message: name={http://eclipse.org/bpel/sample}CBPTaskMessage
> Part: name=payload
> elementName={http://eclipse.org/bpel/sample}TaskInvocationMsg from service
> {http://eclipse.org/bpel/sample}CBPTaskServic
> e
> DEBUG - GeronimoLog.debug(66) | Invoking ODE using MEX
> {MyRoleMex#hqejbhcnphr2m0s9oeu494 [Client hqejbhcnphr2m0s9oeu493]
> calling
> {http://eclipse.org/bpel/sample}CBPTaskService.receiveCBPTaskMessage(...)}
> 10:40:53,741 DEBUG [ODEService] Invoking ODE using MEX
> {MyRoleMex#hqejbhcnphr2m0s9oeu494 [Client hqejbhcnphr2m0s9oeu493]
> calling
> {http://eclipse.org/bpel/sample}CBPTaskService.receiveCBPTaskMessage(...)}
> DEBUG - GeronimoLog.debug(66) | Message content:  <?xml version="1.0"
> encoding="UTF-8"?>
> <message><payload><TaskInvocationMsg xmlns="http://eclipse.org/bpel/sample
> "
> xmlns:sam="http://eclipse.org/bpel/sample"; x
> mlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>          <TaskMsg>15863.19604.15624.44406</TaskMsg>
>       </TaskInvocationMsg></payload></message>
> 10:40:53,741 DEBUG [ODEService] Message content:  <?xml version="1.0"
> encoding="UTF-8"?>
> <message><payload><TaskInvocationMsg xmlns="http://eclipse.org/bpel/sample
> "
> xmlns:sam="http://eclipse.org/bpel/sample"; x
> mlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>          <TaskMsg>15863.19604.15624.44406</TaskMsg>
>       </TaskInvocationMsg></payload></message>
> DEBUG - GeronimoLog.debug(66) | Routed: svcQname
> {http://eclipse.org/bpel/sample}CBPTaskService --> BpelProcess[{http://
> eclipse.org/bpel/sample}ECRProcess-22]
> 10:40:53,741 DEBUG [BpelEngineImpl] Routed: svcQname
> {http://eclipse.org/bpel/sample}CBPTaskService --> BpelProcess[{htt
> p://eclipse.org/bpel/sample}ECRProcess-22]
> DEBUG - GeronimoLog.debug(66) | invoke() EPR= null ==>
> BpelProcess[{http://eclipse.org/bpel/sample}ECRProcess-22]
> 10:40:53,741 DEBUG [MyRoleMessageExchangeImpl] invoke() EPR= null ==>
> BpelProcess[{http://eclipse.org/bpel/sample}ECRPro
> cess-22]
> DEBUG - GeronimoLog.debug(66) | Commiting ODE MEX
> {MyRoleMex#hqejbhcnphr2m0s9oeu494 [Client hqejbhcnphr2m0s9oeu493] call
> ing
> {http://eclipse.org/bpel/sample}CBPTaskService.receiveCBPTaskMessage(...)}
> 10:40:53,751 DEBUG [ODEService] Commiting ODE MEX
> {MyRoleMex#hqejbhcnphr2m0s9oeu494 [Client hqejbhcnphr2m0s9oeu493] call
> ing
> {http://eclipse.org/bpel/sample}CBPTaskService.receiveCBPTaskMessage(...)}
> DEBUG - GeronimoLog.debug(66) | Commiting transaction.
> 10:40:53,751 DEBUG [ODEService] Commiting transaction.
> DEBUG - GeronimoLog.debug(66) | >>
> handleWorkEvent(jobData={type=INVOKE_INTERNAL,
> mexid=hqejbhcnphr2m0s9oeu494,
> pid={htt
> p://eclipse.org/bpel/sample}ECRProcess-22})
> 10:40:53,761 DEBUG [BpelProcess] >>
> handleWorkEvent(jobData={type=INVOKE_INTERNAL,
> mexid=hqejbhcnphr2m0s9oeu494,
> pid={ht
> tp://eclipse.org/bpel/sample}ECRProcess-22})
> DEBUG - GeronimoLog.debug(66) | InvokeInternal event for mexid
> hqejbhcnphr2m0s9oeu494
> 10:40:53,761 DEBUG [BpelProcess] InvokeInternal event for mexid
> hqejbhcnphr2m0s9oeu494
> DEBUG - GeronimoLog.trace(54) | >> {PartnerLinkRole-CBPTaskPartnerLink.meon
> {http://eclipse.org/bpel/sample}CBPTaskServ
>
> ice:CBPTaskPort}:inputMsgRcvd(messageExchange={MyRoleMex#hqejbhcnphr2m0s9oeu494
> [Client hqejbhcnphr2m0s9oeu493] calling
> {http://eclipse.org/bpel/sample}CBPTaskService.receiveCBPTaskMessage(...)}
> )
> 10:40:53,771 DEBUG [BpelProcess] >> {PartnerLinkRole-CBPTaskPartnerLink.me
> on {http://eclipse.org/bpel/sample}CBPTaskSer
>
> vice:CBPTaskPort}:inputMsgRcvd(messageExchange={MyRoleMex#hqejbhcnphr2m0s9oeu494
> [Client hqejbhcnphr2m0s9oeu493] calling
> {http://eclipse.org/bpel/sample}CBPTaskService.receiveCBPTaskMessage(...)}
> )
> DEBUG - GeronimoLog.trace(54) | Mex[hqejbhcnphr2m0s9oeu494].setPortOp(...)
> 10:40:53,771 DEBUG [MessageExchangeImpl]
> Mex[hqejbhcnphr2m0s9oeu494].setPortOp(...)
> DEBUG - GeronimoLog.trace(54) |
> Mex[hqejbhcnphr2m0s9oeu494].setPattern(REQUEST_ONLY)
> 10:40:53,771 DEBUG [MessageExchangeImpl]
> Mex[hqejbhcnphr2m0s9oeu494].setPattern(REQUEST_ONLY)
> ERROR - GeronimoLog.error(108) | Unable to evaluate apply property alias
> "OMessageVarType#7[payload][{OXPath10Expression TaskMsg}]" to incoming
> message: No results for expression: {OXPath10Expression TaskMsg}
> org.apache.ode.bpel.common.FaultException: No results for expression:
> {OXPath10Expression TaskMsg}
>         at
>
> org.apache.ode.bpel.elang.xpath20.runtime.XPath20ExpressionRuntime.evaluateNode
> (XPath20ExpressionRuntime.java
> :139)
>         at
> org.apache.ode.bpel.runtime.ExpressionLanguageRuntimeRegistry.evaluateNode
> (ExpressionLanguageRuntimeRegistry.
> java:84)
>         at
> org.apache.ode.bpel.engine.BpelProcess.extractProperty(BpelProcess.java
> :222)
>         at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.computeCorrelationKey(
> PartnerLinkMyRoleImpl.java:309)
>         at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.computeCorrelationKeys(
> PartnerLinkMyRoleImpl.java:278)
>         at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(
> PartnerLinkMyRoleImpl.java:126)
>         at
> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:169)
>         at
> org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java
> :306)
>         at
> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
> BpelEngineImpl.java:318)
>         at
> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(
> BpelServerImpl.java:364)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
> SimpleScheduler.java:335)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
> SimpleScheduler.java:334)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(
> SimpleScheduler.java:173)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
> SimpleScheduler.java:333)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
> SimpleScheduler.java:330)
>         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)
> 10:40:53,781 ERROR [BpelProcess] Unable to evaluate apply property alias
> "OMessageVarType#7[payload][{OXPath10Expression
> TaskMsg}]" to incoming message: No results for expression:
> {OXPath10Expression TaskMsg}
> org.apache.ode.bpel.common.FaultException: No results for expression:
> {OXPath10Expression TaskMsg}
>         at
>
> org.apache.ode.bpel.elang.xpath20.runtime.XPath20ExpressionRuntime.evaluateNode
> (XPath20ExpressionRuntime.java
> :139)
>         at
> org.apache.ode.bpel.runtime.ExpressionLanguageRuntimeRegistry.evaluateNode
> (ExpressionLanguageRuntimeRegistry.
> java:84)
>         at
> org.apache.ode.bpel.engine.BpelProcess.extractProperty(BpelProcess.java
> :222)
>         at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.computeCorrelationKey(
> PartnerLinkMyRoleImpl.java:309)
>         at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.computeCorrelationKeys(
> PartnerLinkMyRoleImpl.java:278)
>         at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(
> PartnerLinkMyRoleImpl.java:126)
>         at
> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:169)
>         at
> org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java
> :306)
>         at
> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
> BpelEngineImpl.java:318)
>         at
> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(
> BpelServerImpl.java:364)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
> SimpleScheduler.java:335)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
> SimpleScheduler.java:334)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(
> SimpleScheduler.java:173)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
> SimpleScheduler.java:333)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
> SimpleScheduler.java:330)
>         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)
> DEBUG - GeronimoLog.debug(70) | Unable to evaluate correlation keys,
> invalid
> message format.
> org.apache.ode.bpel.common.InvalidMessageException: Unable to evaluate
> apply
> property alias "OMessageVarType#7[payload][
> {OXPath10Expression TaskMsg}]" to incoming message: No results for
> expression: {OXPath10Expression TaskMsg}
>         at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.computeCorrelationKey(
> PartnerLinkMyRoleImpl.java:313)
>         at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.computeCorrelationKeys(
> PartnerLinkMyRoleImpl.java:278)
>         at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(
> PartnerLinkMyRoleImpl.java:126)
>         at
> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:169)
>         at
> org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java
> :306)
>         at
> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
> BpelEngineImpl.java:318)
>         at
> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(
> BpelServerImpl.java:364)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
> SimpleScheduler.java:335)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
> SimpleScheduler.java:334)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(
> SimpleScheduler.java:173)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
> SimpleScheduler.java:333)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
> SimpleScheduler.java:330)
>         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)
> Caused by: org.apache.ode.bpel.common.FaultException: No results for
> expression: {OXPath10Expression TaskMsg}
>         at
>
> org.apache.ode.bpel.elang.xpath20.runtime.XPath20ExpressionRuntime.evaluateNode
> (XPath20ExpressionRuntime.java
> :139)
>         at
> org.apache.ode.bpel.runtime.ExpressionLanguageRuntimeRegistry.evaluateNode
> (ExpressionLanguageRuntimeRegistry.
> java:84)
>         at
> org.apache.ode.bpel.engine.BpelProcess.extractProperty(BpelProcess.java
> :222)
>         at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.computeCorrelationKey(
> PartnerLinkMyRoleImpl.java:309)
>         ... 16 more
> 10:40:53,781 DEBUG [BpelProcess] Unable to evaluate correlation keys,
> invalid message format.
> org.apache.ode.bpel.common.InvalidMessageException: Unable to evaluate
> apply
> property alias "OMessageVarType#7[payload][
> {OXPath10Expression TaskMsg}]" to incoming message: No results for
> expression: {OXPath10Expression TaskMsg}
>         at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.computeCorrelationKey(
> PartnerLinkMyRoleImpl.java:313)
>         at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.computeCorrelationKeys(
> PartnerLinkMyRoleImpl.java:278)
>         at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(
> PartnerLinkMyRoleImpl.java:126)
>         at
> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:169)
>         at
> org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java
> :306)
>         at
> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
> BpelEngineImpl.java:318)
>         at
> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(
> BpelServerImpl.java:364)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
> SimpleScheduler.java:335)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
> SimpleScheduler.java:334)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(
> SimpleScheduler.java:173)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
> SimpleScheduler.java:333)
>         at
> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
> SimpleScheduler.java:330)
>         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)
> Caused by: org.apache.ode.bpel.common.FaultException: No results for
> expression: {OXPath10Expression TaskMsg}
>         at
>
> org.apache.ode.bpel.elang.xpath20.runtime.XPath20ExpressionRuntime.evaluateNode
> (XPath20ExpressionRuntime.java
> :139)
>         at
> org.apache.ode.bpel.runtime.ExpressionLanguageRuntimeRegistry.evaluateNode
> (ExpressionLanguageRuntimeRegistry.
> java:84)
>         at
> org.apache.ode.bpel.engine.BpelProcess.extractProperty(BpelProcess.java
> :222)
>         at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.computeCorrelationKey(
> PartnerLinkMyRoleImpl.java:309)
>
> Cheers
> Anup
>
> --
> View this message in context:
> http://www.nabble.com/Correlation-%3A-Unable-to-evaluate-apply-property-alias-tf4506806.html#a12853261
> Sent from the Apache Ode User mailing list archive at Nabble.com.
>
>

Reply via email to