[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2104) KnowledgeAgentImpl cannot build Resources with paramatereised ResourceConfiguration's

Mark Proctor (JIRA) jira-events at lists.jboss.org
Wed May 18 00:59:01 EDT 2011


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

Mark Proctor updated JBRULES-2104:
----------------------------------

    Fix Version/s: 5.2.0.CR1


> KnowledgeAgentImpl cannot build Resources with paramatereised ResourceConfiguration's
> -------------------------------------------------------------------------------------
>
>                 Key: JBRULES-2104
>                 URL: https://issues.jboss.org/browse/JBRULES-2104
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-core
>    Affects Versions: 5.0.1.FINAL
>            Reporter: Graham Gear
>            Assignee: Esteban Aliverti
>             Fix For: 5.2.0.CR1
>
>
> The KnowledgeAgentImpl does not pass through ResourceConfiguration's through to KnowledgeBuilderImpl, making the building of configuration parametrised Resources not possible. Eg, trying to compile a DecisionTable (XLS) results in a NPE:
> Caused by: 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:16)
> 	at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:508)
> 	at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:25)
> 	at org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:385)
> 	at org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:119)
> 	at org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:108)
> 	at com.jboss.brms.poc.KnowledgeBaseManager.loadChangeSet(KnowledgeBaseManager.java:78)
> 	at com.jboss.brms.poc.test.rule.DecisionTableBRLClassPathRuleTest.<clinit>(DecisionTableBRLClassPathRuleTest.java:18)
> 	... 17 more
> In general it would be good if the KnowledgeAgent would behave exactly as the KnowledgeBuilder under the same ChangeSet configuration.

--
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