NPE in to-spec when default language is XQuery
----------------------------------------------
Key: ODE-541
URL: https://issues.apache.org/jira/browse/ODE-541
Project: ODE
Issue Type: Bug
Components: BPEL Runtime
Affects Versions: 1.3
Reporter: Mark Ford
Priority: Minor
The expression language for the process has been set to
urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0. The code below throws a NPE
because the xpath variable in the class is null. Looks like the subclass
OXQuery10ExpressionBPEL20 needs to override the getVariable method or perhaps
encapsulate access to the expression variable.
I suspect that the simple workaround is to override the expressionLanguage for
the to-spec to force XPath 1.0.
Caused by: java.lang.NullPointerException
at
org.apache.ode.bpel.elang.xpath10.o.OXPath10Expression.getVariable(OXPath10Expression.java:182)
at
org.apache.ode.bpel.o.OAssign$LValueExpression.getVariable(OAssign.java:135)
at org.apache.ode.bpel.runtime.ASSIGN.evalLValue(ASSIGN.java:127)
at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:361)
at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
... 15 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.