<br> Chris,<br><br> It seems like a bug to me. May I ask you please to open a JIRA and attach your project?<br> We are trying to fix final bugs for MR4 and keeping all of them in JIRA will avoid us to miss anyone...<br>
<br> Thanks<br><br> []s<br> Edson<br><br><br><div><span class="gmail_quote">2007/7/12, Chris West <<a href="mailto:crayzfishr@gmail.com">crayzfishr@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>I'm trying to use objects that are generated as dynamic proxies (through the java.lang.reflect.Proxy class) as facts in JBoss Rules 4.0 MR3. My project was using CGLib to generate proxies, and they were working just fine in
3.0.6. However, when I tried 4.0, the CGLib based proxies seemed to have a final method that kept the proxies from being proxied as shadow facts. So I rewrote my code to try to use JDK based proxies, and version 4.0 MR3 accepts them and apparently creates shadow facts, but now my rules don't fire correctly.
<br><br>So, in an attempt to create a simple program to illustrate the problem, I ran into a different problem. The attached eclipse project illustrates this problem.<br><br>The error is:<br><br>java.lang.NullPointerException
<br> at org.drools.reteoo.Rete$ObjectTypeConf.<init>(Rete.java:333)<br> at org.drools.reteoo.Rete.assertObject(Rete.java:152)<br> at org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:190)<br>
at org.drools.reteoo.ReteooWorkingMemory.doInsert(ReteooWorkingMemory.java:70)<br> at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:772)<br> at org.drools.common.AbstractWorkingMemory.insert
(AbstractWorkingMemory.java:584)<br> at com.sample.DroolsTest.main(DroolsTest.java:42)<br><br>Has anyone successfully used JDK based dynamic proxies as facts?<br><br>Thanks,<br><span class="sg">-Chris West<br>
</span><br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br><br clear="all"></blockquote>
</div><br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">
www.jboss.com</a>