Hi All,
I'm getting some wierd exception while trying to insert a fact. I'm
trying to compare a string field in a rule, like metricclass == "PROCESSOR"
java.lang.RuntimeException: Exception jitting: metricclass == "PROCESSOR"
at
org.drools.rule.constraint.MvelConstraint.jitEvaluator(MvelConstraint.java:168)
at
org.drools.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:137)
at
org.drools.rule.constraint.MvelConstraint.isAllowed(MvelConstraint.java:99)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:141)
at
org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:458)
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:386)
at
org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:211)
at
org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:239)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:336)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:297)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:887)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:846)
at
org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:259)
at
mattelli.re.ComplianceEngine.loadProductMetricDB(ComplianceEngine.java:1644)
at
mattelli.re.ComplianceEngine.ComplianceRunService(ComplianceEngine.java:196)
at mattelli.re.ComplianceEngine.main(ComplianceEngine.java:80)
Caused by: java.lang.IllegalAccessError: tried to access field
org.drools.rule.builder.dialect.asm.ClassGenerator$MethodBody.mv from class
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitMethodInvocation(ASMConditionEvaluatorJitter.java:463)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitInvocation(ASMConditionEvaluatorJitter.java:447)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitEvaluatedExpression(ASMConditionEvaluatorJitter.java:335)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitExpression(ASMConditionEvaluatorJitter.java:324)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitObjectBinary(ASMConditionEvaluatorJitter.java:132)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitBinary(ASMConditionEvaluatorJitter.java:107)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitSingleCondition(ASMConditionEvaluatorJitter.java:66)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitCondition(ASMConditionEvaluatorJitter.java:54)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.body(ASMConditionEvaluatorJitter.java:48)
at
org.drools.rule.builder.dialect.asm.ClassGenerator$MethodDescr.write(ClassGenerator.java:478)
at
org.drools.rule.builder.dialect.asm.ClassGenerator.generateBytecode(ClassGenerator.java:50)
at
org.drools.rule.builder.dialect.asm.ClassGenerator.generateClass(ClassGenerator.java:58)
at
org.drools.rule.builder.dialect.asm.ClassGenerator.newInstance(ClassGenerator.java:64)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter.jit(ASMConditionEvaluatorJitter.java:30)
at
org.drools.rule.constraint.MvelConstraint.jitEvaluator(MvelConstraint.java:166)
... 15 more
Can someone tell me the possible causes. This happens with very few facts
making it even more confusing. Thanks in advance
--
cheers
Sumatheja Dasararaju