ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vishal Bhasin <vbha...@yahoo.com>
Subject Re: Under what circumstances do we get the following exception??
Date Sun, 17 Jun 2007 22:46:11 GMT
Rene,

Thanks for your message, here's the WSDL I'm using, I'm not certain if this is all correct,
so would appreciate if you can have a look:

>> OTA_AirAvailLLS1.4.1RQ.wsdl <<

<definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:logicblaze:soa:creditagency" xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:ns="http://schemas.xmlsoap.org/soap/encoding/"
targetNamespace="urn:logicblaze:soa:creditagency">
    <types>
        <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <xsd:import namespace="urn:logicblaze:soa:creditagency" schemaLocation="OTA_AirAvailLLS1.4.1RQRS.xsd"/>
            <!--xsd:import namespace="http://www.ebxml.org/namespaces/messageHeader" schemaLocation="msg-header-2_0.xsd"/>
            <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
            <xsd:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink.xsd"/>
            <xsd:import namespace="http://schemas.xmlsoap.org/soap/envelope/" schemaLocation="envelope.xsd"/>
            <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
            <xsd:import namespace="http://schemas.xmlsoap.org/ws/2002/12/secext" schemaLocation="wsse.xsd"/-->
        </xsd:schema>
    </types>
    <message name="OTA_AirAvailInput">
        <!--part name="header" element="eb:MessageHeader"/>
        <part name="header2" element="wsse:Security"/-->
        <part name="payload" element="tns:OTA_AirAvailRQ"/>
    </message>
    <message name="OTA_AirAvailOutput">
        <!--part name="header" element="eb:MessageHeader"/>
        <part name="header2" element="wsse:Security"/-->
        <part name="payload" element="tns:OTA_AirAvailRS"/>
    </message>
    <portType name="CreditAgency">
        <operation name="OTA_AirAvailRQ">
            <input message="tns:OTA_AirAvailInput"/>
            <output message="tns:OTA_AirAvailOutput"/>
        </operation>
    </portType>
    <!--binding name="OTA_AirAvailSoapBinding" type="tns:OTA_AirAvailPortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="OTA_AirAvailRQ">
            <soap:operation soapAction="OTA"/>
            <input>
                <soap:header message="tns:OTA_AirAvailInput" part="header" use="literal"/>
                <soap:header message="tns:OTA_AirAvailInput" part="header2" use="literal"/>
                <soap:body parts="body" use="literal"/>
            </input>
            <output>
                <soap:header message="tns:OTA_AirAvailOutput" part="header" use="literal"/>
                <soap:header message="tns:OTA_AirAvailOutput" part="header2" use="literal"/>
                <soap:body parts="body" use="literal"/>
            </output>
        </operation>
    </binding>
    <service name="OTA_AirAvailService">
        <port name="OTA_AirAvailPortType" binding="tns:OTA_AirAvailSoapBinding">
            <soap:address location="https://webservices.sabre.com/websvc"/>
        </port>
    </service-->
    <plnk:partnerLinkType name="CreditAgencyPL">
        <plnk:role name="CreditAgencyService" portType="tns:CreditAgency"/>
    </plnk:partnerLinkType>
</definitions>

<<

>> loanbroker.wsdl <<
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:tns="urn:sabre:soa:airavail" xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" targetNamespace="urn:sabre:soa:airavail">
    <import namespace="urn:logicblaze:soa:creditagency" location="OTA_AirAvailLLS1.4.1RQ.wsdl"/>
    <import namespace="urn:logicblaze:soa:bank" location="bank.wsdl"/>
    <types>
        <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <xsd:import namespace="urn:sabre:soa:airavail" schemaLocation="Orch_AirAvailRQRS.xsd"/>
        </xsd:schema>
    </types>
    <message name="Orch_AirAvailInput">
        <part name="payload" element="tns:OTA_AirAvailRQ"/>
    </message>
    <message name="Orch_AirAvailOutput">
        <part name="payload" element="tns:OTA_AirAvailRS"/>
    </message>
    <portType name="AirAvail">
        <operation name="OTA_AirAvailRQ">
            <input message="tns:Orch_AirAvailInput"/>
            <output message="tns:Orch_AirAvailOutput"/>
        </operation>
    </portType>
    <plnk:partnerLinkType name="AirAvailPL">
        <plnk:role name="OrchAirAvailService" portType="tns:AirAvail"/>
    </plnk:partnerLinkType>
