Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.3.2
-
None
Description
XQuery10ExpressionCompilerImpl.getVariableNames(xquery) results in an exception during the parse when the expression ends with a variable reference.
java.lang.StringIndexOutOfBoundsException: String index out of range: 89
at java.lang.String.charAt(String.java:558)
at org.apache.ode.bpel.elang.xquery10.compiler.XQuery10ExpressionCompilerImpl.getVariableNames(XQuery10ExpressionCompilerImpl.java:307)
at org.apache.ode.bpel.elang.xquery10.compiler.XQuery10ExpressionCompilerImpl.doJaxpCompile(XQuery10ExpressionCompilerImpl.java:206)
at org.apache.ode.bpel.elang.xquery10.compiler.XQuery10ExpressionCompilerImpl._compile(XQuery10ExpressionCompilerImpl.java:141)
at org.apache.ode.bpel.elang.xquery10.compiler.XQuery10ExpressionCompilerImpl.compile(XQuery10ExpressionCompilerImpl.java:123)
at org.apache.ode.bpel.compiler.BpelCompiler.compileExpr(BpelCompiler.java:558)
at org.apache.ode.bpel.compiler.BpelCompiler.compileExpr(BpelCompiler.java:543)
at org.apache.ode.bpel.compiler.AssignGenerator.compileFrom(AssignGenerator.java:188)
Workaround is to change the expression to have some characters at the end, even if it's just a comment.
Attachments
Attachments
Issue Links
- relates to
-
ODE-542 XQuery with multiple variable references failing with static analysis error
- Resolved