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

Exception compiling rules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.4
    • Fix Version/s: 4.0.5, 5.0.0.M1
    • Component/s: None
    • Labels:
      None

      Description

      i updated the 4.0.x branch from svn.
      When compiling the rules i get the following exception:
      org.drools.rule.AbstractCompositeConstraint.addConstraint(AbstractCompositeConstraint.java:88)
      at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:328)
      at org.drools.rule.builder.PatternBuilder.buildConstraint(PatternBuilder.java:193)
      at org.drools.rule.builder.PatternBuilder.buildConstraint(PatternBuilder.java:218)
      at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:162)
      at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:87)
      at org.drools.rule.builder.GroupElementBuilder.build(GroupElementBuilder.java:69)
      at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:53)
      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)
      at pl.outbox.tools.BinaryPackageBuilder.processFile(BinaryPackageBuilder.java:191)
      at pl.outbox.tools.BinaryPackageBuilder.access$000(BinaryPackageBuilder.java:37)

      I think it's related to MultiRestrictionFieldConstraint which extends MutableTypeConstraint.
      in method getType() it returns Constraint.ConstraintType.UNKNOWN, and AbstractCompositeConstraint.addConstraint expects ALPHA or BETA type.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tirelli Edson Tirelli
                Reporter:
                jboboli Jan Boboli
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: