[jboss-jira] [JBoss JIRA] (JBRULES-3656) java.lang.ClassCastException: org.drools.reteoo.AlphaNode$AlphaMemory cannot be cast to org.drools.reteoo.BetaMemory

Mariano De Maio (JIRA) jira-events at lists.jboss.org
Mon Oct 15 19:04:01 EDT 2012


    [ https://issues.jboss.org/browse/JBRULES-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12726639#comment-12726639 ] 

Mariano De Maio commented on JBRULES-3656:
------------------------------------------

https://github.com/droolsjbpm/drools/pull/148 is a proposed solution but a review would be nice. Please check with Mario Fusco since it's a change on something he solved for another bug.
                
> java.lang.ClassCastException: org.drools.reteoo.AlphaNode$AlphaMemory cannot be cast to org.drools.reteoo.BetaMemory
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-3656
>                 URL: https://issues.jboss.org/browse/JBRULES-3656
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-core  (expert)
>    Affects Versions: 5.4.1.Final, 5.5.0.Beta1
>            Reporter: Mariano De Maio
>            Assignee: Mark Proctor
>         Attachments: P8.tar.gz
>
>
> When trying to add a rule package to a knowledge base I previously removed a used knowledge session from, the following error occurrs:
> java.lang.ClassCastException: org.drools.reteoo.AlphaNode$AlphaMemory cannot be cast to org.drools.reteoo.BetaMemory
>         at org.drools.reteoo.NotNode.updateSink(NotNode.java:461)
>         at org.drools.reteoo.RuleTerminalNode.attach(RuleTerminalNode.java:347)
>         at org.drools.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:174)
>         at org.drools.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:134)
>         at org.drools.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:113)
>         at org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:445)
>         at org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:952)
>         at org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:629)
>         at org.drools.reteoo.ReteooRuleBase.addPackages(ReteooRuleBase.java:472)
>         at org.drools.impl.KnowledgeBaseImpl.addKnowledgePackages(KnowledgeBaseImpl.java:150)
> ...
> This issue doesn't seem to happen on 5.4.0.Final but it does appear on 5.5.0.Beta1 and on branch 5.4.x
> I attached a project (P8.tar.gz) that allows you to test this issue. Any help would be appreciated

--
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