[jboss-jira] [JBoss JIRA] Closed: (JBRULES-2101) Intermittant NullPointerException when invoking StatefulSession.asyncUpdate() while maintainTms==true

Mark Proctor (JIRA) jira-events at lists.jboss.org
Tue May 17 20:45:01 EDT 2011


     [ https://issues.jboss.org/browse/JBRULES-2101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Proctor closed JBRULES-2101.
---------------------------------



> Intermittant NullPointerException when invoking StatefulSession.asyncUpdate() while maintainTms==true
> -----------------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-2101
>                 URL: https://issues.jboss.org/browse/JBRULES-2101
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-core
>    Affects Versions: 5.0.1.FINAL
>         Environment: Ubuntu Jaunty Jackelope
> Linux version 2.6.27-11-generic (buildd at yellow) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) ) #1 SMP Wed Apr 1 20:53:41 UTC 2009
> Multicore 
>            Reporter: Greg Barton
>            Assignee: Mark Proctor
>
> After calling StatefulSession.asyncUpdate() the following exception occurs, but only when maintainTms==true in the rule configuration:
> Exception in thread "Thread-5" java.lang.NullPointerException                                                                                       
>         at org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1387)                                                          
>         at org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1350)                                                          
>         at org.drools.concurrent.UpdateObject.execute(UpdateObject.java:46)                                                                         
>         at org.drools.concurrent.CommandExecutor.run(CommandExecutor.java:78)                                                                       
>         at java.lang.Thread.run(Thread.java:619) 
> AbstractWorkingMemory.java line 1387 is wrapped in an if statement with condition "this.maintainTms" so setting maintainTms=false avoids the exception entirely.  The NPE producing line is this:
> status = ((InternalFactHandle) factHandle).getEqualityKey().getStatus();
> While encountering this problem the factHandle passed in to StatefulSession.asyncUpdate() was always non-null, so my guess is that the getEqualityKey() call returned null.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list