So I keep getting the exceptions below. I have surrounded the fireAllRules
with a try catch throwable block to try and debug this but I never seem to
be able to catch it. This only happens in the first couple 100 invocations
of the fireAllRules then never happens again(sometimes it never happens at
all). Is there a way to handle this exception or prevent it from happening?
I am assuming that this is occurring do to an activation being evaluated
after the OrderSideContext is retracted from working memory. Anyone else run
into a similar issue?
TIA
-Mike
07:48:35,377 ERROR [stderr] (Thread-118) Exception in thread "Thread-118"
java.lang.RuntimeException: unable to invoke method:
com.billing.domain.context.OrderSideContext.getPrimarySide: target of method
is null
07:48:35,377 ERROR [stderr] (Thread-118) at
org.mvel2.optimizers.impl.refl.nodes.GetterAccessor.getValue(GetterAccessor.java:66)
07:48:35,377 ERROR [stderr] (Thread-118) at
org.mvel2.optimizers.impl.refl.nodes.VariableAccessor.getValue(VariableAccessor.java:37)
07:48:35,378 ERROR [stderr] (Thread-118) at
org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:108)
07:48:35,378 ERROR [stderr] (Thread-118) at
org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:107)
07:48:35,378 ERROR [stderr] (Thread-118) at
org.mvel2.ast.Or.getReducedValueAccelerated(Or.java:34)
07:48:35,378 ERROR [stderr] (Thread-118) at
org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:38)
07:48:35,378 ERROR [stderr] (Thread-118) at
org.mvel2.ast.Substatement.getReducedValueAccelerated(Substatement.java:44)
07:48:35,378 ERROR [stderr] (Thread-118) at
org.mvel2.ast.And.getReducedValueAccelerated(And.java:34)
07:48:35,378 ERROR [stderr] (Thread-118) at
org.mvel2.MVELRuntime.execute(MVELRuntime.java:85)
07:48:35,379 ERROR [stderr] (Thread-118) at
org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:123)
07:48:35,379 ERROR [stderr] (Thread-118) at
org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:116)
07:48:35,379 ERROR [stderr] (Thread-118) at
org.mvel2.MVEL.executeExpression(MVEL.java:930)
07:48:35,379 ERROR [stderr] (Thread-118) at
org.drools.rule.constraint.MvelConditionEvaluator.evaluate(MvelConditionEvaluator.java:70)
07:48:35,379 ERROR [stderr] (Thread-118) at
org.drools.rule.constraint.MvelConditionEvaluator.ensureBranchEvaluation(MvelConditionEvaluator.java:113)
07:48:35,379 ERROR [stderr] (Thread-118) at
org.drools.rule.constraint.MvelConditionEvaluator.ensureCompleteEvaluation(MvelConditionEvaluator.java:106)
07:48:35,380 ERROR [stderr] (Thread-118) at
org.drools.rule.constraint.MvelConditionEvaluator.ensureCompleteEvaluation(MvelConditionEvaluator.java:90)
07:48:35,380 ERROR [stderr] (Thread-118) at
org.drools.rule.constraint.MvelConditionEvaluator.getAnalyzedCondition(MvelConditionEvaluator.java:82)
07:48:35,380 ERROR [stderr] (Thread-118) at
org.drools.rule.constraint.MvelConstraint.executeJitting(MvelConstraint.java:214)
07:48:35,380 ERROR [stderr] (Thread-118) at
org.drools.rule.constraint.MvelConstraint.access$000(MvelConstraint.java:41)
07:48:35,380 ERROR [stderr] (Thread-118) at
org.drools.rule.constraint.MvelConstraint$1.run(MvelConstraint.java:201)
07:48:35,381 ERROR [stderr] (Thread-118) at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
07:48:35,381 ERROR [stderr] (Thread-118) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
07:48:35,381 ERROR [stderr] (Thread-118) at
java.lang.Thread.run(Thread.java:662)
07:48:35,381 ERROR [stderr] (Thread-118) Caused by:
java.lang.NullPointerException
07:48:35,381 ERROR [stderr] (Thread-118) at
sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source)
07:48:35,381 ERROR [stderr] (Thread-118) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
07:48:35,382 ERROR [stderr] (Thread-118) at
java.lang.reflect.Method.invoke(Method.java:597)
07:48:35,382 ERROR [stderr] (Thread-118) at
org.mvel2.optimizers.impl.refl.nodes.GetterAccessor.getValue(GetterAccessor.java:40)
07:48:35,382 ERROR [stderr] (Thread-118) ... 22 more
07:48:35,856 ERROR [stderr] (Thread-132) Exception in thread "Thread-132"
java.lang.RuntimeException: unable to invoke method:
com.billing.domain.context.OrderSideContext.getPrimarySide: target of method
is null
07:48:35,856 ERROR [stderr] (Thread-132) at
org.mvel2.optimizers.impl.refl.nodes.GetterAccessor.getValue(GetterAccessor.java:66)
07:48:35,857 ERROR [stderr] (Thread-132) at
org.mvel2.optimizers.impl.refl.nodes.VariableAccessor.getValue(VariableAccessor.java:37)
07:48:35,857 ERROR [stderr] (Thread-132) at
org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:108)
07:48:35,857 ERROR [stderr] (Thread-132) at
org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:107)
07:48:35,857 ERROR [stderr] (Thread-132) at
org.mvel2.ast.And.getReducedValueAccelerated(And.java:34)
07:48:35,857 ERROR [stderr] (Thread-132) at
org.mvel2.MVELRuntime.execute(MVELRuntime.java:85)
07:48:35,857 ERROR [stderr] (Thread-132) at
org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:123)
07:48:35,858 ERROR [stderr] (Thread-132) at
org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:116)
07:48:35,858 ERROR [stderr] (Thread-132) at
org.mvel2.MVEL.executeExpression(MVEL.java:930)
07:48:35,858 ERROR [stderr] (Thread-132) at
org.drools.rule.constraint.MvelConditionEvaluator.evaluate(MvelConditionEvaluator.java:70)
07:48:35,858 ERROR [stderr] (Thread-132) at
org.drools.rule.constraint.MvelConditionEvaluator.ensureBranchEvaluation(MvelConditionEvaluator.java:113)
07:48:35,858 ERROR [stderr] (Thread-132) at
org.drools.rule.constraint.MvelConditionEvaluator.ensureCompleteEvaluation(MvelConditionEvaluator.java:106)
07:48:35,859 ERROR [stderr] (Thread-132) at
org.drools.rule.constraint.MvelConditionEvaluator.ensureCompleteEvaluation(MvelConditionEvaluator.java:90)
07:48:35,859 ERROR [stderr] (Thread-132) at
org.drools.rule.constraint.MvelConditionEvaluator.getAnalyzedCondition(MvelConditionEvaluator.java:82)
07:48:35,859 ERROR [stderr] (Thread-132) at
org.drools.rule.constraint.MvelConstraint.executeJitting(MvelConstraint.java:214)
07:48:35,859 ERROR [stderr] (Thread-132) at
org.drools.rule.constraint.MvelConstraint.access$000(MvelConstraint.java:41)
07:48:35,859 ERROR [stderr] (Thread-132) at
org.drools.rule.constraint.MvelConstraint$1.run(MvelConstraint.java:201)
07:48:35,859 ERROR [stderr] (Thread-132) at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
07:48:35,860 ERROR [stderr] (Thread-132) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
07:48:35,860 ERROR [stderr] (Thread-132) at
java.lang.Thread.run(Thread.java:662)
07:48:35,860 ERROR [stderr] (Thread-132) Caused by:
java.lang.NullPointerException
07:48:35,860 ERROR [stderr] (Thread-132) at
sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source)
07:48:35,860 ERROR [stderr] (Thread-132) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
07:48:35,860 ERROR [stderr] (Thread-132) at
java.lang.reflect.Method.invoke(Method.java:597)
07:48:35,861 ERROR [stderr] (Thread-132) at
org.mvel2.optimizers.impl.refl.nodes.GetterAccessor.getValue(GetterAccessor.java:40)
07:48:35,861 ERROR [stderr] (Thread-132) ... 19 more
07:48:36,914 ERROR [stderr] (Thread-96) Exception in thread "Thread-96"
[Error: null pointer or function not found: cSide]
07:48:36,914 ERROR [stderr] (Thread-96) [Near : {... == "A" ||
liquidityIndicator != "R" && matchId < $tsc.cSide.matchId ....}]
07:48:36,914 ERROR [stderr] (Thread-96)
^
07:48:36,915 ERROR [stderr] (Thread-96) [Line: 1, Column: 69]
07:48:36,915 ERROR [stderr] (Thread-96) at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:1022)
07:48:36,915 ERROR [stderr] (Thread-96) at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:987)
07:48:36,915 ERROR [stderr] (Thread-96) at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getBeanProperty(ReflectiveAccessorOptimizer.java:677)
07:48:36,915 ERROR [stderr] (Thread-96) at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getBeanPropertyAO(ReflectiveAccessorOptimizer.java:472)
07:48:36,916 ERROR [stderr] (Thread-96) at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:374)
07:48:36,916 ERROR [stderr] (Thread-96) at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:143)
07:48:36,916 ERROR [stderr] (Thread-96) at
org.mvel2.ast.ASTNode.optimize(ASTNode.java:159)
07:48:36,916 ERROR [stderr] (Thread-96) at
org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:115)
07:48:36,916 ERROR [stderr] (Thread-96) at
org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:107)
07:48:36,916 ERROR [stderr] (Thread-96) at
org.mvel2.ast.And.getReducedValueAccelerated(And.java:34)
07:48:36,917 ERROR [stderr] (Thread-96) at
org.mvel2.MVELRuntime.execute(MVELRuntime.java:85)
07:48:36,917 ERROR [stderr] (Thread-96) at
org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:123)
07:48:36,917 ERROR [stderr] (Thread-96) at
org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:116)
07:48:36,917 ERROR [stderr] (Thread-96) at
org.mvel2.MVEL.executeExpression(MVEL.java:930)
07:48:36,917 ERROR [stderr] (Thread-96) at
org.drools.rule.constraint.MvelConditionEvaluator.evaluate(MvelConditionEvaluator.java:70)
07:48:36,917 ERROR [stderr] (Thread-96) at
org.drools.rule.constraint.MvelConditionEvaluator.ensureBranchEvaluation(MvelConditionEvaluator.java:113)
07:48:36,918 ERROR [stderr] (Thread-96) at
org.drools.rule.constraint.MvelConditionEvaluator.ensureCompleteEvaluation(MvelConditionEvaluator.java:106)
07:48:36,918 ERROR [stderr] (Thread-96) at
org.drools.rule.constraint.MvelConditionEvaluator.ensureCompleteEvaluation(MvelConditionEvaluator.java:90)
07:48:36,918 ERROR [stderr] (Thread-96) at
org.drools.rule.constraint.MvelConditionEvaluator.getAnalyzedCondition(MvelConditionEvaluator.java:82)
07:48:36,918 ERROR [stderr] (Thread-96) at
org.drools.rule.constraint.MvelConstraint.executeJitting(MvelConstraint.java:214)
07:48:36,918 ERROR [stderr] (Thread-96) at
org.drools.rule.constraint.MvelConstraint.access$000(MvelConstraint.java:41)
07:48:36,919 ERROR [stderr] (Thread-96) at
org.drools.rule.constraint.MvelConstraint$1.run(MvelConstraint.java:201)
07:48:36,919 ERROR [stderr] (Thread-96) at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
07:48:36,919 ERROR [stderr] (Thread-96) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
07:48:36,919 ERROR [stderr] (Thread-96) at
java.lang.Thread.run(Thread.java:662)
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-5-4-Can-t-catch-Exception-tp4018...
Sent from the Drools: User forum mailing list archive at
Nabble.com.