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

Adding ProcessEventListener throws NPE

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.4.0.CR1
    • None
    • None
    • None

      Description of problem:
      When you try to add a ProcessEventListener to StatefulKnowledgeSession and you
      are missing jBPM libraries on classpath, you get a NullPointerException.

      Version-Release number of selected component (if applicable):
      BRMS-5.3.0.dev5
      Drools-5.3.0.Final

      How reproducible:
      Using attached reproducer.

      Steps to Reproduce:
      1. Make sure you don't have any jBPM libs on classpath
      2. Create stateful session
      3. Add ProcesEventListener (e.g. DebugProcessEventListener)

      Actual results:
      java.lang.NullPointerException
      at
      org.drools.impl.StatefulKnowledgeSessionImpl.addEventListener(StatefulKnowledgeSessionImpl.java:199)
      at org.sample.TryProcessListener.main(TryProcessListener.java:20)

      Expected results:
      Either meaningful exception (like NojBPMException) or correct addition of
      listener

      Additional info:
      It only affects StatefulKnowledgeSession, the StatefulKnowledgeSession runs
      just fine.

            mfusco@redhat.com Mario Fusco
            mfusco@redhat.com Mario Fusco
            Archiver:
            rhn-support-ceverson Clark Everson

              Created:
              Updated:
              Resolved:
              Archived: