title: Null Pointer Exception with  Drools-Guvnor
body: <p>I’m using the example code from the Red Hat Magazine - <a href="http://magazine.redhat.com/2008/08/12/jboss-drools-how-to-tuning-guvnor-part-1/" rel="nofollow noreferrer">http://magazine.redhat.com/2008/08/12/jboss-drools-how-to-tuning-guvnor-part-1/</a> - to try to get the sample code to work, but I keep getting the following error:</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>I don't know where is guvnor.properties file .How to create how to get this file .</p>
  
  <p>My previous attempt to learn drools-guvnor are following<br>
    1)<a href="https://stackoverflow.com/questions/5636706/understanding-working-of-drools-guvnor">understanding working of Drools guvnor</a><br>
    2)<a href="https://stackoverflow.com/questions/5777185/understanding-drools-guvnor">Understanding drools-guvnor</a></p>