<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'>Hi Thomas<br><br>Can you please find out if your code is reading the correct drl file ? Is your drl file loaded properly. I got the same error when I was trying to load a file from a dir and forgot to add drl file in that dir ? <br><br>Thanks<br>Gaurav<br><br>--- On <b>Mon, 6/30/08, thomas kukofka <i>&lt;thomaskukofka@web.de&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: thomas kukofka &lt;thomaskukofka@web.de&gt;<br>Subject: [rules-users] Unexpected global error<br>To: rules-users@lists.jboss.org<br>Date: Monday, June 30, 2008, 5:37 PM<br><br><div id="yiv1750110621">Hello,<br><br><br>I get this exception: Exception in thread "main" java.lang.RuntimeException: Unexpected global [service]<br><br>That's the global declaration in the drl: global java.util.HashMap service<br>
<br>And ther I set teh global in teh Java-class:<br>HashMap&lt;String, AIOObject&gt; service = new HashMap&lt;String, AIOObject&gt;();&nbsp;&nbsp;&nbsp; <br>workingMemory.setGlobal("service", service);<br><br>Appreciate your help!<br>
<br>Kind Regards<br>Thomas<br>
</div><pre>_______________________________________________<br>rules-users mailing list<br>rules-users@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/rules-users</pre></blockquote></td></tr></table><br>