[jboss-jira] [JBoss JIRA] (DROOLS-1542) Root cause Exception is hidden in MVELExprAnalyzer.analyzeExpression()

Toshiya Kobayashi (JIRA) issues at jboss.org
Mon May 1 06:41:00 EDT 2017


    [ https://issues.jboss.org/browse/DROOLS-1542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400281#comment-13400281 ] 

Toshiya Kobayashi edited comment on DROOLS-1542 at 5/1/17 6:40 AM:
-------------------------------------------------------------------

Ah, RuntimeException is explicitly re-thrown. So probably only in case of Error. But I'm not 100% sure.

https://github.com/mvel/mvel/blob/mvel2-2.2.8.Final/src/main/java/org/mvel2/compiler/ExpressionCompiler.java#L297-L301

I guess logging in Drools side is preferred anyway...


was (Author: tkobayashi):
Ah, RuntimeException is explicitly re-thrown. So probably only in case of Error.

https://github.com/mvel/mvel/blob/mvel2-2.2.8.Final/src/main/java/org/mvel2/compiler/ExpressionCompiler.java#L297-L301

> Root cause Exception is hidden in MVELExprAnalyzer.analyzeExpression()
> ----------------------------------------------------------------------
>
>                 Key: DROOLS-1542
>                 URL: https://issues.jboss.org/browse/DROOLS-1542
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 7.0.0.CR2
>            Reporter: Toshiya Kobayashi
>            Assignee: Mario Fusco
>              Labels: support
>
> When an Error/-RuntimeException- is thrown in MVEL via MVELExprAnalyzer.analyzeExpression(), the root cause Error/-RuntimeException- is not propagated nor logged. For example, if it was StackOverflowError, it's hard to identify the root cause.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list