<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText66082 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT><FONT face=Tahoma size=2><FONT face="Times New Roman" size=3>Hi,</FONT><BR></FONT><BR></DIV></DIV>
<DIV dir=ltr>
<DIV dir=ltr><FONT face=Arial size=2>I'm currently using Jboss Rules in it's 3.0.6 version, and I can't find the JavaRuleClassBuilder class, is anyone have an idea to recover the generated class from dsl &amp; Drl file? (So helpfull for debugging ^_^).<BR>Thanks</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Olivier </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>--------------------------------------------------------------------------------</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>De : <A href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</A> [mailto:rules-users-bounces@lists.jboss.org] De la part de Mark Proctor<BR>Envoyé : mardi 7 août 2007 12:27<BR>À : Rules Users List<BR>Objet : Re: [rules-users] How to dump the class/src generated by .drl file?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>There is no standard api for this, you would have to get your hands dirty with the source. Look at JavaRuleClassBuilder and you can see where to put your printouts.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Mark<BR>Yang Song wrote: </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Greetings everyone,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Does anyone know how to dump the class generated from .drl file to disk? Or even better if the generated Java source file can be dumped?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Looking for some hints here, I got a NPE when firing the rules. However, it is really hard to find out why the NEP was thrown...&nbsp; If I can have the dumped class file, then I can be disassemble it back to Java code.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>To debug this rule in Eclipse is a bit difficult here, because the project is a little "big" and we usually use logging to do debugging...</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>java.lang.NullPointerException<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at monitor.Rule_ftp_other_host_alarm_0.consequence(Rule_ftp_other_host_alarm_0.java:23)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at monitor.Rule_ftp_other_host_alarm_0ConsequenceInvoker.evaluate(Rule_ftp_other_host_alarm_0ConsequenceInvoker.java:26) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:545)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:509)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.common.AbstractWorkingMemory.fireAllRules (AbstractWorkingMemory.java:430)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:392)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.monitor.ruleengine.InferenceMachine.fireAllRules(InferenceMachine.java:400) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.monitor.ruleengine.InferenceMachine.run(InferenceMachine.java:314)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.Thread.run(Thread.java:595)</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Thanks very much,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Yang</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV><FONT face=Arial size=2>
<DIV dir=ltr><BR>--------------------------------------------------------------------------------</DIV>
<DIV dir=ltr><BR>&nbsp;<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">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR>&nbsp; </DIV>
<DIV dir=ltr></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV></DIV></BODY></HTML>
<table><tr><td bgcolor=#ffffff><font color=#000000>This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.<br>
<br>
</font></td></tr></table>