[jboss-jira] [JBoss JIRA] Created: (JBRULES-2300) SingleSessionCommandService revisited: facyHandle is null while insert it in a stateful session

Francesco Chiarelli (JIRA) jira-events at lists.jboss.org
Wed Oct 14 09:31:05 EDT 2009


SingleSessionCommandService revisited: facyHandle is null while insert it in a stateful session
-----------------------------------------------------------------------------------------------

                 Key: JBRULES-2300
                 URL: https://jira.jboss.org/jira/browse/JBRULES-2300
             Project: Drools
          Issue Type: Patch
      Security Level: Public (Everyone can see)
          Components: All
    Affects Versions: 5.1.0.M1
         Environment: jre 1.5 - jboss 5.0.1.GA - Eclipse with jbossTools
            Reporter: Francesco Chiarelli
            Assignee: Mark Proctor
            Priority: Blocker


I had need to implement a new SingleSessionCommandService (logical mirror of the original unless registerRollbackSync (), which is no longer invoked and JoinTransaction).
The primary thread creates statefulKnowledgeSession via JPA (JTA). The secondary thread load the session, insert facts, fire rules, startProcess, and dispose.
In @PreUpdate on SessionInfo, when you create the same snapshot is retrieved correctly, during the insertion of a fact, I get a NPE on org.drools.reteoo.ReteooWorkingMemory at 245: factHandle is null. In debugging I verified that the method throws the exception FromNode.evaluateAndPropagate captured by the command.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list