</definitions>

<<

Thanks!

René Bos <rene@rpsoft.nl> wrote: Hi,

I had a somewhat same error last week. It looked very strange to me, but 
the real error was some lines above in the log! The assign you are using 
now is the same as in the previous message, but written in a different 
way.. I think in a good way ;)
According to your error in the previous message, it looks like the 
variable ca-response don't have the part payload. Can you confirm that? 
Or can you please post the  used WSDL?

René

Vishal Bhasin schreef op 17-6-2007 22:10:
> I tried modifying the assign statement in BPEL to read like this:
>
>         
>             
>                    
>                    
>             
>         
>
>
> with this I see the following exception, I'm obviously doing something wrong, but haven't
been able to point out the issue:
>
> ERROR - JacobVPU                       - Method "run" in class "org.apache.ode.bpel.runtime.ASSIGN"
threw an unexpe
> cted exception.
> java.lang.IllegalArgumentException: null parent
>         at org.apache.ode.utils.DOMUtils.findChildByName(DOMUtils.java:740)
>         at org.apache.ode.utils.DOMUtils.findChildByName(DOMUtils.java:735)
>         at org.apache.ode.bpel.runtime.ASSIGN.evalQuery(ASSIGN.java:566)
>         at org.apache.ode.bpel.runtime.ASSIGN.evalRValue(ASSIGN.java:166)
>         at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:356)
>         at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:79)
>         at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
>         at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>         at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:817)
>         at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:310)
>         at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:311)
>         at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:390)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl.doExecute(QuartzSchedulerImpl.java:351)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl.access$000(QuartzSchedulerImpl.java:65)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl$1$1.call(QuartzSchedulerImpl.java:234)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl.execTransaction(QuartzSchedulerImpl.java:275)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl$2.call(QuartzSchedulerImpl.java:303)
>         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)
> ERROR - BpelEngineImpl                 - Scheduled job failed; jobDetail={type=INVOKE_RESPONSE,
inmem=true, mexid=4
> 611686018427387906, channel=26, iid=1}
> java.lang.RuntimeException: java.lang.IllegalArgumentException: null parent
>         at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:464)
>         at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>         at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:817)
>         at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:310)
>         at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:311)
>         at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:390)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl.doExecute(QuartzSchedulerImpl.java:351)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl.access$000(QuartzSchedulerImpl.java:65)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl$1$1.call(QuartzSchedulerImpl.java:234)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl.execTransaction(QuartzSchedulerImpl.java:275)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl$2.call(QuartzSchedulerImpl.java:303)
>         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: java.lang.IllegalArgumentException: null parent
>         at org.apache.ode.utils.DOMUtils.findChildByName(DOMUtils.java:740)
>         at org.apache.ode.utils.DOMUtils.findChildByName(DOMUtils.java:735)
>         at org.apache.ode.bpel.runtime.ASSIGN.evalQuery(ASSIGN.java:566)
>         at org.apache.ode.bpel.runtime.ASSIGN.evalRValue(ASSIGN.java:166)
>         at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:356)
>         at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:79)
>         at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
>         ... 15 more
> <<
>
>
>
> Vishal Bhasin  wrote: Matthieu,
>
> Many thanks for pointing out the issue..I made progress, am almost there but encountering
another issue now:
>
>   
> ERROR - ASSIGN                         - Assignment Fault: {http://docs.oasis-open.org/wsbpel/2.0/process/executabl
> e}selectionFailure,lineNo=39
> org.apache.ode.bpel.elang.xpath20.compiler.WrappedResolverException: org.apache.ode.bpel.common.FaultException:
Unk
> nown variable ca-response.payload
>         at org.apache.ode.bpel.elang.xpath20.runtime.JaxpVariableResolver.resolveVariable(JaxpVariableResolver.java
> :109)
>         at net.sf.saxon.xpath.JAXPVariable.evaluateVariable(JAXPVariable.java:117)
>         at net.sf.saxon.expr.VariableReference.evaluateVariable(VariableReference.java:244)
>         at net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:217)
>         at net.sf.saxon.xpath.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:256)
>         at org.apache.ode.bpel.elang.xpath20.runtime.XPath20ExpressionRuntime.evaluate(XPath20ExpressionRuntime.jav
> a:175)
>         at org.apache.ode.bpel.elang.xpath20.runtime.XPath20ExpressionRuntime.evaluate(XPath20ExpressionRuntime.jav
> a:101)
>         at org.apache.ode.bpel.runtime.ExpressionLanguageRuntimeRegistry.evaluate(ExpressionLanguageRuntimeRegistry
> .java:80)
>         at org.apache.ode.bpel.runtime.ASSIGN.evalRValue(ASSIGN.java:192)
>         at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:356)
>         at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:79)
>         at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
>         at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>         at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:817)
>         at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:310)
>         at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:311)
>         at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:390)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl.doExecute(QuartzSchedulerImpl.java:351)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl.access$000(QuartzSchedulerImpl.java:65)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl$1$1.call(QuartzSchedulerImpl.java:234)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl.execTransaction(QuartzSchedulerImpl.java:275)
>         at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl$2.call(QuartzSchedulerImpl.java:303)
>         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: Unknown variable ca-response.payload
>         at org.apache.ode.bpel.elang.xpath20.runtime.JaxpVariableResolver.resolveVariable(JaxpVariableResolver.java
> :95)
>         ... 29 more
> ERROR - ASSIGN                         - Assignment Fault: {http://docs.oasis-open.org/wsbpel/2.0/process/executabl
> e}selectionFailure,lineNo=39
> <<
>
> Here is the BPEL:
>   
>
>
>     targetNamespace="urn:sabre:soa:airavail" 
>     expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
>     xmlns:tns="urn:sabre:soa:airavail" 
>     xmlns:ca="urn:logicblaze:soa:creditagency" 
>     xmlns:bk="urn:logicblaze:soa:bank" 
>     xmlns:svc="urn:logicblaze:soa:service" 
>     xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable">
>     
>     
>     
>     
>         
>         
>     
>     
>         
>         
>         
>         
>     
>     
>         
>         
>         
>             
>                             
>                     
>                         $request.payload    
>                         $ca-request.payload                    
>                                         
>                 
>                 
>                 
>             
>         
>         
>             
>                    $ca-response.payload                   
>                    $response.payload
>             
>         
>         
>     
>
> <<
>
> and here is the response from external web service:
>
>   
>
>
>     
>     
>         
>             
>                 
>                 
>                 
>                 SUN
>             
>             
>                 
>                 
>                 
>                 
>                 
>                 
>                     
>                     
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                     
>
>                     
>                         
>                             
>                                 
>                             
>                         
>                     
>                 
>             
>
>         
>         
>             
>                 
>                 
>                 
>                 SUN
>             
>             
>                 
>                 
>                 
>                 
>                 
>                 
>                     
>                     
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                     
>
>                     
>                         
>                             
>                                 
>                             
>                         
>                     
>                 
>             
>
>         
>         
>             
>                 
>                 
>                 
>                 SUN
>             
>             
>                 
>                 
>                 
>                 
>                 
>                 
>                     
>                     
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                     
>
>                     
>                         
>                             
>                                 
>                             
>                         
>                     
>                 
>             
>
>         
>         
>             
>                 
>                 
>                 
>                 SUN
>             
>             
>                 
>                 
>                 
>                 
>                 
>                 
>                     
>                     
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                     
>
>                     
>                         
>                             
>                                 
>                             
>                         
>                     
>                 
>             
>
>         
>         
>             
>                 
>                 
>                 
>                 SUN
>             
>             
>                 
>                 
>                 
>                 
>                 
>                 
>                     
>                     
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                 
>                     
>
>                     
>                         
>                             
>                                 
>
> === message truncated ===
>
>
>
> Regards,
>
> Vishal Bhasin
>
>        
> ---------------------------------
> Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. 
>   



Regards,

Vishal Bhasin

       
---------------------------------
Luggage? GPS? Comic books? 
Check out fitting  gifts for grads at Yahoo! Search.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message