Keith,
You will need to reproduce this bug in a self contained example that
runs out of the box and add it to a jira - there is nothing we can
determine from a stack trace like this.
Mark
Keith Marshall wrote:
I am running some Junit tests on a set of rules that has provided no
problems in the past. Today all of a sudden All of my Junit tests are
failing, where they were all passing before.
The only indication I am getting of a problem is the
org.drools.spi.ConditionException: java.lang.NullPointerException in my
Junit tester.
any ideas?
org.drools.spi.ConditionException: java.lang.NullPointerException
at
org.drools.semantics.java.JavaCondition.isAllowed(JavaCondition.java:166
)
at
org.drools.reteoo.ConditionNode.assertTuple(ConditionNode.java:154)
at
org.drools.reteoo.TupleSource.propagateAssertTuple(TupleSource.java:118)
at
org.drools.reteoo.ParameterNode.assertObject(ParameterNode.java:126)
at
org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:173)
at org.drools.reteoo.Rete.assertObject(Rete.java:111)
at
org.drools.reteoo.RuleBaseImpl.assertObject(RuleBaseImpl.java:187)
at
org.drools.reteoo.WorkingMemoryImpl.assertObject(WorkingMemoryImpl.java:
370)
at
org.drools.reteoo.WorkingMemoryImpl.assertObject(WorkingMemoryImpl.java:
345)
at
com.insight.rules.test.RulesTester.testOrderEmailVerbiageMarriot(RulesTe
ster.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:478)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun
ner.java:344)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu
nner.java:196)
Caused by: java.lang.NullPointerException
at Condition_13.invoke(ANONYMOUS.java:2)
at
org.drools.semantics.java.JavaCondition.isAllowed(JavaCondition.java:146
)
... 24 more
Keith A. Marshall, B.Sc. | Java Contractor, eCommerce | Ext: 1089