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

Toshiya Kobayashi (JIRA) issues at jboss.org
Thu Aug 13 03:05:03 EDT 2015


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

Toshiya Kobayashi edited comment on DROOLS-881 at 8/13/15 3:04 AM:
-------------------------------------------------------------------

Attached a reproducer:

- Unzip 01490327_standalone_reproducer.zip
- cd kjar1
- mvn clean install
- cd ../kjar2
- mvn clean install
- cd ../drools-mvn-main
- mvn test


was (Author: tkobayashi):
Attached a reproducer:

- Unzip 01490327_standalone_reproducer.zip
- cd kjar1
- mvn clean install
- cd ../kjar2
- mvn clean install
- ../drools-mvn-main
- mvn test

> ClassCastException when kcontainer.updateToVersion() with sliding window rule running
> -------------------------------------------------------------------------------------
>
>                 Key: DROOLS-881
>                 URL: https://issues.jboss.org/browse/DROOLS-881
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 6.3.0.CR1
>            Reporter: Toshiya Kobayashi
>            Assignee: Mario Fusco
>         Attachments: 01490327_standalone_reproducer.zip
>
>
> When you call kcontainer.updateToVersion() while running sliding window rules, you will the following Exception.
> {noformat}
> Exception in thread "pool-23-thread-2" java.lang.ClassCastException: org.drools.core.reteoo.PathMemory cannot be cast to org.drools.core.reteoo.WindowNode$WindowMemory
> 	at org.drools.core.reteoo.WindowNode.retractRightTuple(WindowNode.java:189)
> 	at org.drools.core.reteoo.ObjectTypeNode.doRetractObject(ObjectTypeNode.java:325)
> 	at org.drools.core.reteoo.ObjectTypeNode.retractObject(ObjectTypeNode.java:317)
> 	at org.drools.core.impl.StatefulKnowledgeSessionImpl$WorkingMemoryReteExpireAction.execute(StatefulKnowledgeSessionImpl.java:1770)
> 	at org.drools.core.phreak.SynchronizedPropagationList.flush(SynchronizedPropagationList.java:96)
> 	at org.drools.core.phreak.SynchronizedPropagationList.flush(SynchronizedPropagationList.java:69)
> 	at org.drools.core.impl.StatefulKnowledgeSessionImpl.flushPropagations(StatefulKnowledgeSessionImpl.java:2007)
> 	at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1289)
> 	at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1306)
> 	at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1293)
> 	at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1272)
> 	at com.sample.CallKjarTest$2.run(CallKjarTest.java:67)
> 	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)
> {noformat}



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


More information about the jboss-jira mailing list