You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Mark Ford (JIRA)" <ji...@apache.org> on 2011/01/13 18:13:45 UTC
[jira] Created: (ODE-907) getVariableProperty not resolved when
used in XQuery expression
getVariableProperty not resolved when used in XQuery expression
---------------------------------------------------------------
Key: ODE-907
URL: https://issues.apache.org/jira/browse/ODE-907
Project: ODE
Issue Type: Bug
Reporter: Mark Ford
I am getting the stacktrace below when using bpel:getVariableProperty within an XQuery expression. The process works fine if I set the expression language to Xpath 2.0
{code}
XPST0017: Cannot find a matching 2-argument function named
{http://docs.oasis-open.org/wsbpel/2.0/process/executable}getVariableProperty()
11:43:12,372 ERROR [BpelC] null:59: error: [XQuery10Syntax] The string "bpel:getVariableProperty('myVar','test:prop1')" is not a valid XQuery 1.0 expression: Couldn't validate XQuery expression
11:43:12,374 ERROR [ProcessStoreImpl] Deploy failed; error: [CompilationErrors] Compilation completed with 1 error(s):
null:59: error: [XQuery10Syntax] The string "bpel:getVariableProperty('myVar','test:prop1')" is not a valid XQuery 1.0 expression: Couldn't validate XQuery expression
org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 1 error(s):
null:59: error: [XQuery10Syntax] The string "bpel:getVariableProperty('myVar','test:prop1')" is not a valid XQuery 1.0 expression: Couldn't validate XQuery expression
at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:782)
at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:213)
at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:210)
at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:171)
at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:200)
at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:168)
at org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:160)
at org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:60)
at org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:251)
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ODE-907) getVariableProperty not resolved when
used in XQuery expression
Posted by "Mark Ford (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Ford updated ODE-907:
--------------------------
Affects Version/s: 1.3.4
> getVariableProperty not resolved when used in XQuery expression
> ---------------------------------------------------------------
>
> Key: ODE-907
> URL: https://issues.apache.org/jira/browse/ODE-907
> Project: ODE
> Issue Type: Bug
> Affects Versions: 1.3.4
> Reporter: Mark Ford
>
> I am getting the stacktrace below when using bpel:getVariableProperty within an XQuery expression. The process works fine if I set the expression language to Xpath 2.0
> {code}
> XPST0017: Cannot find a matching 2-argument function named
> {http://docs.oasis-open.org/wsbpel/2.0/process/executable}getVariableProperty()
> 11:43:12,372 ERROR [BpelC] null:59: error: [XQuery10Syntax] The string "bpel:getVariableProperty('myVar','test:prop1')" is not a valid XQuery 1.0 expression: Couldn't validate XQuery expression
> 11:43:12,374 ERROR [ProcessStoreImpl] Deploy failed; error: [CompilationErrors] Compilation completed with 1 error(s):
> null:59: error: [XQuery10Syntax] The string "bpel:getVariableProperty('myVar','test:prop1')" is not a valid XQuery 1.0 expression: Couldn't validate XQuery expression
> org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 1 error(s):
> null:59: error: [XQuery10Syntax] The string "bpel:getVariableProperty('myVar','test:prop1')" is not a valid XQuery 1.0 expression: Couldn't validate XQuery expression
> at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:782)
> at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
> at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
> at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:213)
> at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
> at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:210)
> at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:171)
> at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:200)
> at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:168)
> at org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:160)
> at org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:60)
> at org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:251)
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ODE-907) getVariableProperty not resolved when
used in XQuery expression
Posted by "Mark Ford (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Ford updated ODE-907:
--------------------------
Attachment: HelloWorld2-907.zip
Attached is a modified HelloWorld process. The changes are as follow:
1) set default expression language to XQuery
2) add property alias for HelloMessage (note that vprop:query requires explicit setting of Xpath 2.0 expression language due to ODE-638)
3) change assign to use bpel:getVariableProperty('myVar', 'test:prop1')
This process fails compilation at deployment time. If you change the default expression language to XPath 2.0 then the process deploys and the function works. See output below:
{code:xml}
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<odens:helloResponse xmlns:odens="http://ode/bpel/unit-test.wsdl">
<TestPart xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://ode/bpel/unit-test.wsdl">
Hello World-property
</TestPart>
</odens:helloResponse>
</soapenv:Body>
</soapenv:Envelope>
{code}
> getVariableProperty not resolved when used in XQuery expression
> ---------------------------------------------------------------
>
> Key: ODE-907
> URL: https://issues.apache.org/jira/browse/ODE-907
> Project: ODE
> Issue Type: Bug
> Affects Versions: 1.3.4
> Reporter: Mark Ford
> Attachments: HelloWorld2-907.zip
>
>
> I am getting the stacktrace below when using bpel:getVariableProperty within an XQuery expression. The process works fine if I set the expression language to Xpath 2.0
> {code}
> XPST0017: Cannot find a matching 2-argument function named
> {http://docs.oasis-open.org/wsbpel/2.0/process/executable}getVariableProperty()
> 11:43:12,372 ERROR [BpelC] null:59: error: [XQuery10Syntax] The string "bpel:getVariableProperty('myVar','test:prop1')" is not a valid XQuery 1.0 expression: Couldn't validate XQuery expression
> 11:43:12,374 ERROR [ProcessStoreImpl] Deploy failed; error: [CompilationErrors] Compilation completed with 1 error(s):
> null:59: error: [XQuery10Syntax] The string "bpel:getVariableProperty('myVar','test:prop1')" is not a valid XQuery 1.0 expression: Couldn't validate XQuery expression
> org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 1 error(s):
> null:59: error: [XQuery10Syntax] The string "bpel:getVariableProperty('myVar','test:prop1')" is not a valid XQuery 1.0 expression: Couldn't validate XQuery expression
> at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:782)
> at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
> at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
> at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:213)
> at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
> at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:210)
> at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:171)
> at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:200)
> at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:168)
> at org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:160)
> at org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:60)
> at org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:251)
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.