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

Edson Tirelli ed.tirelli at gmail.com
Tue Oct 20 11:12:59 EDT 2009


    It must be after serialization. I guess you might also be using
interfaces (or superclasses) as patterns in the rules and inserting the
implementations (or subclasses) as facts?

   This obviously should not be a problem, but I hope the above helps you
narrow down the scenario.

   Thanks,
       Edson

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

>  Edson,
>
>
>
> Many thanks for this: yes, we do use serialization so I will try and
> identify the exact case where this error happens.
>
>
>
> Cheerio,
>
> Nic
>
>
>
> *Nicholas Hemley*
>
> *Senior Developer*
>
> *Sidonis | Powering a New Generation of Service Assurance*
>
> * *
>
> *e: *nic.hemley at sidonis.com <carol.hopperton at sidonis.com>**
>
> *m: *+44 (0)7956 695 037
>
> *t:   *+44 (0)1225 446060
>
> *skype:  nicholas.hemley*
>
> *w: www.sidonis.com*
>
> * *
>
> [image: sidlogol esig]
>
>
>
> Sidonis Limited. Registered No:  5718402. Registered Office:  2-4 Henry
> Street, Bath, Somerset. BA1 1JT.  VAT Registration No:  879658932.
>
>
>
> This e-mail and the information it contains may be confidential, legally
> privileged and protected by law. Access by the intended recipient only is
> authorised.  If you are not the intended recipient, please notify the sender
> immediately and delete this e-mail from your system.  Any review,
> distribution, reproduction, publication or other use of this e-mail by
> persons or entities other than the intended recipient is prohibited.
>
>
>
> *From:* rules-users-bounces at lists.jboss.org [mailto:
> rules-users-bounces at lists.jboss.org] *On Behalf Of *Edson Tirelli
> *Sent:* 20 October 2009 15:18
> *To:* Rules Users List
> *Subject:* Re: [rules-users] ClassCastException -
> org.drools.reteoo.BetaMemory
>
>
>
>
>     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
>
> _______________________________________________
> 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/a8b3f7db/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1630 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20091020/a8b3f7db/attachment.jpe 


More information about the rules-users mailing list