Something is strange here, the service-ref element namespace in the BPEL fragment you quoted:
<sref:service-ref xmlns:sref=" http://docs.oasis-open.org/wsbpel/2.0/serviceref"> <soap:address location=" http://localhost:8090/AssignUserWsODE/AssignUserServiceODE"/> </sref:service-ref> is different from the one reported in the log, <bpel:service-ref xmlns:bpel=" http://docs.oasis-open.org/wsbpel/2.0/process/executable"> <soap:address location=" http://localhost:8090/AssignUserWsODE/AssignUserServiceODE" xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/"/> </bpel:service-ref> Are the two taken from the same run? alex On Thu, May 29, 2008 at 7:30 AM, Dhanush Gopinath < [EMAIL PROTECTED]> wrote: > Hi, > > > > I am invoking a Webservice from my BPEL process. The partnerlink is > assigned as given below: > > > > <bpel:assign> > > <bpel:targets> > > <bpel:target linkName="L1"/> > > </bpel:targets> > > <bpel:sources> > > <bpel:source linkName="L2"/> > > </bpel:sources> > > <bpel:copy> > > <bpel:from> > > <bpel:literal> > > <sref:service-ref > xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref"> > > <soap:address > location="http://localhost:8090/AssignUserWsODE/AssignUserServiceODE"/> > > </sref:service-ref> > > </bpel:literal> > > </bpel:from> > > <bpel:to partnerLink="AssignUserServicePL"/> > > </bpel:copy> > > </bpel:assign> > > > > > > > > And the invoke is as given : > > > > <bpel:invoke inputVariable="assignedUser" name="InvokeAssignUsers" > operation="AssignUsers" partnerLink="AssignUserServicePL"> > > <bpel:targets> > > <bpel:target linkName="L3"/> > > </bpel:targets> > > <bpel:sources> > > <bpel:source linkName="L4"/> > > </bpel:sources> > > <bpel:correlations> > > <bpel:correlation initiate="yes" pattern="request" > set="CS1"/> > > </bpel:correlations> > > </bpel:invoke> > > > > > > The process could be deployed successfully, but when I call the > process.. it gives the following error > > > > > > DEBUG - GeronimoLog.debug(66) | Writing endpoint reference > AssignUserServicePL with value <?xml version="1.0" encoding="UTF-8"?> > > <bpel:service-ref > xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"> > > <soap:address > location="http://localhost:8090/AssignUserWsODE/AssignUserServiceODE" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> > > </bpel:service-ref> > > DEBUG - GeronimoLog.debug(66) | Couldn't extract property '{OProperty > {http://www.example.org/HTCorrelations/}UserID<http://www.example.org/HTCorrelations/%7DUserID>}' > in property > pre-extraction: org.apache.ode.bpel.common.FaultException: No results > for expression: {OXPath10Expression data:userid} > > DEBUG - GeronimoLog.debug(66) | Resolving endpoint reference <?xml > version="1.0" encoding="UTF-8"?> > > <bpel:service-ref > xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"> > > <soap:address > location="http://localhost:8090/AssignUserWsODE/AssignUserServiceODE" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> > > </bpel:service-ref> > > WARN - GeronimoLog.warn(92) | Couldnt create any endpoint for element > <?xml version="1.0" encoding="UTF-8"?> > > <bpel:service-ref > xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"> > > <soap:address > location="http://localhost:8090/AssignUserWsODE/AssignUserServiceODE" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/> > > </bpel:service-ref> > > DEBUG - GeronimoLog.debug(66) | INVOKING PARTNER: > partnerLink={PartnerLinkInstance > partnerLinkDecl=OPartnerLink#23,scopeInstanceId=259}, op=AssignUsers > channel=null) > > DEBUG - GeronimoLog.debug(66) | INVOKE PARTNER (SEP): > sessionId=hqejbhcnphr3b8nere0rmf partnerSessionId=null > > DEBUG - GeronimoLog.debug(66) | Routed: svcQname > {http://www.example.org/HTAssignUsersPT/}AssignUserServiceODE<http://www.example.org/HTAssignUsersPT/%7DAssignUserServiceODE>--> > BpelProcess[{http://HTCreateAssembly}HTCreateAssembly-5] > > DEBUG - GeronimoLog.debug(66) | Routed: svcQname > {http://www.example.org/HTAssignUsersPT/}AssignUserServiceODE<http://www.example.org/HTAssignUsersPT/%7DAssignUserServiceODE>--> > BpelProcess[{http://HTCreateAssembly}HTCreateAssembly-5] > > DEBUG - GeronimoLog.debug(66) | Invoking in a p2p interaction, > partnerrole {PartnerRoleMex#hqejbhcnphr3b8nere0rmg [PID > {http://HTCreateAssembly}HTCreateAssembly-5] calling > null.AssignUsers(...)} - myrole {MyRoleMex#hqejbhcnphr3b8nere0rmh > [Client hqejbhcnphr3b8nere0rmg] calling > {http://www.example.org/HTAssignUsersPT/}AssignUserServiceODE.AssignUser<http://www.example.org/HTAssignUsersPT/%7DAssignUserServiceODE.AssignUser> > s(...)} > > DEBUG - GeronimoLog.debug(66) | Setting myRoleMex session ids for p2p > interaction, mySession null - partnerSess hqejbhcnphr3b8nere0rmf > > DEBUG - GeronimoLog.debug(66) | SET MEX property > org.apache.ode.bpel.partnerRoleSessionId = hqejbhcnphr3b8nere0rmf > > DEBUG - GeronimoLog.debug(66) | Routed: svcQname > {http://www.example.org/HTAssignUsersPT/}AssignUserServiceODE<http://www.example.org/HTAssignUsersPT/%7DAssignUserServiceODE>--> > BpelProcess[{http://HTCreateAssembly}HTCreateAssembly-5] > > DEBUG - GeronimoLog.debug(66) | invoke() EPR= null ==> > BpelProcess[{http://HTCreateAssembly}HTCreateAssembly-5] > > ERROR - GeronimoLog.error(108) | Method "run" in class > "org.apache.ode.bpel.runtime.INVOKE" threw an unexpected exception. > > java.lang.NullPointerException > > at > org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl.invoke(MyRoleMessag > eExchangeImpl.java:134) > > at > org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeCont > extImpl.java:760) > > at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:88) > > at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source) > > > > Why is the WARNING happening? > > Thanks > > Dhanush > >
