[jboss-jira] [JBoss JIRA] (DROOLS-886) ClassCastException when kcontainer.updateToVersion() with sliding window rule running (with fix for DROOLS-881 and DROOLS-883)

Mario Fusco (JIRA) issues at jboss.org
Tue Aug 18 09:05:26 EDT 2015


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

Mario Fusco commented on DROOLS-886:
------------------------------------

Neither me nor Petr have been able to reproduce this CCE against latest drools 6.4.0-SNAPSHOT. Conversely Petr reported that he has been able to reproduce that CCE against drools 6.3.0.CR1. Since that release doesn't have all the fixes I pushed during the last days, this confirms my impression that the CCE you reported has been solved as side effect of one of those fixes.

> ClassCastException when kcontainer.updateToVersion() with sliding window rule running (with fix for DROOLS-881 and DROOLS-883)
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-886
>                 URL: https://issues.jboss.org/browse/DROOLS-886
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 6.3.0.CR1
>         Environment: drools.version:  6.4.0-SNAPSHOT
>            Reporter: hisao furuichi
>            Assignee: Mario Fusco
>         Attachments: reproducer.zip
>
>
> When you call kcontainer.updateToVersion() while running sliding window rules, you will the following Exception.
> I tested it with master(6.4.0-SNAPSHOT), and I guess it includes the fix for  DROOLS-881 and DROOLS-883. However the issue still occurs.
> {panel}
> Exception in thread "pool-23-thread-1" java.lang.ClassCastException: org.drools.core.reteoo.WindowNode$WindowMemory cannot be cast to org.drools.core.reteoo.PathMemory
> 	at org.drools.core.phreak.AddRemoveRule.addRule(AddRemoveRule.java:85)
> 	at org.drools.core.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:190)
> 	at org.drools.core.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:136)
> 	at org.drools.core.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:102)
> 	at org.drools.core.impl.KnowledgeBaseImpl.addRule(KnowledgeBaseImpl.java:1521)
> 	at org.drools.core.impl.KnowledgeBaseImpl.addRule(KnowledgeBaseImpl.java:1501)
> 	at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.compileAllRules(KnowledgeBuilderImpl.java:966)
> 	at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildRules(CompositeKnowledgeBuilderImpl.java:256)
> 	at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildPackages(CompositeKnowledgeBuilderImpl.java:120)
> 	at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:104)
> 	at org.drools.compiler.kie.builder.impl.KieContainerImpl.rebuildAll(KieContainerImpl.java:369)
> 	at org.drools.compiler.kie.builder.impl.KieContainerImpl.update(KieContainerImpl.java:207)
> 	at org.drools.compiler.kie.builder.impl.KieContainerImpl.updateToVersion(KieContainerImpl.java:128)
> 	at com.sample.CallKjarTest$1.run(CallKjarTest.java:45)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:745)
> {panel}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list