[jboss-jira] [JBoss JIRA] Updated: (JBRULES-909) java.lang.ClassCastException: org.drools.rule.AbstractCompositeConstraint$MultiFieldOrConstraintContextEntry
Dirk Bergstrom (JIRA)
jira-events at lists.jboss.org
Thu Jun 21 20:47:52 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-909?page=all ]
Dirk Bergstrom updated JBRULES-909:
-----------------------------------
Attachment: testcase.tar.gz
I spoke too soon. The bug is still present.
While trying to make a testcase for JBRULES-904, I ended up with a testcase for this bug. This is still using revision 12759.
> java.lang.ClassCastException: org.drools.rule.AbstractCompositeConstraint$MultiFieldOrConstraintContextEntry
> ------------------------------------------------------------------------------------------------------------
>
> Key: JBRULES-909
> URL: http://jira.jboss.com/jira/browse/JBRULES-909
> Project: JBoss Rules
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Reteoo
> Affects Versions: 4.0.0.MR3
> Reporter: Dirk Bergstrom
> Assigned To: Edson Tirelli
> Attachments: testcase.tar.gz
>
>
> When asserting User objects into the a WM that has already had rules fired, I get this exception:
> java.lang.ClassCastException: org.drools.rule.AbstractCompositeConstraint$MultiFieldOrConstraintContextEntry
> at org.drools.rule.VariableRestriction.isAllowedCachedLeft(VariableRestriction.java:72)
> at org.drools.rule.VariableConstraint.isAllowedCachedLeft(VariableConstraint.java:72)
> at org.drools.rule.OrConstraint.isAllowedCachedLeft(OrConstraint.java:64)
> at org.drools.common.DoubleBetaConstraints.isAllowedCachedLeft(DoubleBetaConstraints.java:140)
> at org.drools.reteoo.CollectNode.assertTuple(CollectNode.java:137)
> at org.drools.reteoo.CompositeTupleSinkAdapter.propagateAssertTuple(CompositeTupleSinkAdapter.java:30)
> at org.drools.reteoo.JoinNode.assertObject(JoinNode.java:155)
> 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:766)
> at org.drools.common.AbstractWorkingMemory.assertObject(AbstractWorkingMemory.java:578)
> at net.juniper.dash.data.DataSource.reconcileAssertedRecords(DataSource.java:265)
> at net.juniper.dash.data.UserSource.populateRecords(UserSource.java:234)
> at net.juniper.dash.Updater$DataSourceProcessor.work(Updater.java:177)
> at net.juniper.dash.Refresher.run(Refresher.java:69)
> I assert a bunch of Users (and a bunch of other objects), then fire the rules, then attempt to assert more Users, and I get this on the *second* User I assert.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list