[jboss-jira] [JBoss JIRA] (DROOLS-215) Corrupted Working/Production memory
Gurinder Randhawa (JIRA)
jira-events at lists.jboss.org
Tue Oct 15 18:07:35 EDT 2013
[ https://issues.jboss.org/browse/DROOLS-215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12814416#comment-12814416 ]
Gurinder Randhawa commented on DROOLS-215:
------------------------------------------
Thanks Davide for quick reply.
I can safely say, this issue still occurs with drools-core-5.6.0-20130913.043517-15.jar and related jars, our specific stack trace is below. It does not occur with Drools 5.3.x from which we had to upgrade to fix another unrelated issue. I wish I could spend time building a test case, but it would take us quite some time to setup a unit test on this issue. We could try version 5.4.x, do you know if this issue started in v5.5?
2013-10-15 14:59:53,942 ERROR [STDERR] Exception executing consequence for rule "10_ServiceRequest_InsertRefData" in sales.rules.sys.setup: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
2013-10-15 14:59:53,944 ERROR [STDERR] at org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39)
2013-10-15 14:59:53,944 ERROR [STDERR] at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1291)
2013-10-15 14:59:53,944 ERROR [STDERR] at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:1215)
2013-10-15 14:59:53,944 ERROR [STDERR] at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1450)
2013-10-15 14:59:53,944 ERROR [STDERR] at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:703)
2013-10-15 14:59:53,944 ERROR [STDERR] at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:667)
2013-10-15 14:59:53,944 ERROR [STDERR] at tu.venture.domain.interfaces.RulesRequestProcessor.processByStatefullRules(RulesRequestProcessor.java:68)
2013-10-15 14:59:53,944 ERROR [STDERR] at tu.venture.sales.ejb.business.SalesPriceProcessor.process(SalesPriceProcessor.java:106)
2013-10-15 14:59:53,944 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-10-15 14:59:53,944 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2013-10-15 14:59:53,944 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2013-10-15 14:59:53,944 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
> 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