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 2009/08/07 21:25:14 UTC
[jira] Created: (ODE-646) Error parsing variable names in xquery
when expression ends with variable reference
Error parsing variable names in xquery when expression ends with variable reference
-----------------------------------------------------------------------------------
Key: ODE-646
URL: https://issues.apache.org/jira/browse/ODE-646
Project: ODE
Issue Type: Bug
Components: BPEL Compilation/Parsing
Affects Versions: 1.3.2
Reporter: Mark Ford
Priority: Minor
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ODE-646) Error parsing variable names in xquery
when expression ends with variable reference
Posted by "Mark Ford (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Ford updated ODE-646:
--------------------------
Attachment: ODE-646.patch
Patch and unit test. It's the same string parsing technique but avoids the out of bounds exception. Also addresses ODE-541 by using a LinkedHashSet instead of a List to avoid creating duplicate names.
> Error parsing variable names in xquery when expression ends with variable reference
> -----------------------------------------------------------------------------------
>
> Key: ODE-646
> URL: https://issues.apache.org/jira/browse/ODE-646
> Project: ODE
> Issue Type: Bug
> Components: BPEL Compilation/Parsing
> Affects Versions: 1.3.2
> Reporter: Mark Ford
> Priority: Minor
> Attachments: ODE-646.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (ODE-646) Error parsing variable names in xquery
when expression ends with variable reference
Posted by "Karthick Sankarachary (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karthick Sankarachary resolved ODE-646.
---------------------------------------
Resolution: Fixed
> Error parsing variable names in xquery when expression ends with variable reference
> -----------------------------------------------------------------------------------
>
> Key: ODE-646
> URL: https://issues.apache.org/jira/browse/ODE-646
> Project: ODE
> Issue Type: Bug
> Components: BPEL Compilation/Parsing
> Affects Versions: 1.3.2
> Reporter: Mark Ford
> Assignee: Karthick Sankarachary
> Priority: Minor
> Attachments: ODE-646.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (ODE-646) Error parsing variable names
in xquery when expression ends with variable reference
Posted by "Mark Ford (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740682#action_12740682 ]
Mark Ford edited comment on ODE-646 at 8/7/09 12:29 PM:
--------------------------------------------------------
Patch and unit test. It's the same string parsing technique but avoids the out of bounds exception. Also addresses ODE-542 by using a LinkedHashSet instead of a List to avoid creating duplicate names.
was (Author: mark.ford):
Patch and unit test. It's the same string parsing technique but avoids the out of bounds exception. Also addresses ODE-541 by using a LinkedHashSet instead of a List to avoid creating duplicate names.
> Error parsing variable names in xquery when expression ends with variable reference
> -----------------------------------------------------------------------------------
>
> Key: ODE-646
> URL: https://issues.apache.org/jira/browse/ODE-646
> Project: ODE
> Issue Type: Bug
> Components: BPEL Compilation/Parsing
> Affects Versions: 1.3.2
> Reporter: Mark Ford
> Priority: Minor
> Attachments: ODE-646.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (ODE-646) Error parsing variable names in xquery
when expression ends with variable reference
Posted by "Karthick Sankarachary (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karthick Sankarachary reassigned ODE-646:
-----------------------------------------
Assignee: Karthick Sankarachary
> Error parsing variable names in xquery when expression ends with variable reference
> -----------------------------------------------------------------------------------
>
> Key: ODE-646
> URL: https://issues.apache.org/jira/browse/ODE-646
> Project: ODE
> Issue Type: Bug
> Components: BPEL Compilation/Parsing
> Affects Versions: 1.3.2
> Reporter: Mark Ford
> Assignee: Karthick Sankarachary
> Priority: Minor
> Attachments: ODE-646.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ODE-646) Error parsing variable names in xquery
when expression ends with variable reference
Posted by "Karthick Sankarachary (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740709#action_12740709 ]
Karthick Sankarachary commented on ODE-646:
-------------------------------------------
The patch, which looks good to me, has been checked in...
Revision: 802169
Author: karthick
Date: 1:29:03 PM, Friday, August 07, 2009
Message:
This patch resolves ODE-646 as well as ODE-542. Thanks to Mark Ford!
----
Modified : /ode/branches/APACHE_ODE_1.X/bpel-compiler/src/main/java/org/apache/ode/bpel/elang/xquery10/compiler/XQuery10ExpressionCompilerImpl.java
Added : /ode/branches/APACHE_ODE_1.X/bpel-compiler/src/test/java/org/apache/ode/bpel/elang/xquery10
Added : /ode/branches/APACHE_ODE_1.X/bpel-compiler/src/test/java/org/apache/ode/bpel/elang/xquery10/compiler
Added : /ode/branches/APACHE_ODE_1.X/bpel-compiler/src/test/java/org/apache/ode/bpel/elang/xquery10/compiler/XQuery10ExpressionCompilerImplTest.java
> Error parsing variable names in xquery when expression ends with variable reference
> -----------------------------------------------------------------------------------
>
> Key: ODE-646
> URL: https://issues.apache.org/jira/browse/ODE-646
> Project: ODE
> Issue Type: Bug
> Components: BPEL Compilation/Parsing
> Affects Versions: 1.3.2
> Reporter: Mark Ford
> Assignee: Karthick Sankarachary
> Priority: Minor
> Attachments: ODE-646.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.