Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-255

NPE on a rule execution in BxMS 6.3.4+

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.GA
    • 6.x.x
    • BRE
    • DR2
    • Hide

      You can import the bpmn2 file to the business central and then the drl file.

      After that, you will need to build, compile and execute the process.

      Show
      You can import the bpmn2 file to the business central and then the drl file. After that, you will need to build, compile and execute the process.

      It works in 6.3.3 or earlier version. For 6.3.4+ it does not work anymore.

      In attach, there are 2 files:

      1 drl rule file
      1 bpmn2 process file

      If you set the global itsNull to true, then it works in 6.3.4+
      kcontext.getKieRuntime().setGlobal("itsNull", true);

      Part of stacktrace error message for 6.3.4+ or letting the global boolean to null:
      Caused by: java.lang.NullPointerException
      at com.sasktel.osf.testjpbm.Rule_rule_two2072371598.eval0(Rule_rule_two2072371598.java:8)
      at com.sasktel.osf.testjpbm.Rule_rule_two2072371598Eval0InvokerGenerated.evaluate(Unknown Source)
      at com.sasktel.osf.testjpbm.Rule_rule_two2072371598Eval0Invoker.evaluate(Unknown Source)
      at org.drools.core.rule.EvalCondition.isAllowed(EvalCondition.java:118) [drools-core-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]

      The result of 6.3.3 or setting the global boolean to true:
      11:43:43,251 INFO [stdout] (http-127.0.0.1:8080-4) rule one:the string

        1. npe_rules.drl
          0.3 kB
          Marcus Carvalho
        2. TestProcess.bpmn2
          9 kB
          Marcus Carvalho

              mfusco@redhat.com Mario Fusco
              rhn-support-mcarvalh Marcus Carvalho (Inactive)
              Tibor Zimányi Tibor Zimányi
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: