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

NullPointerException at JavaConsequenceBuilder.java:54 on RHS for simplest of consequences

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 4.0.3
    • Fix Version/s: 4.0.4, 5.0.0.M1
    • Component/s: drools-compiler
    • Labels:
      None
    • Environment:

      Java 1.5.0_10, Eclipse 3.3.1.1, Windows XP

      Description

      I get the following exception with the below rule.

      java.lang.NullPointerException
      at org.drools.rule.builder.dialect.java.JavaConsequenceBuilder.build(JavaConsequenceBuilder.java:54)
      at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:67)
      at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:446)
      at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:304)
      at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167)

      package tiwnetrec

      import java.util.List
      import com.bac.meridian.model.Net

      global java.util.List nim
      global java.util.List niw
      global java.util.List unrecd
      global java.util.List recd

      rule Reconciled
      salience 10

      when
      me : Net(isPaired == false)
      another : Net(isPaired == false,
      tradeReferenceIdentifier == me.tradeReferenceIdentifier,
      amount == me.amount)
      then
      System.out.println(1);
      end

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tirelli Edson Tirelli
                Reporter:
                mnadel Michael Nadel
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: