[rules-users] ClassCastException - org.drools.reteoo.BetaMemory

Edson Tirelli ed.tirelli at gmail.com
Tue Oct 20 10:17:30 EDT 2009


    This is a bug. Would you please open a JIRA and attach as much
information about the scenario as you can? A test case would be ideal, even
if the problem does not happen every single run. Also, are you using
serialization in your application?

    Edson

2009/10/20 Nicholas Hemley <nic.hemley at sidonis.com>

>  Hello,
>
>
>
> I am getting the following intermittent error from drools 5.0.1 when
> removing a knowledge package from a knowledge base:
>
>
>
> org.drools.reteoo.BetaMemory cannot be cast to
> org.drools.reteoo.RuleTerminalNode$TerminalNodeMemory
>
>
>
> I iterate over knowledgeBase.getKnowledgePackages() and the error occurs,
> but only occasionally.
>
>
>
> The full trace is as follows:
>
>
>
> java.lang.ClassCastException: org.drools.reteoo.BetaMemory cannot be cast
> to org.drools.reteoo.RuleTerminalNode$TerminalNodeMemory
>
> at org.drools.reteoo.RuleTerminalNode.doRemove(RuleTerminalNode.java:357)
>
> at org.drools.common.BaseNode.remove(BaseNode.java:95)
>
> at org.drools.reteoo.ReteooBuilder.removeRule(ReteooBuilder.java:237)
>
> at org.drools.reteoo.ReteooRuleBase.removeRule(ReteooRuleBase.java:366)
>
> at org.drools.common.AbstractRuleBase.removeRule(AbstractRuleBase.java:712)
>
> at
> org.drools.common.AbstractRuleBase.removePackage(AbstractRuleBase.java:640)
>
> at
> org.drools.impl.KnowledgeBaseImpl.removeKnowledgePackage(KnowledgeBaseImpl.java:166)
>
>
>
> Any ideas why this would potentially happen?
>
>
>
> Cheerio,
>
> Nic
>
>
>
> *Nicholas Hemley*
>
> *Senior Developer*
>
> *Sidonis | Powering a New Generation of Service Assurance*
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091020/53b2e623/attachment.html 


More information about the rules-users mailing list