<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">Op 16-01-13 14:10, Michiel Vermandel
schreef:<br>
</div>
<blockquote
cite="mid:1358341813.71034.YahooMailNeo@web161306.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:tahoma,
new york, times, serif;font-size:10pt">Hi,<br>
<br>
I will.<br>
Should I file it again under <a moz-do-not-send="true"
rel="nofollow" class="yiv1608119382moz-txt-link-freetext"
target="_blank" href="https://issues.jboss.org/browse/JBRULES">https://issues.jboss.org/browse/JBRULES</a>
in component drools-planner ?<br>
</div>
</blockquote>
Component drools-core (or something more applicable even).<br>
Mario Fusco is our mvel expert.<br>
Hopefully he can understand the problem by looking at the stacktrace
and rule, otherwise you'll need to look at reproducing the issue
with a unit test (with no planner code).<br>
<blockquote
cite="mid:1358341813.71034.YahooMailNeo@web161306.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:tahoma,
new york, times, serif;font-size:10pt"><br>
Regards,<br>
<br>
Michiel<br>
<div><span><br>
</span></div>
<div> </div>
<div>-----------------<br>
<a class="moz-txt-link-freetext" href="http://www.codessentials.com">http://www.codessentials.com</a> - Your essential software, for
free!<br>
Follow us at <a class="moz-txt-link-freetext" href="http://twitter.com/#!/Codessentials">http://twitter.com/#!/Codessentials</a><br>
</div>
<div style="font-family: tahoma, new york, times, serif;
font-size: 10pt;">
<div style="font-family: times new roman, new york, times,
serif; font-size: 12pt;">
<div dir="ltr"> <font face="Arial" size="2">
<hr size="1"> <b><span style="font-weight:bold;">From:</span></b>
Geoffrey De Smet <a class="moz-txt-link-rfc2396E" href="mailto:ge0ffrey.spam@gmail.com"><ge0ffrey.spam@gmail.com></a><br>
<b><span style="font-weight: bold;">To:</span></b> Rules
Users List <a class="moz-txt-link-rfc2396E" href="mailto:rules-users@lists.jboss.org"><rules-users@lists.jboss.org></a> <br>
<b><span style="font-weight: bold;">Sent:</span></b>
Wednesday, January 16, 2013 10:51 AM<br>
<b><span style="font-weight: bold;">Subject:</span></b>
Re: [rules-users] NullPointerException at
org.mvel2.ast.IntSub.getReducedValueAccelerated<br>
</font> </div>
<br>
<div id="yiv1262365888">
<div> The DRL uses mvel under the covers.<br>
<br>
Looks like a bug in mvel, possibly in the JIT
compilation (which could explain the 1 out of 5 runs
behaviour).<br>
File an issue in our jira: include the stacktrace,
versions of drools-core and the mvel jar<br>
and - if possible - the rule to which it applies.<br>
<br>
<div class="yiv1262365888moz-cite-prefix">Op 16-01-13
09:59, Michiel Vermandel schreef:<br>
</div>
<blockquote type="cite">
<div
style="color:#000;background-color:#fff;font-family:tahoma,
new york, times, serif;font-size:10pt;">
<div>Hi,</div>
<div><br>
</div>
<div style="color:rgb(0, 0,
0);font-size:13.3333px;font-family:tahoma, new
york, times, serif;
background-color:transparent;font-style:normal;">When
starting the planning solver I sometimes get the
error as listed beneath.</div>
<div style="color:rgb(0, 0,
0);font-size:13.3333px;font-family:tahoma, new
york, times, serif;
background-color:transparent;font-style:normal;">I
think it happens about 1 out of 5 runs.</div>
<div style="color:rgb(0, 0,
0);font-size:13.3333px;font-family:tahoma, new
york, times, serif;
background-color:transparent;font-style:normal;">It
doesn't seem to have much influence on the solving
process as everything continues normally (I
think).</div>
<div style="color:rgb(0, 0,
0);font-size:13.3333px;font-family:tahoma, new
york, times, serif;
background-color:transparent;font-style:normal;">I
do not use any mvel expressions to my knowledge.</div>
<div style="color:rgb(0, 0,
0);font-size:13.3333px;font-family:tahoma, new
york, times, serif;
background-color:transparent;font-style:normal;"><br>
</div>
<div style="color:rgb(0, 0,
0);font-size:13.3333px;font-family:tahoma, new
york, times, serif;
background-color:transparent;font-style:normal;">Anyway,
it would be nice to understand why this happens
and how to get this resolved.<br>
<span></span></div>
<div style="color:rgb(0, 0,
0);font-size:13.3333px;font-family:tahoma, new
york, times, serif;
background-color:transparent;font-style:normal;"><br>
<span></span></div>
<div style="color:rgb(0, 0,
0);font-size:13.3333px;font-family:tahoma, new
york, times, serif;
background-color:transparent;font-style:normal;"><span>Exception
in thread "Thread-1"
java.lang.NullPointerException<br>
at
org.mvel2.ast.IntSub.getReducedValueAccelerated(IntSub.java:17)<br>
at
org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:38)<br>
at
org.mvel2.ast.Substatement.getReducedValueAccelerated(Substatement.java:44)<br>
at
org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:108)<br>
at
org.mvel2.ast.And.getReducedValueAccelerated(And.java:34)<br>
at
org.mvel2.MVELRuntime.execute(MVELRuntime.java:85)<br>
at
org.mvel2.compiler.CompiledExpression.getDirectValue(CompiledExpression.java:123)<br>
at
org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:119)<br>
at
org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:113)<br>
at
org.mvel2.MVEL.executeExpression(MVEL.java:930)<br>
at
org.drools.rule.constraint.MvelConditionEvaluator.evaluate(MvelConditionEvaluator.java:70)<br>
at
org.drools.rule.constraint.MvelConditionEvaluator.ensureBranchEvaluation(MvelConditionEvaluator.java:117)<br>
at
org.drools.rule.constraint.MvelConditionEvaluator.ensureCompleteEvaluation(MvelConditionEvaluator.java:102)<br>
at
org.drools.rule.constraint.MvelConditionEvaluator.ensureCompleteEvaluation(MvelConditionEvaluator.java:90)<br>
at
org.drools.rule.constraint.MvelConditionEvaluator.getAnalyzedCondition(MvelConditionEvaluator.java:82)<br>
at
org.drools.rule.constraint.MvelConstraint.executeJitting(MvelConstraint.java:270)<br>
at
org.drools.rule.constraint.MvelConstraint.access$200(MvelConstraint.java:51)<br>
at
org.drools.rule.constraint.MvelConstraint$ConditionJitter.run(MvelConstraint.java:250)<br>
at
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)<br>
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)<br>
at java.lang.Thread.run(Unknown Source)</span></div>
<div> <br>
Thanks,<br>
<br>
Michiel<br>
</div>
<div>-----------------<br>
<a class="moz-txt-link-freetext" href="http://www.codessentials.com">http://www.codessentials.com</a> - Your essential
software, for free!<br>
Follow us at <a class="moz-txt-link-freetext" href="http://twitter.com/#!/Codessentials">http://twitter.com/#!/Codessentials</a></div>
</div>
<br>
<fieldset class="yiv1262365888mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" rel="nofollow" class="yiv1262365888moz-txt-link-abbreviated" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" rel="nofollow" class="yiv1262365888moz-txt-link-freetext" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</div>
</div>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a moz-do-not-send="true"
ymailto="mailto:rules-users@lists.jboss.org"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>