[rules-users] Drools Fusion Example - java.lang.IllegalArgumentException: stream cannot be null

ober0n lili339 at hotmail.com
Wed Mar 25 21:06:15 EDT 2009


I just installed Drools Fusion (Drools 5.0 CR 1) through the Eclipse Plugin
(thanks Edson). I downloaded the "Drools 5.0.0.CR1 Examples" and am now
trying to run the Broker example (drools-examples-fusion). Starting "Main"
in Eclipse, the "Simple Broker" window opens but the program throws a
java.lang.IllegalArgumentException (see below) with all the $ values in the
graphics window remaining zero.

I've been stepping through the code but can't seem to find the exact point
the code fails (probably don't have the source for that point). Before I go
any further, I was wondering if anyone else experience this and knows what I
am doing wrong?

Thanks for the help.

java.lang.IllegalArgumentException: stream cannot be null
	at
org.drools.io.impl.InputStreamResource.<init>(InputStreamResource.java:19)
	at
org.drools.io.impl.ResourceProviderImpl.newInputStreamResource(ResourceProviderImpl.java:71)
	at
org.drools.io.ResourceFactory.newInputStreamResource(ResourceFactory.java:70)
	at org.drools.examples.broker.Broker.loadRuleBase(Broker.java:86)
	at org.drools.examples.broker.Broker.createSession(Broker.java:72)
	at org.drools.examples.broker.Broker.<init>(Broker.java:56)
	at org.drools.examples.broker.Main.main(Main.java:51)
Exception in thread "main" java.lang.RuntimeException: Unexpected global
[services]
	at
org.drools.common.AbstractWorkingMemory.setGlobal(AbstractWorkingMemory.java:549)
	at
org.drools.impl.StatefulKnowledgeSessionImpl.setGlobal(StatefulKnowledgeSessionImpl.java:268)
	at org.drools.examples.broker.Broker.createSession(Broker.java:75)
	at org.drools.examples.broker.Broker.<init>(Broker.java:56)
	at org.drools.examples.broker.Main.main(Main.java:51)
-- 
View this message in context: http://www.nabble.com/Drools-Fusion-Example---java.lang.IllegalArgumentException%3A-stream-cannot-be-null-tp22714077p22714077.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list