[rules-users] Can't get InputStream for Reader

Jones, Alan R alan.r.jones at boeing.com
Mon Apr 9 19:04:26 EDT 2007


 
...and I forgot to add that the rules file is NOT on the classpath, it
is created by another application at runtime, on the fly.
getResourceAsStream requires classpath, I suppose, but I need to make a
package  dynamically. We know the classpath cannot be changed when the
system is running.



aj


--------------------------------------------
Alan R Jones
Boeing S&IS Mission Systems
Denver Engineering Center (BDEC)
303.307.3415

-----Original Message-----
From: Jones, Alan R 
Sent: Monday, April 09, 2007 5:00 PM
To: 'Rules Users List'
Subject: [rules-users] Can't get InputStream for Reader

 Hi,

I am trying to read a .drl file from a location on the disk via:

Reader source = new
InputStreamReader(this.class.getResourceAsStream(ruleFile));

But my InputStream is coming back null. I have another class engineMgr
that actually starts a new thread and then kicks off all the rule base
initialization, etc, then when I get to the point of reading in the drl
file is when it chokes. Any ideas? Maybe I can read the file another
way?




aj


--------------------------------------------
Alan R Jones




More information about the rules-users mailing list