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

UnknownDescriptionException: Descr ( class org.drools.lang.descr.MVELExprDescr ) is unknown to drools verifier.

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.4.0.Final
    • Fix Version/s: None
    • Component/s: drools-verifier
    • Labels:
      None

      Description

      When the verifier encounters a rule such as:

      rule "Contrived Example"
      when
      $pitem : PresentedItem(sequenceNumber > 0)
      $receipt : Receipt(items contains $pitem.id)
      $item : ReceiptItem(plan == foo.Plan.NULL_PLAN) from $receipt.items
      then
      log.info("Contrived Example ran");
      end

      It prints this exception to standard error and swallows the exception (as seen in VerifierImpl.java line 93):

      org.drools.verifier.visitor.UnknownDescriptionException: Descr ( class org.drools.lang.descr.MVELExprDescr ) is unknown to drools verifier.
      at org.drools.verifier.visitor.DeclarativeInvokerDescrVisitor.visit(DeclarativeInvokerDescrVisitor.java:58)
      at org.drools.verifier.visitor.PatternDescrVisitor.visit(PatternDescrVisitor.java:297)
      ...

      It seems to be choking on the token $receipt.items in the rule. Not sure if this is a bug or an accidental bit of debug code using stack traces that snuck into a release. I'd like to know which, at least. Thank you.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mark.proctor Mark Proctor
                Reporter:
                nick.bauman nick bauman
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: