<br><tt><font size=2>Hi,</font></tt>
<br>
<br><tt><font size=2>I have set all the jars file in the classpath, but
still m getting the <br>
same exception.<br>
The exception is caused by : Null pointer exception. <br>
I am not able to understand why it is giving me this exception, while in
<br>
the mailing list I didn't found anybody having this<br>
exception, everyone else I found has 'Class Not found Exception'.</font></tt>
<br>
<br><tt><font size=2>&nbsp;<b><br>
This is my code snippet </b>:<br>
<br>
 KnowledgeBuilderConfiguration config = &nbsp;KnowledgeBuilderFactory.<br>
newKnowledgeBuilderConfiguration(); <br>
 config.setProperty(&quot;drools.dialect.java.compiler&quot;, &quot;ECLIPSE&quot;);
<br>
 KnowledgeBuilder kbuilder =KnowledgeBuilderFactory.newKnowledgeBuilder(
<br>
config ); <br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;//KnowledgeBuilder kbuilder = <br>
KnowledgeBuilderFactory.newKnowledgeBuilder();<br>
 &nbsp; &nbsp; &nbsp; &nbsp;kbuilder.add(ResourceFactory.newClassPathResource(<br>
&quot;shopingdiscount.drl&quot;), ResourceType.DRL);</font></tt>
<br>
<br>
<br>
<br><tt><font size=2><b>This is my exception:</b></font></tt>
<br><tt><font size=2>Drools config: unable to use the drools.compiler property.
Using default. It was set to:0</font></tt>
<br><tt><font size=2>org.drools.RuntimeDroolsException: Unable to load
dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:jav</font></tt>
<br><tt><font size=2>:org.drools.rule.builder.dialect.java.JavaDialectConfiguration'</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:274)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:259</font></tt>
<br>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:176)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.compiler.PackageBuilderConfiguration.&lt;init&gt;(PackageBuilderConfiguration.java:153)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.builder.impl.KnowledgeBuilderProviderImpl.newKnowledgeBuilderConfiguration(KnowledgeBuilderProviderImp</font></tt>
<br><tt><font size=2>.java:17)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(KnowledgeBuilderFactory.java:57)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; a &nbsp; &nbsp; &nbsp;
&nbsp;</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; </font></tt>
<br><tt><font size=2><b>Caused by: java.lang.NullPointerException</b></font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler(JavaDialectConfiguration.java:92)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:55)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:270)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; ... 69 more</font></tt>
<br><tt><font size=2><br>
</font></tt>
<br>
<br>
<br><tt><font size=2><br>
Am I missing anything that is to initialized , so that I can get through
<br>
this Null Pointer Exception.<br>
<br>
Please help me to through of this situation. I am stuck in this.<br>
<br>
Thanks &amp; Regards<br>
Pardeep Ruhil<br>
</font></tt>

<BR>
______________________________________________________________________<BR>