我使用從Red Hat雜誌的示例代碼 - http://magazine.redhat.com/2008/08/12/jboss-drools-how-to-tuning-guvnor-part-1/ - 嘗試獲得示例代碼工作,但我不斷收到以下錯誤:空指針異常與Drools的-的Guvnor
Exception in thread "main" java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Unknown Source)
at java.util.Properties.load0(Unknown Source)
at java.util.Properties.load(Unknown Source)
at org.drools.agent.RuleAgent.loadFromProperties(RuleAgent.java:299)
at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:256)
at test.GuvnorTest.main(GuvnorTest.java:15)
我不知道guvnor.properties文件在哪裏。如何創建如何獲取這個文件。
我以前嘗試學習的Drools-的Guvnor跟隨
1)understanding working of Drools guvnor
2)Understanding drools-guvnor
什麼代碼導致這種接受?瀏覽你的代碼,直到它爆炸。 – clamchoda 2011-04-25 17:21:51