[
https://issues.apache.org/jira/browse/ODE-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12856047#action_12856047
]
David Carver commented on ODE-648:
----------------------------------
Correct...what I'm saying is that based on the namespace being used, the bpel
file. (i.e. bpel 1.1 or bpel 2.0), select the appropriate XSD grammar to
validate the BPEL against before parsing or compilation. If it validates
correctly, continue with parsing, if it doesn't then we can toss some
meaningful information back to the developer to catch when they have used a
BPEL 1.1 attribute that is no longer supported in a BPEL 2.0 grammar.
This would also potentionally head of other copy/paste type issues that could
occur as well. So there are a couple of different ways to provide a bit more
meaning back to the developer but also make sure we are dealing with a valid
file for the expected version of BPEL to begin with.
> Compiler should throw a meaningful error if <from>/<to> expression is empty
> ---------------------------------------------------------------------------
>
> Key: ODE-648
> URL: https://issues.apache.org/jira/browse/ODE-648
> Project: ODE
> Issue Type: Bug
> Components: BPEL Compilation/Parsing
> Affects Versions: 1.2, 1.3.2, 1.3.3, 2.0
> Reporter: Tammo van Lessen
> Assignee: Tammo van Lessen
> Fix For: 1.3.5
>
>
> If the expression is empty, the only error message is from the expression
> compiler and is quite confusing:
> java.lang.IllegalStateException: XPath string and xpath node are both null
> at
> org.apache.ode.bpel.elang.xpath20.compiler.XPath20ExpressionCompilerImpl.doJaxpCompile.
> Fixing this issue will also help if a copy and paste engineer added a BPEL
> 1.1 <from expression="someexp"/> to a BPEL 2.0 process ;)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira