You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Doug Lundin <do...@gmail.com> on 2009/04/06 18:40:15 UTC

RE: java.lang. IllegalStateException: XPath string and xpath node are both null

Hello,

I've just installed the Eclipse BPEL project and am working through the
"Developing, Deploying and Running a Hello World BPEL Process with the
Eclipse BPEL Designer and Apache ODE" tutorial. I am getting this error when
I try to deploy:

INFO: Server startup in 14392 ms
ERROR - GeronimoLog.error(108) | Deployment of ODE_Test failed, aborting for
now.
java.lang.IllegalStateException: XPath string and xpath node are both null
    at
org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerImpl.doJaxenCompile(XPath10ExpressionCompilerImpl.java:109)
    at
org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL20._compile(XPath10ExpressionCompilerBPEL20.java:88)
    at
org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL20.compile(XPath10ExpressionCompilerBPEL20.java:70)
    at
org.apache.ode.bpel.compiler.BpelCompiler.compileExpr(BpelCompiler.java:549)
    at
org.apache.ode.bpel.compiler.BpelCompiler.compileExpr(BpelCompiler.java:534)
    at
org.apache.ode.bpel.compiler.AssignGenerator.compileFrom(AssignGenerator.java:186)
    at
org.apache.ode.bpel.compiler.AssignGenerator.compile(AssignGenerator.java:72)
    at
org.apache.ode.bpel.compiler.BpelCompiler$7.run(BpelCompiler.java:901)
    at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1065)
    at
org.apache.ode.bpel.compiler.BpelCompiler.compileActivity(BpelCompiler.java:897)
    at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:846)
    at
org.apache.ode.bpel.compiler.SequenceGenerator.compileChildren(SequenceGenerator.java:54)
    at
org.apache.ode.bpel.compiler.SequenceGenerator.compile(SequenceGenerator.java:45)
    at
org.apache.ode.bpel.compiler.BpelCompiler$7.run(BpelCompiler.java:901)
    at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1065)
    at
org.apache.ode.bpel.compiler.BpelCompiler.compileActivity(BpelCompiler.java:897)
    at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:846)
    at
org.apache.ode.bpel.compiler.BpelCompiler$5.run(BpelCompiler.java:723)
    at
org.apache.ode.bpel.compiler.BpelCompiler$8.run(BpelCompiler.java:1155)
    at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1065)
    at
org.apache.ode.bpel.compiler.BpelCompiler.compileScope(BpelCompiler.java:1105)
    at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:703)
    at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:260)
    at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:330)
    at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:162)
    at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:126)
    at
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:165)
    at
org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:144)
    at
org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:55)
    at
org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:188)

Thanks in advance,
Doug

Re: java.lang. IllegalStateException: XPath string and xpath node are both null

Posted by ratha <ra...@wso2.com>.
Hi Lundin,
If you see the second <bpel:copy>, where <bpel:from> tag has no xpath 
expression.It caused error. If you assign expression to that it'll work 
fine..
Thanks.
-Ratha.

