You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by dawg <zo...@gmail.com> on 2009/12/18 13:17:41 UTC

"EPR was not specified and the target my-role could not be inferred"

Hi,

Using ODE 2.0 I'm getting this error when trying to run a process. The
process has multiple receive activities, each attached to a different
partner link. The partner links are mapped to different port types on the
same WSDL. I attach the BPEL file and the WSDL file. 

This is what happens in the log during the invocation:
DEBUG - GeronimoLog.debug(66) | Invoking ODE using MEX
{MyRoleMex#hqejbhcnphr4u7uarvcp7i [Client null] calling
{http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService.Multiplay(...)}
DEBUG - GeronimoLog.debug(66) | invoke() EPR= null ==>
ODEProcess[{http://enterprise.netbeans.org/bpel/MediaComposite1/MediaComposite1}MediaComposite1-12]
ERROR - GeronimoLog.error(104) | Unable to route message exchange
hqejbhcnphr4u7uarvcp7i, EPR was not specified and the target my-role could
not be inferred.
DEBUG - GeronimoLog.debug(66) | schedulingRunnable for process
{http://enterprise.netbeans.org/bpel/MediaComposite1/MediaComposite1}MediaComposite1-12:
org.apache.ode.bpel.engine.UnreliableMyRoleMessageExchangeImpl$2@869433
DEBUG - GeronimoLog.debug(66) | Handling response for MEX
{MyRoleMex#hqejbhcnphr4u7uarvcp7i [Client null] calling
{http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService.Multiplay(...)}
ERROR - GeronimoLog.error(108) | Call to
{http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService.Multiplay
caused an exception.
org.apache.ode.axis2.OdeFault: Message exchange failure

http://old.nabble.com/file/p26842579/MediaComposite1.bpel
MediaComposite1.bpel 
http://old.nabble.com/file/p26842579/MediaCompositeWsdl.wsdl
MediaCompositeWsdl.wsdl 
http://old.nabble.com/file/p26842579/deploy.xml deploy.xml 

Am I doing something wrong here?

Thanks,
Dawg
-- 
View this message in context: http://old.nabble.com/%22EPR-was-not-specified-and-the-target-my-role-could-not-be-inferred%22-tp26842579p26842579.html
Sent from the Apache Ode User mailing list archive at Nabble.com.


Re: "EPR was not specified and the target my-role could not be inferred"

Posted by Michael Dondrup <Mi...@uni.no>.
Hi, I was trying to compile your example:

Seneca:bin mdondrup$ sh bpelc /opt/local/apache-tomcat/webapps/ode/WEB-INF/processes/MediaProcess/MediaComposite1.bpel 
FATAL - 2009-12-18 14:32:50,859 - <org.apache.ode.bpel.compiler.DefaultResourceFinder> openResource: unable to open file URL file:/opt/local/apache-tomcat/webapps/ode/WEB-INF/processes/MediaProcess/RendererService.wsdl; java.io.FileNotFoundException: /opt/local/apache-tomcat/webapps/ode/WEB-INF/processes/MediaProcess/RendererService.wsdl (No such file or directory)
file:/opt/local/apache-tomcat/webapps/ode/WEB-INF/processes/MediaProcess/MediaComposite1.bpel:8: error: [WsdlParseError] /definitions/import: [PARSER_ERROR] WSDLException (at /definitions/import): faultCode=PARSER_ERROR: Problem parsing 'file:/opt/local/apache-tomcat/webapps/ode/WEB-INF/processes/MediaProcess/RendererService.wsdl'.: java.io.FileNotFoundException: /opt/local/apache-tomcat/webapps/ode/WEB-INF/processes/MediaProcess/RendererService.wsdl (No such file or directory)
....

There seem to be some files missing, can you also post the missing wsdls pls?

Best



Am Dec 18, 2009 um 2:00 PM schrieb dawg:

> 
> To add to it, by changing the callback to be a service in the same WSDL
> rather than another port type under the same service, I managed to get it to
> work, but I wonder if that was essential.
> 
> Dawg
> 
> 
> dawg wrote:
>> 
>> Hi,
>> 
>> Using ODE 2.0 I'm getting this error when trying to run a process. The
>> process has multiple receive activities, each attached to a different
>> partner link. The partner links are mapped to different port types on the
>> same WSDL. I attach the BPEL file and the WSDL file. 
>> 
>> This is what happens in the log during the invocation:
>> DEBUG - GeronimoLog.debug(66) | Invoking ODE using MEX
>> {MyRoleMex#hqejbhcnphr4u7uarvcp7i [Client null] calling
>> {http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService.Multiplay(...)}
>> DEBUG - GeronimoLog.debug(66) | invoke() EPR= null ==>
>> ODEProcess[{http://enterprise.netbeans.org/bpel/MediaComposite1/MediaComposite1}MediaComposite1-12]
>> ERROR - GeronimoLog.error(104) | Unable to route message exchange
>> hqejbhcnphr4u7uarvcp7i, EPR was not specified and the target my-role could
>> not be inferred.
>> DEBUG - GeronimoLog.debug(66) | schedulingRunnable for process
>> {http://enterprise.netbeans.org/bpel/MediaComposite1/MediaComposite1}MediaComposite1-12:
>> org.apache.ode.bpel.engine.UnreliableMyRoleMessageExchangeImpl$2@869433
>> DEBUG - GeronimoLog.debug(66) | Handling response for MEX
>> {MyRoleMex#hqejbhcnphr4u7uarvcp7i [Client null] calling
>> {http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService.Multiplay(...)}
>> ERROR - GeronimoLog.error(108) | Call to
>> {http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService.Multiplay
>> caused an exception.
>> org.apache.ode.axis2.OdeFault: Message exchange failure
>> 
>> http://old.nabble.com/file/p26842579/MediaComposite1.bpel
>> MediaComposite1.bpel 
>> http://old.nabble.com/file/p26842579/MediaCompositeWsdl.wsdl
>> MediaCompositeWsdl.wsdl 
>> http://old.nabble.com/file/p26842579/deploy.xml deploy.xml 
>> 
>> Am I doing something wrong here?
>> 
>> Thanks,
>> Dawg
>> 
> 
> -- 
> View this message in context: http://old.nabble.com/%22EPR-was-not-specified-and-the-target-my-role-could-not-be-inferred%22-tp26842579p26843021.html
> Sent from the Apache Ode User mailing list archive at Nabble.com.
> 


Re: "EPR was not specified and the target my-role could not be inferred"

Posted by Michael Dondrup <Mi...@uni.no>.
Hi,
I gave it a try. I have generate a mock up service for  RendererService using soapui, but I think there is the need for a specific correlation which the 
mock service cannot provide. Can you construct a bpel process for the service too? Than it might be easier to debug this.

So far my attempts result in this output:

DEBUG - GeronimoLog.debug(66) | The system is checking for the operation using the following WSAAction: 
DEBUG - GeronimoLog.debug(66) | Checking for Operation using SOAP message body's first child's local name : Multiplay
DEBUG - GeronimoLog.debug(66) | Found operation org.apache.axis2.description.InOutAxisOperation@3f9f332b
DEBUG - GeronimoLog.debug(66) | Received request message for MediaCompositeWsdlService.{http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}Multiplay
DEBUG - GeronimoLog.debug(66) | Starting transaction.
DEBUG - GeronimoLog.debug(66) | Routed: svcQname {http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService --> [BpelProcess[{http://enterprise.netbeans.org/bpel/MediaComposite1/MediaComposite1}MediaComposite1-6]]
DEBUG - GeronimoLog.debug(66) | ODE routed to operation Operation: name=Multiplay
parameterOrder=[device, mediaUrl]
style=REQUEST_RESPONSE,1
Input: name=input1
Message: name={http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MultiplayRequest
Part: name=mediaUrl
typeName={http://www.w3.org/2001/XMLSchema}string
Part: name=device
typeName={http://www.w3.org/2001/XMLSchema}string
Output: name=output1
Message: name={http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MultiplayResponse
Part: name=message
typeName={http://www.w3.org/2001/XMLSchema}string from service {http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService
DEBUG - GeronimoLog.debug(66) | SET MEX property isTwoWay = true
DEBUG - GeronimoLog.debug(66) | Invoking ODE using MEX {MyRoleMex#hqejbhcnphr4u8bkc1t3fp [Client hqejbhcnphr4u8bkc1t3fo] calling {http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService.Multiplay(...)}
DEBUG - GeronimoLog.debug(66) | Message content:  <?xml version="1.0" encoding="UTF-8"?>
<message><mediaUrl xmlns:med="http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">sonoras imperio</mediaUrl><device xmlns:med="http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">gero et</device></message>
DEBUG - GeronimoLog.debug(66) | invoke() EPR= null ==> BpelProcess[{http://enterprise.netbeans.org/bpel/MediaComposite1/MediaComposite1}MediaComposite1-6]
DEBUG - GeronimoLog.debug(66) | Commiting ODE MEX {MyRoleMex#hqejbhcnphr4u8bkc1t3fp [Client hqejbhcnphr4u8bkc1t3fo] calling {http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService.Multiplay(...)}
DEBUG - GeronimoLog.debug(66) | Commiting transaction.
DEBUG - GeronimoLog.debug(66) | handleWorkEvent: InvokeInternal event for mexid hqejbhcnphr4u8bkc1t3fp
DEBUG - GeronimoLog.debug(66) | >> handleWorkEvent(jobData={mexid=hqejbhcnphr4u8bkc1t3fp, pid={http://enterprise.netbeans.org/bpel/MediaComposite1/MediaComposite1}MediaComposite1-6, type=INVOKE_INTERNAL})
DEBUG - GeronimoLog.debug(66) | InvokeInternal event for mexid hqejbhcnphr4u8bkc1t3fp
DEBUG - GeronimoLog.debug(66) | GET MEX property org.apache.ode.bpel.myRoleSessionId = null
DEBUG - GeronimoLog.debug(66) | GET MEX property org.apache.ode.bpel.myRoleSessionId = null
DEBUG - GeronimoLog.debug(66) | GET MEX property org.apache.ode.bpel.partnerRoleSessionId = null
DEBUG - GeronimoLog.debug(66) | INPUTMSG: CompositePL.Multiplay: MSG RCVD keys=[] mySessionId=null partnerSessionId=null
DEBUG - GeronimoLog.debug(66) | INPUTMSG: CompositePL.Multiplay: routing failed, CREATING NEW INSTANCE
DEBUG - GeronimoLog.debug(66) | BpelRuntimeContextImpl created for instance 1754. INDEXED STATE={}
DEBUG - GeronimoLog.debug(66) | SELECT: PickResponseChannel#9: USING CORRELATOR CompositePL.Multiplay
DEBUG - GeronimoLog.debug(66) | SELECT: PickResponseChannel#9: CHECKING for NEW INSTANCE match
DEBUG - GeronimoLog.debug(66) | INPUTMSGMATCH: Changing process instance state from ready to active
DEBUG - GeronimoLog.debug(66) | SELECT: PickResponseChannel#9: FOUND match for NEW instance mexRef={MyRoleMex#hqejbhcnphr4u8bkc1t3fp [Client hqejbhcnphr4u8bkc1t3fo] calling {http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService.Multiplay(...)}
ERROR - GeronimoLog.error(104) | org.apache.ode.bpel.common.FaultException: Correlation not initialized.
DEBUG - GeronimoLog.debug(66) | ProcessImpl completed with fault '{http://docs.oasis-open.org/wsbpel/2.0/process/executable}correlationViolation'
DEBUG - GeronimoLog.debug(66) | Processing an async reply from service {http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService
DEBUG - GeronimoLog.debug(66) | Received myrole mex response callback
DEBUG - GeronimoLog.debug(66) | Handling response for MEX {MyRoleMex#hqejbhcnphr4u8bkc1t3fp [Client hqejbhcnphr4u8bkc1t3fo] calling {http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService.Multiplay(...)}
DEBUG - GeronimoLog.debug(66) | Starting transaction.
DEBUG - GeronimoLog.debug(66) | Received myrole mex response callback
DEBUG - GeronimoLog.debug(66) | Fault response message: {http://docs.oasis-open.org/wsbpel/2.0/process/executable}correlationViolation
DEBUG - GeronimoLog.debug(66) | Returning fault: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring xmlns:axis2ns3="http://docs.oasis-open.org/wsbpel/2.0/process/executable">axis2ns3:correlationViolation</faultstring><detail /></soapenv:Fault></soapenv:Body></soapenv:Envelope>
DEBUG - GeronimoLog.debug(66) | Releasing mex hqejbhcnphr4u8bkc1t3fp
DEBUG - GeronimoLog.debug(66) | Comitting transaction.
DEBUG - GeronimoLog.debug(66) | Reply for MediaCompositeWsdlService.{http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}Multiplay
DEBUG - GeronimoLog.debug(66) | Reply message <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring xmlns:axis2ns3="http://docs.oasis-open.org/wsbpel/2.0/process/executable">axis2ns3:correlationViolation</faultstring><detail /></soapenv:Fault></soapenv:Body></soapenv:Envelope>
INFO - GeronimoLog.info(79) | Refreshing SYSTEM CRON jobs.
INFO - GeronimoLog.info(79) | SYSTEM CRON configuration found cron jobs: []




Am Dec 18, 2009 um 2:44 PM schrieb dawg:

> 
> Adding the rest of the related wsdl files:
> 
> http://old.nabble.com/file/p26843633/RendererService.wsdl
> RendererService.wsdl 
> http://old.nabble.com/file/p26843633/RendererService.xsd_1.xsd
> RendererService.xsd_1.xsd 
> http://old.nabble.com/file/p26843633/RendererServiceWrapper.wsdl
> RendererServiceWrapper.wsdl 
> 
> Dawg
> -- 
> View this message in context: http://old.nabble.com/%22EPR-was-not-specified-and-the-target-my-role-could-not-be-inferred%22-tp26842579p26843633.html
> Sent from the Apache Ode User mailing list archive at Nabble.com.
> 


Re: "EPR was not specified and the target my-role could not be inferred"

Posted by dawg <zo...@gmail.com>.
Adding the rest of the related wsdl files:

http://old.nabble.com/file/p26843633/RendererService.wsdl
RendererService.wsdl 
http://old.nabble.com/file/p26843633/RendererService.xsd_1.xsd
RendererService.xsd_1.xsd 
http://old.nabble.com/file/p26843633/RendererServiceWrapper.wsdl
RendererServiceWrapper.wsdl 

Dawg
-- 
View this message in context: http://old.nabble.com/%22EPR-was-not-specified-and-the-target-my-role-could-not-be-inferred%22-tp26842579p26843633.html
Sent from the Apache Ode User mailing list archive at Nabble.com.


Re: "EPR was not specified and the target my-role could not be inferred"

Posted by dawg <zo...@gmail.com>.
To add to it, by changing the callback to be a service in the same WSDL
rather than another port type under the same service, I managed to get it to
work, but I wonder if that was essential.

Dawg


dawg wrote:
> 
> Hi,
> 
> Using ODE 2.0 I'm getting this error when trying to run a process. The
> process has multiple receive activities, each attached to a different
> partner link. The partner links are mapped to different port types on the
> same WSDL. I attach the BPEL file and the WSDL file. 
> 
> This is what happens in the log during the invocation:
> DEBUG - GeronimoLog.debug(66) | Invoking ODE using MEX
> {MyRoleMex#hqejbhcnphr4u7uarvcp7i [Client null] calling
> {http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService.Multiplay(...)}
> DEBUG - GeronimoLog.debug(66) | invoke() EPR= null ==>
> ODEProcess[{http://enterprise.netbeans.org/bpel/MediaComposite1/MediaComposite1}MediaComposite1-12]
> ERROR - GeronimoLog.error(104) | Unable to route message exchange
> hqejbhcnphr4u7uarvcp7i, EPR was not specified and the target my-role could
> not be inferred.
> DEBUG - GeronimoLog.debug(66) | schedulingRunnable for process
> {http://enterprise.netbeans.org/bpel/MediaComposite1/MediaComposite1}MediaComposite1-12:
> org.apache.ode.bpel.engine.UnreliableMyRoleMessageExchangeImpl$2@869433
> DEBUG - GeronimoLog.debug(66) | Handling response for MEX
> {MyRoleMex#hqejbhcnphr4u7uarvcp7i [Client null] calling
> {http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService.Multiplay(...)}
> ERROR - GeronimoLog.error(108) | Call to
> {http://j2ee.netbeans.org/wsdl/MediaCompositeWsdl}MediaCompositeWsdlService.Multiplay
> caused an exception.
> org.apache.ode.axis2.OdeFault: Message exchange failure
> 
>  http://old.nabble.com/file/p26842579/MediaComposite1.bpel
> MediaComposite1.bpel 
>  http://old.nabble.com/file/p26842579/MediaCompositeWsdl.wsdl
> MediaCompositeWsdl.wsdl 
>  http://old.nabble.com/file/p26842579/deploy.xml deploy.xml 
> 
> Am I doing something wrong here?
> 
> Thanks,
> Dawg
> 

-- 
View this message in context: http://old.nabble.com/%22EPR-was-not-specified-and-the-target-my-role-could-not-be-inferred%22-tp26842579p26843021.html
Sent from the Apache Ode User mailing list archive at Nabble.com.