ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Weerasiri <ddweeras...@gmail.com>
Subject Re: Need help with axis2ns1:selectionFailure
Date Fri, 12 Nov 2010 04:12:52 GMT
On Fri, Nov 12, 2010 at 3:51 AM, krisantus <krisantus.sembiring@gmail.com>wrote:

>
> Hi,
>
> you are right! I don't have "log4j.category.org.apache.ode=INFO" in my
> log4j.properties. If you don't mind, I have a question about an assignment
> error.
>
> [ASSIGN] Assignment Fault:
> {
> http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=128,faultExplanation=No<http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DselectionFailure,lineNo=128,faultExplanation=No>
> results for expression: {OXPath10Expression
> ns:QueryResponseMessage/routes[1]}
>
I think, most probably there may be no <routes/> in QueryResponseMessage.

>
> I'm not sure the reason for the error here.
>
> Here is the corresponding line in my bpel file:
>  <bpel:copy>
>                <bpel:from part="parameters"
> variable="FlightServicePLResponse">
>                    <bpel:query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
>                        <![CDATA[ns:QueryResponseMessage/routes[1]]]>
>                    </bpel:query>
>                </bpel:from>
>                <bpel:to part="payload" variable="output">
>                    <bpel:query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
>
> <![CDATA[tns:flightList/ns:QueryResponseMessage/routes[1]]]>
>                    </bpel:query>
>                </bpel:to>
>            </bpel:copy>
>
>
> The complex data type:
>
> <bpel:variable name="FlightServicePLResponse"
> messageType="ns:getFlightInfoResponse"></bpel:variable>
>
> <xs:complexType name="getFlightInfoResponse">
>    <xs:sequence>
>      <xs:element name="QueryResponseMessage"
> type="tns:queryResponseMessage" form="qualified" minOccurs="0"/>
>    </xs:sequence>
>  </xs:complexType>
>
>  <xs:complexType name="queryResponseMessage">
>    <xs:sequence>
>      <xs:element name="routes" type="tns:flightRoute" nillable="true"
> minOccurs="0" maxOccurs="unbounded"/>
>    </xs:sequence>
>  </xs:complexType>
> <xs:complexType name="flightRoute">
>    <xs:sequence>
>      <xs:element name="departureFlightClass" type="xs:string"
> minOccurs="0"/>
>      <xs:element name="departureFlights" type="tns:flightInfo"
> nillable="true" minOccurs="0" maxOccurs="unbounded"/>
>      <xs:element name="returnFlightClass" type="xs:string" minOccurs="0"/>
>      <xs:element name="returnFlights" type="tns:flightInfo" nillable="true"
> minOccurs="0" maxOccurs="unbounded"/>
>    </xs:sequence>
>  </xs:complexType>
>
>  <xs:complexType name="flightInfo">
>    <xs:sequence>
>      <xs:element name="basePrice" type="xs:float"/>
>      <xs:element name="departureTime" type="xs:string" minOccurs="0"/>
>      <xs:element name="duration" type="xs:float"/>
>      <xs:element name="flightNumber" type="xs:string" minOccurs="0"/>
>      <xs:element name="startCity" type="xs:string" minOccurs="0"/>
>      <xs:element name="targetCity" type="xs:string" minOccurs="0"/>
>    </xs:sequence>
>  </xs:complexType>
>
> Here's the content of FlightServicePLResponse:
> FlightServicePLResponse is the output variable of invoking external web
> service. Basically I just want to copy the ouput to the replyoutput of the
> bpel process.
>
> Initialize variable: name={Variable
>
> __PROCESS_SCOPE:ACMEGetItinerary.FlightServicePLResponse:OMessageVarType#14({
> http://service.flight.provider.com/}getFlightInfoResponse<http://service.flight.provider.com/%7DgetFlightInfoResponse>
> )}
> value=<?xml version="1.0" encoding="UTF-8"?>
> <message><parameters><getFlightInfoResponse
> xmlns="http://service.flight.provider.com/"
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><getFlightInfoReturn
> xmlns="http://provider.com" xmlns:ns1="http://provider.com
> "><routes><routes
> xmlns:ns2="http://message.flight.provider.com"
>
> xsi:type="ns2:FlightRoute"><departureFlightClass/><departureFlights><departureFlights
> xmlns:ns3="http://entity.flight.provider.com"
>
> xsi:type="ns3:FlightInfo"><basePrice>510.0</basePrice><departureTime>06:00</departureTime><duration>8.0</duration><flightNumber>FD7</flightNumber><startCity>frankfurt</startCity><targetCity>singapore</targetCity></departureFlights></departureFlights><departureFlightsDuration>8.0</departureFlightsDuration><returnFlightClass/><returnFlights><returnFlights
> xmlns:ns4="http://entity.flight.provider.com"
>
> xsi:type="ns4:FlightInfo"><basePrice>510.0</basePrice><departureTime>18:00</departureTime><duration>8.0</duration><flightNumber>FR7</flightNumber><startCity>singapore</startCity><targetCity>frankfurt</targetCity></returnFlights></returnFlights><returnFlightsDuration>8.0</returnFlightsDuration><tocalCancelationFee>204.0</tocalCancelationFee><totalTicketPrice>1020.0</totalTicketPrice></routes></routes></getFlightInfoReturn></getFlightInfoResponse></parameters></message>
>
> http://old.nabble.com/file/p30194558/ACMEGetItinerary.zip
> ACMEGetItinerary.zip
>
> Thanks,
>
> Krisantus
>
>
> Denis Weerasiri wrote:
> >
> > hi,
> > I expected something like,
> > [ASSIGN] Assignment Fault: {
> >
> http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=51,faultExplanation=No<http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DselectionFailure,lineNo=51,faultExplanation=No>
> > results
> > for expression: {OXPath10Expression
> > $getFunctionProcess.parameters/ns0:param1}
> >
> > You sure your log4j properties have?
> >
> > log4j.category.org.apache.ode=INFO
> > log4j.appender.CONSOLE.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}]
> > %m%n
> >
> >
> > On Thu, Nov 11, 2010 at 5:53 PM, krisantus
> > <krisantus.sembiring@gmail.com>wrote:
> >
> >>
> >> Hi Denis,
> >>
> >> Here's the reply in SOAPUI:
> >> <soapenv:Envelope
> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> >> ">
> >>   <soapenv:Body>
> >>      <soapenv:Fault>
> >>         <faultcode>soapenv:Server</faultcode>
> >>         <faultstring
> >> xmlns:axis2ns1="
> http://docs.oasis-open.org/wsbpel/2.0/process/executable
> >> ">axis2ns1:selectionFailure</faultstring>
> >>         <detail/>
> >>      </soapenv:Fault>
> >>   </soapenv:Body>
> >> </soapenv:Envelope>
> >>
> >> and log output in the apache ODE console:
> >> 13:20:21,492 DEBUG [MyRoleMessageExchangeImpl] invoke() EPR= null ==>
> >> BpelProcess[{http://booktrip.acme.com}BookTrip-47]
> >> 13:20:21,698 DEBUG [BpelEngineImpl] handleJobDetails: InvokeInternal
> >> event
> >> for mexid hqejbhcnphr5qrx2d8fckk
> >> 13:20:21,725 DEBUG [BpelProcess] >> handleJobDetails(jobData=JobDetails(
> >> instanceId: null mexId: hqejbhcnphr5qrx2d8fckk processId:
> >> {http://booktrip.acme.com}BookTrip-47 type: INVOKE_INTERNAL channel:
> null
> >> correlatorId: null correlationKeySet: null retryCount: null inMem: false
> >> detailsExt: {}))
> >> 13:20:21,726 DEBUG [BpelProcess] InvokeInternal event for mexid
> >> hqejbhcnphr5qrx2d8fckk
> >> 13:20:21,825 DEBUG [MessageExchangeImpl] GET MEX property
> >> org.apache.ode.bpel.myRoleSessionId = null
> >> 13:20:21,825 DEBUG [MessageExchangeImpl] GET MEX property
> >> org.apache.ode.bpel.myRoleSessionId = null
> >> 13:20:21,826 DEBUG [MessageExchangeImpl] GET MEX property
> >> org.apache.ode.bpel.partnerRoleSessionId = null
> >> 13:20:21,826 DEBUG [BpelProcess] INPUTMSG: client.process: MSG RCVD
> >> keys=[]
> >> mySessionId=null partnerSessionId=null
> >> 13:20:21,912 DEBUG [BpelProcess] INPUTMSG: client.process: routing
> >> failed,
> >> CREATING NEW INSTANCE
> >> 13:20:22,223 DEBUG [BpelRuntimeContextImpl] BpelRuntimeContextImpl
> >> created
> >> for instance 10201. INDEXED STATE={}
> >> 13:20:22,444 DEBUG [BpelProcess] SELECT: PickResponseChannel#9: USING
> >> CORRELATOR client.process
> >> 13:20:22,451 DEBUG [BpelProcess] SELECT: PickResponseChannel#9: CHECKING
> >> for
> >> NEW INSTANCE match
> >> 13:20:22,452 DEBUG [BpelProcess] INPUTMSGMATCH: Changing process
> instance
> >> state from ready to active
> >> 13:20:22,453 DEBUG [BpelProcess] SELECT: PickResponseChannel#9: FOUND
> >> match
> >> for NEW instance mexRef={MyRoleMex#hqejbhcnphr5qrx2d8fckk [Client
> >> hqejbhcnphr5qrx2d8fckj] calling
> >> {http://booktrip.acme.com}BookTrip.process(...)}
> >> 13:20:22,757 DEBUG [BpelProcess] ProcessImpl completed with fault
> >> '{
> >>
> http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure<http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DselectionFailure>
> <
> http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DselectionFailure
> >
> >> '
> >>
> >> Is there any other place where I can get the line no information?
> >>
> >> Thanks.
> >>
> >> Krisantus
> >>
> >>
> >> Denis Weerasiri wrote:
> >> >
> >> > Hi,
> >> > With the selection failure, don't you get any other details like line
> >> no,
> >> > what the exact error is.?
> >> >
> >> > On Thu, Nov 11, 2010 at 12:00 PM, krisantus
> >> > <krisantus.sembiring@gmail.com>wrote:
> >> >
> >> >>
> >> >> Dear all,
> >> >>
> >> >> I'm trying to invoke an external web service from my BPEL process,
> but
> >> I
> >> >> keep getting axis2ns1:selectionFailure error when testing with
> SOAPUI.
> >> >> I'm
> >> >> using eclipse, axis, tomcat 6, ode 1.3.4.
> >> >>
> >> >> The process is simple receive--> assign--> invoke (external web
> >> >> service)-->
> >> >> assign --> reply. I think the variables for the invoke process have
> >> been
> >> >> initialized.
> >> >>
> >> >> Is there a way that I can see which line in my BPEL process causing
> >> the
> >> >> error? I have changed the log4j.properties log level (e.g.
> >> >> log4j.category.org.apache.ode.bpel.engine=DEBUG ...) but I still
> >> cannot
> >> >> find
> >> >> the information.
> >> >>
> >> >> Attached are my bpel process and wsdl files.
> >> >> http://old.nabble.com/file/p30187490/ACMEBook.zip ACMEBook.zip
> >> >>
> >> >> Could somebody give me a pointer how to resolve the error?
> >> >>
> >> >> Thanks.
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://old.nabble.com/Need-help-with-axis2ns1%3AselectionFailure-tp30187490p30187490.html
> >> >> Sent from the Apache Ode User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > Thanks,
> >> > Denis
> >> > ----------------------------------------------------------
> >> > *Denis Weerasiri*
> >> > <http://wso2.com/>**** <http://wso2.com/>* blog: **
> >> > http://ddweerasiri.blogspot.com* <http://ddweerasiri.blogspot.com/>*
> >> > twitter: **http://twitter.com/ddweerasiri*
> >> > <http://twitter.com/ddweerasiri>*
> >> > linked-in:
> >> > **http://lk.linkedin.com/in/ddweerasiri*<
> >> http://lk.linkedin.com/in/ddweerasiri>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Need-help-with-axis2ns1%3AselectionFailure-tp30187490p30189533.html
> >> Sent from the Apache Ode User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Thanks,
> > Denis
> > ----------------------------------------------------------
> > *Denis Weerasiri*
> > <http://wso2.com/>**** <http://wso2.com/>* blog: **
> > http://ddweerasiri.blogspot.com* <http://ddweerasiri.blogspot.com/>*
> > twitter: **http://twitter.com/ddweerasiri*
> > <http://twitter.com/ddweerasiri>*
> > linked-in:
> > **http://lk.linkedin.com/in/ddweerasiri*<
> http://lk.linkedin.com/in/ddweerasiri>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Need-help-with-axis2ns1%3AselectionFailure-tp30187490p30194558.html
> Sent from the Apache Ode User mailing list archive at Nabble.com.
>
>


-- 
Thanks,
Denis
----------------------------------------------------------
*Denis Weerasiri*
<http://wso2.com/>**** <http://wso2.com/>* blog: **
http://ddweerasiri.blogspot.com* <http://ddweerasiri.blogspot.com/>*
twitter: **http://twitter.com/ddweerasiri* <http://twitter.com/ddweerasiri>*
linked-in: **http://lk.linkedin.com/in/ddweerasiri*<http://lk.linkedin.com/in/ddweerasiri>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message