[jboss-jira] [JBoss JIRA] (DROOLS-215) Corrupted Working/Production memory
Davide Sottara (JIRA)
jira-events at lists.jboss.org
Tue Oct 15 20:02:35 EDT 2013
[ https://issues.jboss.org/browse/DROOLS-215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12814426#comment-12814426 ]
Davide Sottara commented on DROOLS-215:
---------------------------------------
Ok, so the problem is definitely NOT related to this JIRA (CCE in ConcurrentNodeMemories), we'll have to move it to a different ticket.
The relevant part of the exception is pasted at the end of the commet : you have a pattern somewhere, in one of your rules, which
has 3 beta constraints. One of them, when evaluated by MVEL, causes the CCE.
- Could you try the very latest version of 5.6? Some bugs have been fixed there
- Could you try locating the rule with the constraint that causes the exception? Looking at the stacktrace, you should have at least 4 patterns,
the first should be for RefData() or one of its subclasses and the last one has exactly three beta constraints involving variables declared
on the previous objects.
RefData( /* only bindings here */ )
AAA( ... )
BBB( ... )
CCC( ..., f1 op $x, f2 op $y, f3 op $z, ... ) // exactly three constraints involving variables
....
2013-10-15 15:20:23,756 ERROR [STDERR] Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
2013-10-15 15:20:23,756 ERROR [STDERR] at ConditionEvaluatordf13704748e74e68a38cf5bb6c1630ef.evaluate(Unknown Source)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:167)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.rule.constraint.MvelConstraint.isAllowedCachedLeft(MvelConstraint.java:136)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.common.TripleBetaConstraints.isAllowedCachedLeft(TripleBetaConstraints.java:199)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.reteoo.JoinNode.assertLeftTuple(JoinNode.java:96)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.reteoo.CompositeLeftTupleSinkAdapter.doPropagateAssertLeftTuple(CompositeLeftTupleSinkAdapter.java:232)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.reteoo.CompositeLeftTupleSinkAdapter.propagateAssertLeftTuple(CompositeLeftTupleSinkAdapter.java:89)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.reteoo.JoinNode.assertLeftTuple(JoinNode.java:98)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.reteoo.SingleLeftTupleSinkAdapter.doPropagateAssertLeftTuple(SingleLeftTupleSinkAdapter.java:196)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.reteoo.SingleLeftTupleSinkAdapter.propagateAssertLeftTuple(SingleLeftTupleSinkAdapter.java:71)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.reteoo.JoinNode.assertLeftTuple(JoinNode.java:98)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.reteoo.CompositeLeftTupleSinkAdapter.doPropagateAssertLeftTuple(CompositeLeftTupleSinkAdapter.java:232)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.reteoo.CompositeLeftTupleSinkAdapter.createAndPropagateAssertLeftTuple(CompositeLeftTupleSinkAdapter.java:116)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.reteoo.LeftInputAdapterNode.assertObject(LeftInputAdapterNode.java:154)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:59)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:364)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:235)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:240)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:337)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:298)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:888)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.base.DefaultKnowledgeHelper.insert(DefaultKnowledgeHelper.java:187)
2013-10-15 15:20:23,756 ERROR [STDERR] at org.drools.base.DefaultKnowledgeHelper.insert(DefaultKnowledgeHelper.java:181)
2013-10-15 15:20:23,756 ERROR [STDERR] at sales.rules.sys.setup.Rule_10_ServiceRequest_InsertRefData_fbff25aa69474eb5a6023d156e613f1e.defaultConsequence(Rule_10_ServiceRequest_InsertRefData_fbff25aa69474eb5a6023d156e613f1e.java:10)
> Corrupted Working/Production memory
> -----------------------------------
>
> Key: DROOLS-215
> URL: https://issues.jboss.org/browse/DROOLS-215
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 5.5.0.Final
> Reporter: Ales Dolecek
> Assignee: Mark Proctor
> Attachments: ConcurrentNodeMemories.java
>
>
> Experienced ClassCastException mixing BetaMemory and AlphaMemory. There is debate in the mailing list/forum. The problem seems to be related to dymanic updates of knowledgebase.
> Saddly there is no deterministic way how to reproduce the issue, but that should not prevent tracking it here.
> Stack trace from my project:
> java.lang.ClassCastException: org.drools.reteoo.BetaMemory cannot be cast to org.drools.reteoo.AlphaNode$AlphaMemory
> at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:136) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:497) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:382) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:235) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:240) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:350) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:311) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:903) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at org.drools.base.DefaultKnowledgeHelper.insert(DefaultKnowledgeHelper.java:192) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at org.drools.base.DefaultKnowledgeHelper.insert(DefaultKnowledgeHelper.java:186) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at cz.nextiraone.screening.rules.screening.Rule_Telefonni_cislo_z_textu__jen_cifry__225b11d6cd07418aac8c06cf5c86b4b1.defaultConsequence(Rule_Telefonni_cislo_z_textu__jen_cifry__225b11d6cd07418aac8c06cf5c86b4b1.java:7) ~[na
> :na]
> at cz.nextiraone.screening.rules.screening.Rule_Telefonni_cislo_z_textu__jen_cifry__225b11d6cd07418aac8c06cf5c86b4b1DefaultConsequenceInvokerGenerated.evaluate(Unknown Source) ~[na:na]
> at cz.nextiraone.screening.rules.screening.Rule_Telefonni_cislo_z_textu__jen_cifry__225b11d6cd07418aac8c06cf5c86b4b1DefaultConsequenceInvoker.evaluate(Unknown Source) ~[na:na]
> at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1287) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:1221) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1456) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:710) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:674) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
> at org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:230) ~[drools-core-5.5.0.Final.jar:5.5.0.Final]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list