[ 
https://issues.apache.org/jira/browse/ODE-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12854778#action_12854778
 ] 

David Carver commented on ODE-648:
----------------------------------

Actually it looks like this has already been changed, and the only place that 
needs more information is the jaxencompile message.

doJaxpCompile already uses:

 throw new CompilationException(__msgs.errEmptyExpression(source.getURI(), new 
QName(source.getElement().getNamespaceURI(), 
source.getElement().getNodeName())));

Just need to add the same information to the jaxencompile method as well.   I 
can provide a patch for this if it is still needed.




> 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.
-
You can reply to this email to add a comment to the issue online.

Reply via email to