I mean guvnor/guvnor-examples/src/main/java/org/drools/guvnor/examples/mortgage/client/MortgageClientExample.java<br><br>This does not use a properties file (that the below implies), just a Change-set. Furthermore &quot;RuleAgent&quot; sounds very old... what version of Drools Guvnor are you using?<br>
<br>Normally, if running from an IDE (like Eclipse) the src/main/resources folder is excluded from the build path. Check that it is not being excluded with an exclusion pattern of **.<br><br>With kind regards,<br><br>Mike<br>
<br><div class="gmail_quote">On 14 September 2012 15:26, richard <span dir="ltr">&lt;<a href="mailto:rx74me@yahoo.com" target="_blank">rx74me@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I assume you mean the mortgageApplicationTest.java.<br>
I have looked at the models, so I see the fact types in the model.<br>
But when I try to run mortgageApplicationTest.java<br>
I am  getting:<br>
Exception in thread &quot;main&quot; java.lang.NullPointerException<br>
        at java.util.Properties$LineReader.readLine(Properties.java:418)<br>
        at java.util.Properties.load0(Properties.java:337)<br>
        at java.util.Properties.load(Properties.java:325)<br>
        at org.drools.agent.RuleAgent.loadFromProperties(RuleAgent.java:299)<br>
        at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:256)<br>
        at<br>
com.notidiots.MortgageApplicationTest.main(MortgageApplicationTest.java:17)<br>
<br>
which is this line.<br>
RuleAgent agent = RuleAgent.newRuleAgent(&quot;mortgageapproval.properties&quot;);<br>
I have not made any modifications to this file.<br>
<br>
Thanks.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Guvnor-example-how-to-access-rules-in-database-instead-sample-drl-file-tp4019713p4019789.html" target="_blank">http://drools.46999.n3.nabble.com/Guvnor-example-how-to-access-rules-in-database-instead-sample-drl-file-tp4019713p4019789.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>