[rules-users] ImputDrl

Alexey Panchenko alex.panchenko at gmail.com
Thu May 3 11:45:04 EDT 2007


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 at 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.yahoo.com>
> .
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070503/d48f7ddf/attachment.html 


More information about the rules-users mailing list