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

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

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Patch
    • Resolution: Cannot Reproduce
    • Blocker
    • None
    • 5.1.0.M1
    • 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)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty