[jboss-jira] [JBoss JIRA] Updated: (JBRULES-3005) decision table building => NPE

Michael Anstis (JIRA) jira-events at lists.jboss.org
Sun May 1 05:00:18 EDT 2011


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

Michael Anstis updated JBRULES-3005:
------------------------------------

    Fix Version/s: 5.2.0.CR1
                       (was: 5.3.0.M1)


Cherry picked into 5.2

> decision table building => NPE
> ------------------------------
>
>                 Key: JBRULES-3005
>                 URL: https://issues.jboss.org/browse/JBRULES-3005
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-decisiontables
>    Affects Versions: 5.2.0.M2
>            Reporter: Wolfgang Laun
>            Assignee: Michael Anstis
>             Fix For: 5.2.0.CR1
>
>
> kBuilder.add( resource, resourceType.DTABLE ); results in a NPE:
> Exception in thread "main" java.lang.NullPointerException
>        at org.drools.decisiontable.DecisionTableProviderImpl.compileStream(DecisionTableProviderImpl.java:26)
>        at org.drools.decisiontable.DecisionTableProviderImpl.loadFromInputStream(DecisionTableProviderImpl.java:19)
>        at org.drools.compiler.DecisionTableFactory.loadFromInputStream(DecisionTableFactory.java:18)
>        at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:497)
>        at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
>        at rss.drools.setup.Application.setup(Application.java:47)
> Notice that a simple 
>     DecisionTableConfiguration dtConf = KnowledgeBuilderFactory.newDecisionTableConfiguration();
>     kBuilder.add( resource, resourceType, dtConf );
> is not sufficient, the DecisionTableConfiguration still needs a DecisionTableInputType
> Expected. there is a reasonable default DecisionTableConfiguration with DecisionTableInputType.XLS being set.
> The simple call worked fine in 5.1.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list