[jboss-jira] [JBoss JIRA] (DROOLS-1562) NPE when creating KieModuleMetaData with wrong release id
Maciej Swiderski (JIRA)
issues at jboss.org
Fri May 12 12:41:00 EDT 2017
[ https://issues.jboss.org/browse/DROOLS-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13405827#comment-13405827 ]
Maciej Swiderski commented on DROOLS-1562:
------------------------------------------
[~mfusco] there seems to be two issues:
- one in KieModuleMetaData as illustrated in the attached stack trace
- another in updateToVersion method of KieContainerImpl that leads to following NPE:
{code}
java.lang.NullPointerException: null
at org.drools.compiler.kie.util.ChangeSetBuilder.build(ChangeSetBuilder.java:57) ~[drools-compiler-7.1.0-20170508.233901-66.jar:7.1.0-SNAPSHOT]
at org.drools.compiler.kie.builder.impl.KieContainerImpl.update(KieContainerImpl.java:236) ~[drools-compiler-7.1.0-20170508.233901-66.jar:7.1.0-SNAPSHOT]
at org.drools.compiler.kie.builder.impl.KieContainerImpl.updateToVersion(KieContainerImpl.java:202) ~[drools-compiler-7.1.0-20170508.233901-66.jar:7.1.0-SNAPSHOT]
{code}
> NPE when creating KieModuleMetaData with wrong release id
> ---------------------------------------------------------
>
> Key: DROOLS-1562
> URL: https://issues.jboss.org/browse/DROOLS-1562
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.0.0.CR3
> Reporter: Karel Suta
> Assignee: Mario Fusco
> Labels: reported-by-qe
> Attachments: stacktrace.txt
>
>
> If user tries to create new KieModuleMetaData using KieModuleMetaData.Factory.newKieModuleMetaData() with not existing release id then NPE is thrown, see stacktrace in attachment.
> This error can be simulated on Kie server. See PR with reproducer [1].
> [1] https://github.com/kiegroup/droolsjbpm-integration/pull/950
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list