[rules-users] NullPointerException when load file rules

Swindells, Thomas TSwindells at nds.com
Tue Jan 10 12:15:58 EST 2012


Looking at the stack trace, if you are on the same version as drools as me it looks like it is this line
this.rule.setDialect( getDialect().getId() );

The most likely reason is your DRL isn't valid - perhaps where you are specifying the dialect, or it could be your
Dependencies aren't right or something.
Which version of drools are you using. Have you tried reducing your DRL file to the minimum that generates the error - then post that DRL if you need further help.

Thomas

> -----Original Message-----
> From: rules-users-bounces at lists.jboss.org [mailto:rules-users-
> bounces at lists.jboss.org] On Behalf Of jjmartinez
> Sent: 10 January 2012 17:05
> To: rules-users at lists.jboss.org
> Subject: Re: [rules-users] NullPointerException when load file rules
>
> Anybody can help me? I don't know why my application show these errors.
>
> Thanks in advance!
>
> java.lang.NullPointerException
        at org.drools.rule.builder.RuleBuildContext.<init>(RuleBuildContext.java:88)
        at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:1149)
        at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:636)
        at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:266)
        at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:458)
        at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
        at drools.ejemplos.DroolsTest.readKnowledgeBase(DroolsTest.java:85)
        at drools.ejemplos.DroolsTest.execute(DroolsTest.java:64)
        at drools.ejemplos.DroolsTest.<init>(DroolsTest.java:56)
        at drools.ejemplos.Activator.start(Activator.java:14)
        at org.knopflerfish.framework.BundleImpl.start0(BundleImpl.java:356)
        at org.knopflerfish.framework.BundleThread.run(BundleThread.java:107)


**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster at nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************




More information about the rules-users mailing list