[jboss-jira] [JBoss JIRA] (DROOLS-1451) NPE when building KieBase with OOPath in a declared window

Tibor Zimányi (JIRA) issues at jboss.org
Mon May 29 07:20:00 EDT 2017


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

Tibor Zimányi updated DROOLS-1451:
----------------------------------
    Labels: oopath  (was: )


> NPE when building KieBase with OOPath in a declared window
> ----------------------------------------------------------
>
>                 Key: DROOLS-1451
>                 URL: https://issues.jboss.org/browse/DROOLS-1451
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 7.0.0.Beta6
>         Environment: Reproducible with 7.0.0-SNAPSHOT.
>            Reporter: Marek Winkler
>            Assignee: Mario Fusco
>              Labels: oopath
>             Fix For: 7.0.0.Beta7
>
>         Attachments: oopath-cep-stacktrace.txt
>
>
> When using an OOPath expression in a declared window (does not matter if a length or a time window), a NPE is thrown. For instance, a rule such as:
> {code}
> declare window Pings
>   MessageEvent( /msg{ message == 'Ping' } ) over window:length( 2 )
> end
> rule R when
>   $messageEvent: MessageEvent() from window Pings
> then
>   events.add( $messageEvent );
> end
> {code}
> produces the following exception (see the attachment for the full stacktrace) when building the KieBase:
> {code}
> java.lang.NullPointerException
> 	at org.drools.core.reteoo.builder.WindowReferenceBuilder.build(WindowReferenceBuilder.java:40)
> 	at org.drools.core.reteoo.builder.PatternBuilder.attachPattern(PatternBuilder.java:116)
> 	at org.drools.core.reteoo.builder.PatternBuilder.build(PatternBuilder.java:77)
> 	at org.drools.core.reteoo.builder.GroupElementBuilder$AndBuilder.build(GroupElementBuilder.java:108)
> 	at org.drools.core.reteoo.builder.GroupElementBuilder.build(GroupElementBuilder.java:68)
> 	at org.drools.core.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:164)
> 	at org.drools.core.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:136)
> 	at org.drools.core.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:110)
> ...
> 	at org.drools.compiler.kie.builder.impl.KieContainerImpl.createKieBase(KieContainerImpl.java:630)
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jboss-jira mailing list