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

Michal Bali (JIRA) jira-events at lists.jboss.org
Sat Jan 10 11:23:04 EST 2009


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


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