[jboss-jira] [JBoss JIRA] Closed: (JBRULES-1912) The KnowledgeAgentFactory.newKnowledgeAgent(String name, KnowledgeBase kbase) method doesn't initialize the KnowledgeAgent properly

Mark Proctor (JIRA) jira-events at lists.jboss.org
Wed Jan 14 18:05:04 EST 2009


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

Mark Proctor closed JBRULES-1912.
---------------------------------

    Fix Version/s: 5.0.0.M5
       Resolution: Done


> The KnowledgeAgentFactory.newKnowledgeAgent(String name, KnowledgeBase kbase) method doesn't initialize the KnowledgeAgent properly
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-1912
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-1912
>             Project: JBoss Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-api, drools-core
>    Affects Versions:  5.0.0.M4
>            Reporter: Michal Bali
>            Assignee: Mark Proctor
>             Fix For: 5.0.0.M5
>
>
> Hi,
> The KnowledgeAgentFactory.newKnowledgeAgent(String name, KnowledgeBase kbase) method doesn't initialize the KnowledgeAgent properly. The KnowledgeAgentConfiguration is null which causes that the ResourceChangeNotifierImpl is left set to null. 
> The method call fails with following exception:
> Exception in thread "main" java.lang.NullPointerException
> 	at org.drools.agent.impl.KnowledgeAgentImpl.buildResourceMapping(KnowledgeAgentImpl.java:238)
> 	at org.drools.agent.impl.KnowledgeAgentImpl.<init>(KnowledgeAgentImpl.java:91)
> 	at org.drools.agent.impl.KnowledgeAgentProviderImpl.newKnowledgeAgent(KnowledgeAgentProviderImpl.java:23)
> 	at org.drools.agent.KnowledgeAgentFactory.newKnowledgeAgent(KnowledgeAgentFactory.java:66)
> 	at droolsbook.integration.agent.Main.main(Main.java:57)
> Thanks,
> Michal

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list