<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
For Drools 5.0 I moved away from async methods on the main interfaces,
as it just got messy repeating ever method with an async version.
Instead I plan to add a single async equivalent of the
CommandExecutor.execute() method, and all async operations can be done
that way. Much cleaner.<br>
<br>
Mark<br>
Edson Tirelli wrote:
<blockquote
 cite="mid:e6dd5ba30905270523t224ec092r2165a786ecacab42@mail.gmail.com"
 type="cite"><br>
&nbsp;&nbsp; Hey Greg, please do open the JIRA.<br>
  <br>
&nbsp;&nbsp; Thanks<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Edson<br>
  <br>
  <div class="gmail_quote">2009/5/27 Greg Barton <span dir="ltr">&lt;<a
 moz-do-not-send="true" href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a>&gt;</span><br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
At seemingly random times I'm getting this exception:<br>
    <br>
Exception in thread "Thread-5" java.lang.NullPointerException<br>
&nbsp; &nbsp; &nbsp; &nbsp;at
org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1387)<br>
&nbsp; &nbsp; &nbsp; &nbsp;at
org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1350)<br>
&nbsp; &nbsp; &nbsp; &nbsp;at
org.drools.concurrent.UpdateObject.execute(UpdateObject.java:46)<br>
&nbsp; &nbsp; &nbsp; &nbsp;at
org.drools.concurrent.CommandExecutor.run(CommandExecutor.java:78)<br>
&nbsp; &nbsp; &nbsp; &nbsp;at java.lang.Thread.run(Thread.java:619)<br>
    <br>
I've only gotten the exception when using StatefulSession.asyncUpdate()
from a separate thread.<br>
    <br>
AbstractWorkingMemory.java:1387 is wrapped in an if statement that
checks whether maintainTms==true, so setting that to false has
apparently avoided the problem. (Can't be 100% sure, but it has been
runnign for a few hours without exception.) The FactHandles I'm passing
in to StatefulSession.asyncUpdate() are never null, so I can only guess
that InternalFactHandle.getEqualityKey() is sometimes returning false.<br>
    <br>
Do you want a JIRA on this? &nbsp;I can't recreate it reliably.<br>
    <br>
    <br>
    <br>
    <br>
_______________________________________________<br>
rules-dev mailing list<br>
    <a moz-do-not-send="true" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
    <a moz-do-not-send="true"
 href="https://lists.jboss.org/mailman/listinfo/rules-dev"
 target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
&nbsp;Edson Tirelli<br>
&nbsp;JBoss Drools Core Development<br>
&nbsp;JBoss, a division of Red Hat @ <a moz-do-not-send="true"
 href="http://www.jboss.com">www.jboss.com</a><br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
  </pre>
</blockquote>
<br>
</body>
</html>