Doug Lundin wrote:
> Ratha,
>
> So, it looks like I had an extra "Expression to Variable" step. Once I
> removed the duplicate, I was able to deploy in Apache ODE.
>
> As I saw in this code snippet, the second <bpel:copy> is extraneous and
> should be deleted.
>
> ===================================
>             <bpel:copy>
>                 <bpel:from>
>                     <![CDATA[concat("Hello, ", $input.payload/tns:input)]]>
>                 </bpel:from>
>                 <bpel:to part="payload" variable="output">
>                     <bpel:query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:result]]></bpel:query>
>                 </bpel:to>
>             </bpel:copy>
>             <bpel:copy>
>                 <bpel:from></bpel:from>
>                 <bpel:to part="payload" variable="output">
>                     <bpel:query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:result]]></bpel:query>
>                 </bpel:to>
>             </bpel:copy>
> ===================================
>
>
>
>
>
> On Mon, Apr 6, 2009 at 11:12 AM, ratha <ra...@wso2.com> wrote:
>
>   
>> Hi Lundin,
>> In your process you have assigned an activity without  Xpath expression. In
>> Eclipse, when you try to assign an activity most of the times it
>> automatically assign such variable without expression. Select the 'Assign'
>> activity and go to its property window and delete it.
>> Thanks.
>> -Ratha.
>>
>> Doug Lundin wrote:
>>
>>     
>>> Hello,
>>>
>>> I've just installed the Eclipse BPEL project and am working through the
>>> "Developing, Deploying and Running a Hello World BPEL Process with the
>>> Eclipse BPEL Designer and Apache ODE" tutorial. I am getting this error
>>> when
>>> I try to deploy:
>>>
>>> INFO: Server startup in 14392 ms
>>> ERROR - GeronimoLog.error(108) | Deployment of ODE_Test failed, aborting
>>> for
>>> now.
>>> java.lang.IllegalStateException: XPath string and xpath node are both null
>>>    at
>>>
>>> org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerImpl.doJaxenCompile(XPath10ExpressionCompilerImpl.java:109)
>>>    at
>>>
>>> org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL20._compile(XPath10ExpressionCompilerBPEL20.java:88)
>>>    at
>>>
>>> org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL20.compile(XPath10ExpressionCompilerBPEL20.java:70)
>>>    at
>>>
>>> org.apache.ode.bpel.compiler.BpelCompiler.compileExpr(BpelCompiler.java:549)
>>>    at
>>>
>>> org.apache.ode.bpel.compiler.BpelCompiler.compileExpr(BpelCompiler.java:534)
>>>    at
>>>
>>> org.apache.ode.bpel.compiler.AssignGenerator.compileFrom(AssignGenerator.java:186)
>>>    at
>>>
>>> org.apache.ode.bpel.compiler.AssignGenerator.compile(AssignGenerator.java:72)
>>>    at
>>> org.apache.ode.bpel.compiler.BpelCompiler$7.run(BpelCompiler.java:901)
>>>    at
>>> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1065)
>>>    at
>>>
>>> org.apache.ode.bpel.compiler.BpelCompiler.compileActivity(BpelCompiler.java:897)
>>>    at
>>> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:846)
>>>    at
>>>
>>> org.apache.ode.bpel.compiler.SequenceGenerator.compileChildren(SequenceGenerator.java:54)
>>>    at
>>>
>>> org.apache.ode.bpel.compiler.SequenceGenerator.compile(SequenceGenerator.java:45)
>>>    at
>>> org.apache.ode.bpel.compiler.BpelCompiler$7.run(BpelCompiler.java:901)
>>>    at
>>> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1065)
>>>    at
>>>
>>> org.apache.ode.bpel.compiler.BpelCompiler.compileActivity(BpelCompiler.java:897)
>>>    at
>>> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:846)
>>>    at
>>> org.apache.ode.bpel.compiler.BpelCompiler$5.run(BpelCompiler.java:723)
>>>    at
>>> org.apache.ode.bpel.compiler.BpelCompiler$8.run(BpelCompiler.java:1155)
>>>    at
>>> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1065)
>>>    at
>>>
>>> org.apache.ode.bpel.compiler.BpelCompiler.compileScope(BpelCompiler.java:1105)
>>>    at
>>> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:703)
>>>    at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:260)
>>>    at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:330)
>>>    at
>>> org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:162)
>>>    at
>>> org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:126)
>>>    at
>>> org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:165)
>>>    at
>>>
>>> org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:144)
>>>    at
>>>
>>> org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:55)
>>>    at
>>>
>>> org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:188)
>>>
>>> Thanks in advance,
>>> Doug
>>>
>>>  ------------------------------------------------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database:
>>> 270.11.43/2043 - Release Date: 04/06/09 06:22:00
>>>
>>>
>>>
>>>       
>>     
>
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.0.238 / Virus Database: 270.11.43/2043 - Release Date: 04/06/09 06:22:00
>
>   


Re: java.lang. IllegalStateException: XPath string and xpath node are both null

Posted by Doug Lundin <do...@gmail.com>.
Ratha,

So, it looks like I had an extra "Expression to Variable" step. Once I
removed the duplicate, I was able to deploy in Apache ODE.

As I saw in this code snippet, the second <bpel:copy> is extraneous and
should be deleted.

===================================
            <bpel:copy>
                <bpel:from>
                    <![CDATA[concat("Hello, ", $input.payload/tns:input)]]>
                </bpel:from>
                <bpel:to part="payload" variable="output">
                    <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:result]]></bpel:query>
                </bpel:to>
            </bpel:copy>
            <bpel:copy>
                <bpel:from></bpel:from>
                <bpel:to part="payload" variable="output">
                    <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:result]]></bpel:query>
                </bpel:to>
            </bpel:copy>
===================================





On Mon, Apr 6, 2009 at 11:12 AM, ratha <ra...@wso2.com> wrote:

