[jboss-jira] [JBoss JIRA] (DROOLS-1068) java.lang.UnsupportedOperationException thrown by org.drools.core.reteoo.BaseLeftTuple.getBlocker(BaseLeftTuple.java:535)

Mario Fusco (JIRA) issues at jboss.org
Mon Feb 29 04:42:00 EST 2016


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

Mario Fusco commented on DROOLS-1068:
-------------------------------------

Thanks a lot Bill, I reproduced the same problem with the far easier test case I'm pasting below. I'm investigating this issue and I'll keep you updated. 

{code}
    @Test
    public void testNotWithBreakingBranch() throws Exception {
        // DROOLS-1068
        String drl =
                "rule R when\n" +
                "  Integer()\n" +
                "  if (true) break[branch]\n" +
                "  not Integer()\n" +
                "then\n" +
                "  System.out.println(\"main\");\n" +
                "then[branch]\n" +
                "  System.out.println(\"branch\");\n" +
                "end\n";

        KieSession ksession = new KieHelper().addContent( drl, ResourceType.DRL )
                                             .build()
                                             .newKieSession();

        FactHandle fh = ksession.insert(1);
        ksession.fireAllRules();
        ksession.delete(fh);
        ksession.fireAllRules();
    }
{code}

> java.lang.UnsupportedOperationException thrown by org.drools.core.reteoo.BaseLeftTuple.getBlocker(BaseLeftTuple.java:535)
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-1068
>                 URL: https://issues.jboss.org/browse/DROOLS-1068
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 6.3.0.Final
>            Reporter: Bill Tuminaro
>            Assignee: Mario Fusco
>         Attachments: droolsReproducer.jar, droolsReproducer.jar, Person.java, UnsupportedOperationTest.drl, UnsupportedOperationTest.java
>
>
> We have encountered this issue when we insert a fact matching a certain rule, delete the fact then call fire all rules.
> A reproducer is attached.
> -BillT



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list