<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">you’ll need kie-ci on the class path, and don’t forget to create your settings.xml<div><a href="http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/KIEChapter.html#KIEDeployingSection">http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/KIEChapter.html#KIEDeployingSection</a></div><div><br></div><div>Mark<br><div><div>On 31 Mar 2014, at 23:28, Jean-Philippe Steinmetz &lt;<a href="mailto:caskater47@gmail.com">caskater47@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hello,<div><br></div><div>I am trying to set up a simple Drools (6.0.1.Final) application that pulls a kmodule from an external jar that is installed in the local Maven repository. Unfortunately when my code executes the newKieContainer method it crashes with a NullPointerException.</div>

<div><br></div><div>Here is my code...</div><div><br></div><div><div>&nbsp; &nbsp; KieServices kieServices = KieServices.Factory.get();</div><div>&nbsp; &nbsp; ReleaseId releaseId = kieServices.newReleaseId("com.mycompany", "mymodule", "1.0-SNAPSHOT");</div>

<div>&nbsp; &nbsp; KieContainer kContainer = kieServices.newKieContainer(releaseId);</div></div><div><br></div><div>And here is the output I get...</div><div><br></div><div><div>[pool-1-thread-1] INFO com.ning.http.client.providers.netty.NettyAsyncHttpProvider - Number of application's worked threads is 16</div>

<div>[pool-3-thread-1] INFO com.ning.http.client.providers.netty.NettyAsyncHttpProvider - Number of application's worked threads is 16</div><div>[pool-5-thread-1] INFO com.ning.http.client.providers.netty.NettyAsyncHttpProvider - Number of application's worked threads is 16</div>

<div>[pool-7-thread-1] INFO com.ning.http.client.providers.netty.NettyAsyncHttpProvider - Number of application's worked threads is 16</div><div>[pool-9-thread-1] INFO com.ning.http.client.providers.netty.NettyAsyncHttpProvider - Number of application's worked threads is 16</div>

<div>[pool-11-thread-1] INFO com.ning.http.client.providers.netty.NettyAsyncHttpProvider - Number of application's worked threads is 16</div><div>[pool-13-thread-1] INFO com.ning.http.client.providers.netty.NettyAsyncHttpProvider - Number of application's worked threads is 16</div>

<div>[pool-15-thread-1] INFO com.ning.http.client.providers.netty.NettyAsyncHttpProvider - Number of application's worked threads is 16</div><div>[pool-17-thread-1] INFO com.ning.http.client.providers.netty.NettyAsyncHttpProvider - Number of application's worked threads is 16</div>

<div>Disconnected from the target VM, address: '<a href="http://127.0.0.1:51890/">127.0.0.1:51890</a>', transport: 'socket'</div><div>Exception in thread "main" java.lang.NullPointerException</div>

<div><span class="" style="white-space:pre">        </span>at org.kie.scanner.KieRepositoryScannerImpl.addDependencies(KieRepositoryScannerImpl.java:128)</div><div><span class="" style="white-space:pre">        </span>at org.kie.scanner.KieRepositoryScannerImpl.buildArtifact(KieRepositoryScannerImpl.java:119)</div>

<div><span class="" style="white-space:pre">        </span>at org.kie.scanner.KieRepositoryScannerImpl.loadArtifact(KieRepositoryScannerImpl.java:90)</div><div><span class="" style="white-space:pre">        </span>at org.kie.scanner.KieRepositoryScannerImpl.loadArtifact(KieRepositoryScannerImpl.java:83)</div>

<div><span class="" style="white-space:pre">        </span>at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.loadKieModuleFromMavenRepo(KieRepositoryImpl.java:113)</div><div><span class="" style="white-space:pre">        </span>at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:99)</div>

<div><span class="" style="white-space:pre">        </span>at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:76)</div><div><span class="" style="white-space:pre">        </span>at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:84)</div>

</div><div><br></div><div>The module has the following dependencies listed in the pom.xml.</div><div><br></div><div>&lt;dependencies&gt;</div><div>&nbsp; &nbsp; &lt;!-- Drools --&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;dependency&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;groupId&gt;org.drools&lt;/groupId&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifactId&gt;drools-core&lt;/artifactId&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;version&gt;${drools.version}&lt;/version&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;scope&gt;compile&lt;/scope&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;/dependency&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &lt;dependency&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;groupId&gt;org.drools&lt;/groupId&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifactId&gt;drools-compiler&lt;/artifactId&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;version&gt;${drools.version}&lt;/version&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;scope&gt;compile&lt;/scope&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;/dependency&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;dependency&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;groupId&gt;org.drools&lt;/groupId&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifactId&gt;drools-decisiontables&lt;/artifactId&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;version&gt;${drools.version}&lt;/version&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;scope&gt;compile&lt;/scope&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;/dependency&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;dependency&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;groupId&gt;org.drools&lt;/groupId&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifactId&gt;drools-persistence-jpa&lt;/artifactId&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;version&gt;${drools.version}&lt;/version&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;scope&gt;compile&lt;/scope&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;/dependency&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &lt;!-- Misc --&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;dependency&gt;</div><div><span class="" style="white-space:pre">        </span> &nbsp;&lt;groupId&gt;org.slf4j&lt;/groupId&gt;</div><div><span class="" style="white-space:pre">        </span> &nbsp;&lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;</div>

<div><span class="" style="white-space:pre">        </span> &nbsp;&lt;version&gt;1.7.6&lt;/version&gt;</div><div><span class="" style="white-space:pre">        </span>&lt;/dependency&gt;</div><div>&nbsp; &nbsp; &lt;dependency&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;groupId&gt;junit&lt;/groupId&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &lt;artifactId&gt;junit&lt;/artifactId&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;version&gt;3.8.1&lt;/version&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;scope&gt;test&lt;/scope&gt;</div><div>&nbsp; &nbsp; &lt;/dependency&gt;</div><div>&lt;/dependencies&gt;</div>

<div><br></div><div>I have tried searching for help on this but am unable to find anything related. Any help here is appreciated.</div><div><br></div><div>Thanks!</div><div><br></div><div>Jean-Philippe Steinmetz</div></div>

_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-users</blockquote></div><br></div></body></html>