[jboss-jira] [JBoss JIRA] (JBRULES-3674) CCE when storing a session with activations in its agenda

Mario Fusco (JIRA) jira-events at lists.jboss.org
Wed Oct 31 06:48:23 EDT 2012


     [ https://issues.jboss.org/browse/JBRULES-3674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco resolved JBRULES-3674.
----------------------------------

    Fix Version/s: 6.0.0.Beta1
                   5.5.0.Final
       Resolution: Done

    
> CCE when storing a session with activations in its agenda
> ---------------------------------------------------------
>
>                 Key: JBRULES-3674
>                 URL: https://issues.jboss.org/browse/JBRULES-3674
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-core  (expert)
>    Affects Versions: 5.5.0.Beta1, 6.0.0.Beta1, 5.5.0.CR1
>            Reporter: Mariano De Maio
>            Assignee: Mario Fusco
>              Labels: classcastexception,, drools,, drools-core, serialization
>             Fix For: 6.0.0.Beta1, 5.5.0.Final
>
>         Attachments: test.tar.gz
>
>
> When trying to persist (serialize) a session that has an activated agenda, a ClassCastException occurs like this when calling fireAllRules():
> java.lang.RuntimeException: Unable to commit transaction
>         at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:182)
>         at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:376)
>         at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.fireAllRules(CommandBasedStatefulKnowledgeSession.java:245)
> ...
> Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast to org.drools.spi.Activation
>         at org.drools.common.ActivationIterator.next(ActivationIterator.java:59)
>         at org.drools.marshalling.impl.ProtobufOutputMarshaller.writeAgenda(ProtobufOutputMarshaller.java:237)
>         at org.drools.marshalling.impl.ProtobufOutputMarshaller.serializeSession(ProtobufOutputMarshaller.java:132)
>         at org.drools.marshalling.impl.ProtobufOutputMarshaller.writeSession(ProtobufOutputMarshaller.java:100)
>         at org.drools.marshalling.impl.ProtobufMarshaller.marshall(ProtobufMarshaller.java:169)
>         at org.drools.marshalling.impl.ProtobufMarshaller.marshall(ProtobufMarshaller.java:151)
> I'll attach a project that reproduces this error on the next comment

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