[rules-users] Trying to get Eclipse Java code to call Guvnor

John Peterson john.peterson.gv3k at statefarm.com
Fri Mar 26 12:05:33 EDT 2010


I'm using the example code from the Red Hat Magazine -
http://magazine.redhat.com/2008/08/12/jboss-drools-how-to-tuning-guvnor-
part-1/ - to try to get the sample code to work, but I keep getting the
following error:

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)

It appears to be unable to find my 'Guvnor.properties' file, but I have
it in the classpath (I actually have it in several different places on
my C: drive as I tried to figure out why it couldn't find it).  Does
anyone have any thoughts on what's wrong here?

I'd appreciate any guidance.  It seems like this should be a simple
answer but I haven't been able to figure it out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100326/3e0ec722/attachment.html 


More information about the rules-users mailing list