Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-2300

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

    XMLWordPrintable

Details

    • Patch
    • Status: Resolved (View Workflow)
    • Blocker
    • Resolution: Cannot Reproduce
    • 5.1.0.M1
    • None
    • All

    Description

      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.

      Attachments

        Activity

          People

            kverlaen@redhat.com Kris Verlaenen
            ck.frank Francesco Chiarelli (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: