<br>&nbsp;&nbsp; I am not sure what we are missing, but we must be missing something. <br><br>&nbsp;&nbsp; The test I mentioned is here:<br><br><a href="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/MiscTest.java">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/MiscTest.java</a><br>
<br>&nbsp;&nbsp;&nbsp; Can you send me a test case with your scenario so that I can debug it? <br><br>&nbsp;&nbsp;&nbsp; On an unrelated comment, it should cause you no problems, but you are still using the &quot;old&quot; API. We are recommending user to move to the new API so that we can find any missing method/requirement in the new API, as you did with the dynamic flag.<br>
<br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2009/2/15 J Michael Dean <span dir="ltr">&lt;<a href="mailto:mdean77@comcast.net">mdean77@comcast.net</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div style="margin: 0px;">Sorry - in previous email forgot to include the following code, as the NPE occurs when this routine is called at the addPackage call.</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">
<br></div><div style="margin: 0px; min-height: 15px;"><br></div><div style="margin: 0px;"><span style="white-space: pre;">        </span><span style="color: rgb(127, 0, 85);">private</span> <span style="color: rgb(127, 0, 85);">void</span> readDRLintoPackage(String rulesFile) <span style="color: rgb(127, 0, 85);">throws</span> DroolsParserException, IOException, Exception {</div>
<div style="margin: 0px;"><span style="white-space: pre;">                </span>Reader source = <span style="color: rgb(127, 0, 85);">new</span> InputStreamReader(RulesEngine.<span style="color: rgb(127, 0, 85);">class</span>.getResourceAsStream(<span style="color: rgb(42, 0, 255);">&quot;/&quot;</span> + rulesFile));</div>
<div style="margin: 0px;"><span style="white-space: pre;">                </span>PackageBuilder builder = <span style="color: rgb(127, 0, 85);">new</span> PackageBuilder();</div><div style="margin: 0px;"><span style="white-space: pre;">                </span>builder.addPackageFromDrl(source);</div>
<div style="margin: 0px;"><span style="white-space: pre;">                </span>Package pkg = builder.getPackage();</div><div style="margin: 0px;"><span style="white-space: pre;">                </span><span style="color: rgb(0, 0, 192);">rules</span> = RuleBaseFactory.newRuleBase();</div>
<div style="margin: 0px;"><span style="white-space: pre;">                </span><span style="color: rgb(0, 0, 192);">rules</span>.addPackage(pkg);</div><div style="margin: 0px;"><span style="white-space: pre;">        </span>}</div></div><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>
<br></blockquote></div><br><br clear="all"><br>-- <br> &nbsp;Edson Tirelli<br> &nbsp;JBoss Drools Core Development<br> &nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>