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

multi-restriction pattern throws UnsupportedOpEx

    Details

      Description

      rule "same"
      when
      $m : ShGraphType( $x25No : x25No, $trans : trans )
      GoType( x25No == $x25No || == ($x25No % 2000), trans Unable to render embedded object: File (= $trans ) #) not found.!!#
      $e : ShType( x25No == $x25No )
      $v : View( elemSet contains $m )
      then

      Field x25No is an int.

      The marked pattern is not flagged in Eclipse, passes the compiler without an error, but crashes at runtime during fact insertion with:

      Exception in thread "main" java.lang.UnsupportedOperationException: does not support method call isAllowed(Object object, InternalWorkingMemory workingMemoiry)
      at org.drools.rule.ReturnValueRestriction.isAllowedCachedRight(ReturnValueRestriction.java:252)
      at org.drools.rule.OrCompositeRestriction.isAllowedCachedRight(OrCompositeRestriction.java:51)
      at org.drools.rule.MultiRestrictionFieldConstraint.isAllowedCachedRight(MultiRestrictionFieldConstraint.java:115)
      at org.drools.common.DoubleBetaConstraints.isAllowedCachedRight(DoubleBetaConstraints.java:181)
      at org.drools.reteoo.JoinNode.assertObject(JoinNode.java:172)
      at org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:360)
      at org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:344)
      at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:184)
      at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:146)
      at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1094)
      at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1045)
      at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:830)
      at org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:219)
      at rss.checker.engine.impl.DroolsEngine.insert(DroolsEngine.java:61)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tirelli Edson Tirelli
                  Reporter:
                  laune Wolfgang Laun
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: