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-compiler (expert)
Affects Versions: 5.2.0.M2
Reporter: Wolfgang Laun
Assignee: Mark Proctor
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