[jboss-jira] [JBoss JIRA] Commented: (JBRULES-3005) decision table building => NPE
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Mon Sep 19 08:03:26 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-3005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629110#comment-12629110 ]
Geoffrey De Smet commented on JBRULES-3005:
-------------------------------------------
I fixed 735113 in org.drools.builder.impl.KnowledgeBuilderImpl#add were it was more appropriate, but did not make any changes related to this issue.
> 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