Hello there! I&#39;ve just started with the BRMS (what an awesome feature I might add). So I&#39;ve deployed a simple rule, packaged it and created a snapshot.<br><br>The package is created and when I access the url provided by the BRMS it tries to download the package, so I&#39;m assuming it is published.<br>
<br>So I ran this code inside eclipse:<br><br>public static void main(String[] args) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; RuleAgent agent = RuleAgent.newRuleAgent(&quot;/MyRules.properties&quot;);&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; RuleBase rb = agent.getRuleBase();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; StatefulSession session = rb.newStatefulSession();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Funcionario f = new Funcionario();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; f.setSalario(1000.0);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Cargo c = new Cargo();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; c.setDescricao(&quot;desenvolvedor&quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; f.setCargo(c);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; session.insert(c);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Decision d = new Decision();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; session.insert(d);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; session.fireAllRules();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; session.dispose();<br>&nbsp;&nbsp;&nbsp; }<br clear="all"><br>---------------------MyRules.properties----------------------------<br>
<a href="http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/com.synos.rules.credito/production-1">http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/com.synos.rules.credito/production-1</a><br>
poll=10<br><br><br>It throws a nullpointer exception, as the agent.getRulebase() is returning a null object.<br><br>What am I missing here?<br><br>Best regards<br><br><br>-- <br>&quot;In a world without fences and walls, who needs Gates and Windows?&quot;