Hi Ismail,
1) Make sure .drl file is available thru the classpath
2) Try .class.getResourceAsStream("/Drl/Sample.drl") (with leading slash).
The path is treated as relative without the leading slash.
Alex
On 5/3/07, fakhfakh ismail <ismail_info2005(a)yahoo.fr> wrote:
Hello,
First sorry for my bad english,
I set all the class .java is in package hero.client.test
and the file .drl is in folser Drl
the call of file .drl
InputStream in = DroolsTest.class.getResourceAsStream("Drl/Sample.drl");
but the problem is they didn't find the file .drl
always an exception is affiched
Exception in thread "main" java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:61)
at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
at
org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(Unknown
Source)
at hero.client.test.DroolsTest.main(DroolsTest.java:34)
Please I need your help
Best regards
Ismail
------------------------------
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
! Profitez des connaissances, des opinions et des expériences des
internautes sur Yahoo!
Questions/Réponses<http://fr.rd.yahoo.com/evt=42054/*http://fr.answers...
.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users