Yes, there was a problem that is fixed in trunk. You can checkout and
build trunk or wait for MR3 that will include the fix.
[]s
Edson
2007/5/24, webbo <steve.webster(a)gen-i.com.au>:
Is any one having aproblem getting this to run - I get -
java.lang.NullPointerException
at org.drools.reteoo.ReteTuple.get(ReteTuple.java:71)
at
org.drools.common.InstanceNotEqualsConstraint$InstanceNotEqualsConstraintContextEntry.updateFromTuple
(InstanceNotEqualsConstraint.java:112)
at
org.drools.common.TripleBetaConstraints.updateFromTuple(
TripleBetaConstraints.java:146)
at org.drools.reteoo.NotNode.assertTuple(NotNode.java:108)
at
org.drools.reteoo.SingleTupleSinkAdapter.propagateAssertTuple(
SingleTupleSinkAdapter.java:29)
at org.drools.reteoo.NotNode.assertTuple(NotNode.java:121)
at
org.drools.reteoo.SingleTupleSinkAdapter.propagateAssertTuple(
SingleTupleSinkAdapter.java:29)
at org.drools.reteoo.NotNode.assertTuple(NotNode.java:121)
at
org.drools.reteoo.CompositeTupleSinkAdapter.createAndPropagateAssertTuple(
CompositeTupleSinkAdapter.java:73)
at
org.drools.reteoo.LeftInputAdapterNode.assertObject(
LeftInputAdapterNode.java:144)
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(
CompositeObjectSinkAdapter.java:317)
at org.drools.reteoo.ObjectTypeNode.assertObject(
ObjectTypeNode.java:183)
at org.drools.reteoo.Rete.assertObject(Rete.java:121)
at org.drools.reteoo.ReteooRuleBase.assertObject(
ReteooRuleBase.java:201)
at
org.drools.reteoo.ReteooWorkingMemory.doAssertObject(
ReteooWorkingMemory.java:70)
at
org.drools.common.AbstractWorkingMemory.assertObject(
AbstractWorkingMemory.java:724)
at
org.drools.base.DefaultKnowledgeHelper.assertObject(
DefaultKnowledgeHelper.java:72)
at
org.drools.base.DefaultKnowledgeHelper.assertObject(
DefaultKnowledgeHelper.java:66)
at
test.Rule_Rule_1__If_a_field_has_the_value_0__it_is_empty__remove_it_and_insert_the_PossibleValues_0.consequence
(Rule_Rule_1__If_a_field_has_the_value_0__it_is_empty__remove_it_and_insert_the_PossibleValues_0.java:8)
at
test.Rule_Rule_1__If_a_field_has_the_value_0__it_is_empty__remove_it_and_insert_the_PossibleValues_0ConsequenceInvoker.evaluate
(Rule_Rule_1__If_a_field_has_the_value_0__it_is_empty__remove_it_and_insert_the_PossibleValues_0ConsequenceInvoker.java:22)
at org.drools.common.DefaultAgenda.fireActivation(
DefaultAgenda.java:497)
at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java
:461)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(
AbstractWorkingMemory.java:373)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(
AbstractWorkingMemory.java:354)
at test.SudokuExample.testWithInput(SudokuExample.java:52)
at test.SudokuExample.main(SudokuExample.java:91)
I'm working through the code - but anyone else found this?
--
View this message in context:
http://www.nabble.com/Sudoku-example-on-4.0-MR2-tf3813556.html#a10795330
Sent from the drools - dev mailing list archive at
Nabble.com.
_______________________________________________
rules-dev mailing list
rules-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
--
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @
www.jboss.com