<br>   The broker example is work in progress and requires documentation. <br><br>    It is composed of 3 parts. The first step is that you need to use the event generator to create a source data file with the data for the events in the stream. Then you need to use this data file to feed events into the application.<br>
 <br>    []s<br>    Edson<br><br><div class="gmail_quote">2009/3/25 ober0n <span dir="ltr">&lt;<a href="mailto:lili339@hotmail.com">lili339@hotmail.com</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;">
<br>
I just installed Drools Fusion (Drools 5.0 CR 1) through the Eclipse Plugin<br>
(thanks Edson). I downloaded the &quot;Drools 5.0.0.CR1 Examples&quot; and am now<br>
trying to run the Broker example (drools-examples-fusion). Starting &quot;Main&quot;<br>
in Eclipse, the &quot;Simple Broker&quot; window opens but the program throws a<br>
java.lang.IllegalArgumentException (see below) with all the $ values in the<br>
graphics window remaining zero.<br>
<br>
I&#39;ve been stepping through the code but can&#39;t seem to find the exact point<br>
the code fails (probably don&#39;t have the source for that point). Before I go<br>
any further, I was wondering if anyone else experience this and knows what I<br>
am doing wrong?<br>
<br>
Thanks for the help.<br>
<br>
java.lang.IllegalArgumentException: stream cannot be null<br>
        at<br>
org.drools.io.impl.InputStreamResource.&lt;init&gt;(InputStreamResource.java:19)<br>
        at<br>
org.drools.io.impl.ResourceProviderImpl.newInputStreamResource(ResourceProviderImpl.java:71)<br>
        at<br>
org.drools.io.ResourceFactory.newInputStreamResource(ResourceFactory.java:70)<br>
        at org.drools.examples.broker.Broker.loadRuleBase(Broker.java:86)<br>
        at org.drools.examples.broker.Broker.createSession(Broker.java:72)<br>
        at org.drools.examples.broker.Broker.&lt;init&gt;(Broker.java:56)<br>
        at org.drools.examples.broker.Main.main(Main.java:51)<br>
Exception in thread &quot;main&quot; java.lang.RuntimeException: Unexpected global<br>
[services]<br>
        at<br>
org.drools.common.AbstractWorkingMemory.setGlobal(AbstractWorkingMemory.java:549)<br>
        at<br>
org.drools.impl.StatefulKnowledgeSessionImpl.setGlobal(StatefulKnowledgeSessionImpl.java:268)<br>
        at org.drools.examples.broker.Broker.createSession(Broker.java:75)<br>
        at org.drools.examples.broker.Broker.&lt;init&gt;(Broker.java:56)<br>
        at org.drools.examples.broker.Main.main(Main.java:51)<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/Drools-Fusion-Example---java.lang.IllegalArgumentException%3A-stream-cannot-be-null-tp22714077p22714077.html" target="_blank">http://www.nabble.com/Drools-Fusion-Example---java.lang.IllegalArgumentException%3A-stream-cannot-be-null-tp22714077p22714077.html</a><br>

Sent from the drools - user mailing list archive at Nabble.com.<br>
<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>
</font></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>