> Hi Lundin,
> In your process you have assigned an activity without  Xpath expression. In
> Eclipse, when you try to assign an activity most of the times it
> automatically assign such variable without expression. Select the 'Assign'
> activity and go to its property window and delete it.
> Thanks.
> -Ratha.
>
> Doug Lundin wrote:
>
>> Hello,
>>
>> I've just installed the Eclipse BPEL project and am working through the
>> "Developing, Deploying and Running a Hello World BPEL Process with the
>> Eclipse BPEL Designer and Apache ODE" tutorial. I am getting this error
>> when
>> I try to deploy:
>>
>> INFO: Server startup in 14392 ms
>> ERROR - GeronimoLog.error(108) | Deployment of ODE_Test failed, aborting
>> for
>> now.
>> java.lang.IllegalStateException: XPath string and xpath node are both null
>>    at
>>
>> org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerImpl.doJaxenCompile(XPath10ExpressionCompilerImpl.java:109)
>>    at
>>
>> org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL20._compile(XPath10ExpressionCompilerBPEL20.java:88)
>>    at
>>
>> org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL20.compile(XPath10ExpressionCompilerBPEL20.java:70)
>>    at
>>
>> org.apache.ode.bpel.compiler.BpelCompiler.compileExpr(BpelCompiler.java:549)
>>    at
>>
>> org.apache.ode.bpel.compiler.BpelCompiler.compileExpr(BpelCompiler.java:534)
>>    at
>>
>> org.apache.ode.bpel.compiler.AssignGenerator.compileFrom(AssignGenerator.java:186)
>>    at
>>
>> org.apache.ode.bpel.compiler.AssignGenerator.compile(AssignGenerator.java:72)
>>    at
>> org.apache.ode.bpel.compiler.BpelCompiler$7.run(BpelCompiler.java:901)
>>    at
>> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1065)
>>    at
>>
>> org.apache.ode.bpel.compiler.BpelCompiler.compileActivity(BpelCompiler.java:897)
>>    at
>> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:846)
>>    at
>>
>> org.apache.ode.bpel.compiler.SequenceGenerator.compileChildren(SequenceGenerator.java:54)
>>    at
>>
>> org.apache.ode.bpel.compiler.SequenceGenerator.compile(SequenceGenerator.java:45)
>>    at
>> org.apache.ode.bpel.compiler.BpelCompiler$7.run(BpelCompiler.java:901)
>>    at
>> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1065)
>>    at
>>
>> org.apache.ode.bpel.compiler.BpelCompiler.compileActivity(BpelCompiler.java:897)
>>    at
>> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:846)
>>    at
>> org.apache.ode.bpel.compiler.BpelCompiler$5.run(BpelCompiler.java:723)
>>    at
>> org.apache.ode.bpel.compiler.BpelCompiler$8.run(BpelCompiler.java:1155)
>>    at
>> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1065)
>>    at
>>
>> org.apache.ode.bpel.compiler.BpelCompiler.compileScope(BpelCompiler.java:1105)
>>    at
>> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:703)
>>    at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:260)
>>    at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:330)
>>    at
>> org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:162)
>>    at
>> org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:126)
>>    at
>> org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:165)
>>    at
>>
>> org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:144)
>>    at
>>
>> org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:55)
>>    at
>>
>> org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:188)
>>
>> Thanks in advance,
>> Doug
>>
>>  ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database:
>> 270.11.43/2043 - Release Date: 04/06/09 06:22:00
>>
>>
>>
>
>

Re: java.lang. IllegalStateException: XPath string and xpath node are both null

Posted by ratha <ra...@wso2.com>.
Hi Lundin,
In your process you have assigned an activity without  Xpath expression. 
In Eclipse, when you try to assign an activity most of the times it 
automatically assign such variable without expression. Select the 
'Assign' activity and go to its property window and delete it.
Thanks.
-Ratha.

Doug Lundin wrote:
> Hello,
>
> I've just installed the Eclipse BPEL project and am working through the
> "Developing, Deploying and Running a Hello World BPEL Process with the
> Eclipse BPEL Designer and Apache ODE" tutorial. I am getting this error when
> I try to deploy:
>
> INFO: Server startup in 14392 ms
> ERROR - GeronimoLog.error(108) | Deployment of ODE_Test failed, aborting for
> now.
> java.lang.IllegalStateException: XPath string and xpath node are both null
>     at
> org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerImpl.doJaxenCompile(XPath10ExpressionCompilerImpl.java:109)
>     at
> org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL20._compile(XPath10ExpressionCompilerBPEL20.java:88)
>     at
> org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL20.compile(XPath10ExpressionCompilerBPEL20.java:70)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler.compileExpr(BpelCompiler.java:549)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler.compileExpr(BpelCompiler.java:534)
>     at
> org.apache.ode.bpel.compiler.AssignGenerator.compileFrom(AssignGenerator.java:186)
>     at
> org.apache.ode.bpel.compiler.AssignGenerator.compile(AssignGenerator.java:72)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler$7.run(BpelCompiler.java:901)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1065)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler.compileActivity(BpelCompiler.java:897)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:846)
>     at
> org.apache.ode.bpel.compiler.SequenceGenerator.compileChildren(SequenceGenerator.java:54)
>     at
> org.apache.ode.bpel.compiler.SequenceGenerator.compile(SequenceGenerator.java:45)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler$7.run(BpelCompiler.java:901)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1065)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler.compileActivity(BpelCompiler.java:897)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:846)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler$5.run(BpelCompiler.java:723)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler$8.run(BpelCompiler.java:1155)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1065)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler.compileScope(BpelCompiler.java:1105)
>     at
> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:703)
>     at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:260)
>     at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:330)
>     at
> org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:162)
>     at
> org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:126)
>     at
> org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:165)
>     at
> org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:144)
>     at
> org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:55)
>     at
> org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:188)
>
> Thanks in advance,
> Doug
>
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.0.238 / Virus Database: 270.11.43/2043 - Release Date: 04/06/09 06:22:00
>
>