[jboss-jira] [JBoss JIRA] (DROOLS-4138) Building a KJAR using Decision Table Templates throws NPE

Carl Mes (Jira) issues at jboss.org
Tue Jun 11 11:19:01 EDT 2019


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

Carl Mes edited comment on DROOLS-4138 at 6/11/19 11:18 AM:
------------------------------------------------------------

Thanks for the update. I attempted to add this new system property into my reproducer code: [TestDecisionTableBuild.java#L60|https://github.com/carlmes/decision-table-template/blob/9c48582a0ae7012f76cde9f4ee4e1335900bc06d/src/test/java/test/kjar/build/TestDecisionTableBuild.java#L60]

Also, I made sure that I'm using the [latest version of the Drools modules|https://access.redhat.com/solutions/3363991], which appears to be Maven library version: 7.18.0.Final-redhat-00002, configured in my [build.gradle|https://github.com/carlmes/decision-table-template/blob/9c48582a0ae7012f76cde9f4ee4e1335900bc06d/build.gradle#L87] file.

Unfortunately I couldn't get this system property to work correctly on my reproducer codebase.


was (Author: rhn-gps-cames):
Thanks for the update. I attempted to add this new system property into my reproducer code here: https://github.com/carlmes/decision-table-template/blob/9c48582a0ae7012f76cde9f4ee4e1335900bc06d/src/test/java/test/kjar/build/TestDecisionTableBuild.java#L60

Also, I made sure that I'm using the latest version of the Drools modules (as defined here: https://access.redhat.com/solutions/3363991), which appears to be Maven library version: 7.18.0.Final-redhat-00002 (see https://github.com/carlmes/decision-table-template/blob/9c48582a0ae7012f76cde9f4ee4e1335900bc06d/build.gradle#L87)

Unfortunately I couldn't get this system property to work correctly on my reproducer codebase.

> Building a KJAR using Decision Table Templates throws NPE
> ---------------------------------------------------------
>
>                 Key: DROOLS-4138
>                 URL: https://issues.jboss.org/browse/DROOLS-4138
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 7.18.0.Final, 7.23.0.Final
>            Reporter: Carl Mes
>            Assignee: Mario Fusco
>            Priority: Major
>         Attachments: DecisionTableConfigurationImpl.java
>
>
> Steps to building a new KJar by defining Resource objects and adding then using KieFileSystem.write(), if a Decision Table Template resource type is added then we get a null pointer exception when the KieBuilder.buildAll() method is invoked.
> Sample code that demonstrates this error can be found here: https://github.com/carlmes/decision-table-template, specifically the notes in [TestDecisionTableBuild.java|https://github.com/carlmes/decision-table-template/blob/a68ddd1374f08695fe8d770f0b89bdf76d806e71/src/test/java/test/kjar/build/TestDecisionTableBuild.java#L70].
> Red Hat support case: https://access.redhat.com/support/cases/#/case/02397413
> I have created a proposed fix in [DecisionTableConfigurationImpl.java|https://github.com/kiegroup/drools/blob/f1091fb26d524b99632bad81497e8ad461e9d13f/drools-core/src/main/java/org/drools/core/builder/conf/impl/DecisionTableConfigurationImpl.java#L86], by implementing the missing properties in the fromProperties and toProperties methods. Please see attached updated file that has been tested to fix the issue locally.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list