I am trying to debug drool - rules in eclipse. I am using the red hat plugin. After my debug session started, when I press any button stepin/step out/resume, I am getting below exception. please help

Exception in thread "main" java.lang.RuntimeException: Error evaluating constraint '!isExpired()' in [Rule "Valid passport" in C:\Users\91820\eclipse-workspace\drools-training\target\classes\io\github\aasaru\drools\section03\step1\PassportValidation.drl] at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:274) at org.drools.core.rule.constraint.MvelConstraint.isAllowed(MvelConstraint.java:222) at org.drools.core.reteoo.AlphaNode.assertObject(AlphaNode.java:139) at org.drools.core.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:498) at org.drools.core.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:396) at org.drools.core.reteoo.ObjectTypeNode.propagateAssert(ObjectTypeNode.java:323) at org.drools.core.phreak.PropagationEntry$Insert.propagate(PropagationEntry.java:161) at org.drools.core.phreak.PropagationEntry$Insert.execute(PropagationEntry.java:166) at org.drools.core.phreak.SynchronizedPropagationList.flush(SynchronizedPropagationList.java:96) at org.drools.core.phreak.SynchronizedPropagationList.flush(SynchronizedPropagationList.java:91) at org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:1051) at org.drools.core.common.DefaultAgenda.internalFireAllRules(DefaultAgenda.java:1014) at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1006) at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1337) at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1328) at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1312) at org.drools.core.impl.StatelessKnowledgeSessionImpl.execute(StatelessKnowledgeSessionImpl.java:275) at io.github.aasaru.drools.section03.StatelessPassportValidation.execute(StatelessPassportValidation.java:35) at io.github.aasaru.drools.section03.StatelessPassportValidation.main(StatelessPassportValidation.java:24) Caused by: java.lang.RuntimeException: no debugger registered to handle breakpoint at org.mvel2.debug.DebuggerContext.checkBreak(DebuggerContext.java:98) at org.mvel2.MVELRuntime.execute(MVELRuntime.java:76) at org.mvel2.compiler.CompiledExpression.getDirectValue(CompiledExpression.java:123) at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:119) at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:113) at org.mvel2.MVEL.executeExpression(MVEL.java:929) at org.kie.soup.project.datamodel.commons.util.RawMVELEvaluator.executeExpression(RawMVELEvaluator.java:103) at org.drools.core.rule.constraint.MvelConditionEvaluator.evaluate(MvelConditionEvaluator.java:113) at org.drools.core.rule.constraint.MvelConditionEvaluator.evaluate(MvelConditionEvaluator.java:89) at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:272) ... 18 more

0 Answers