Leaving the issue of thread safety aside, I wonder why it should be necessary to<br>build the same KnowledgeBase 200 times? I&#39;d say you are wasting a lot of cycles.<br><br>It ought to be possible to derive many independent (and concurrent) sessions from one kbase.<br>
<br>-W<br><br><br><div class="gmail_quote">
2009/12/15 Grigoriev, Grigoriy <span dir="ltr">&lt;<a href="mailto:Grigoriy.Grigoriev@t-systems.ru" target="_blank">Grigoriy.Grigoriev@t-systems.ru</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">










<div link="blue" vlink="purple" lang="RU">

<div>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">I have already
mentioned this issue previously here (see
<a href="http://n3.nabble.com/Mvel-and-multithreading-td50133.html" target="_blank">http://n3.nabble.com/Mvel-and-multithreading-td50133.html</a>)</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US"> </span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">Maybe I have
described the problem not detailed enough.</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US"> </span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">We are using Drools
version 5.0.1 and have a concrete problem with it in our production
environment. Our customer looks already interrogative at the developer team and
have „questions“ about drools… please help! </span></font><font size="2" color="#1f497d" face="Wingdings"><span style="font-size: 11pt; font-family: Wingdings; color: rgb(31, 73, 125);" lang="DE">J</span></font><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US"> </span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">Let us assume a
multithreaded application, that tries to initialise &amp; start several
processes using a StatefulKnowledgeSession in order to use in these processes
rule flow. The flow in all the processes is the same but every process instance
must have an own StatefulKnowledgeSession instance because of stateful session.</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US"> </span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">Actually the
problem:</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">At the initializing
phase occurs an org.mvel2.CompileException exception from time to time at
KnowledgeBuilder.add(…):</span></font></p>

<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">Exception in thread &quot;Thread-60&quot; [Error: incomplete
statement:  (possible use of reserved keyword as identifier: )]</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">[Near : {... globals != empt ....}]</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">                     
^</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">[Line: 0, Column: 0]</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.MVELInterpretedRuntime.parseAndExecuteInterpreted(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">MVELInterpretedRuntime.java:153</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.MVELInterpretedRuntime.parse(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">MVELInterpretedRuntime.java:44</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at org.mvel2.MVEL.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">MVEL.java:514</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.IfNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">IfNode.java:61</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.TextNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TextNode.java:46</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.TerminalNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TerminalNode.java:39</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.ForEachNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">ForEachNode.java:116</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.TextNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TextNode.java:46</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.TerminalNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TerminalNode.java:39</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.IfNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">IfNode.java:64</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.TextNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TextNode.java:46</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.ExpressionNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">ExpressionNode.java:53</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.TextNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TextNode.java:46</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at org.mvel2.templates.TemplateRuntime.execute(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TemplateRuntime.java:195</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.TemplateRuntime.execute(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TemplateRuntime.java:190</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.TemplateRuntime.execute(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TemplateRuntime.java:180</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.TemplateRuntime.execute(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TemplateRuntime.java:169</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.drools.rule.builder.dialect.java.AbstractJavaRuleBuilder.generatTemplates(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">AbstractJavaRuleBuilder.java:126</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.drools.rule.builder.dialect.java.JavaConsequenceBuilder.build(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">JavaConsequenceBuilder.java:128</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.drools.rule.builder.RuleBuilder.build(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">RuleBuilder.java:86</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.drools.compiler.PackageBuilder.addRule(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">PackageBuilder.java:1159</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.drools.compiler.PackageBuilder.addPackage(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">PackageBuilder.java:649</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at org.drools.compiler.PackageBuilder.addPackageFromDrl(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">PackageBuilder.java:290</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.drools.compiler.PackageBuilder.addKnowledgeResource(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">PackageBuilder.java:488</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.drools.builder.impl.KnowledgeBuilderImpl.add(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">KnowledgeBuilderImpl.java:25</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at com.myfirm.RuleFlowProcess.init(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">RuleFlowProcess.java:25</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at com.myfirm.RuleFlowProcess.clone(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">RuleFlowProcess.java:53</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
com.myfirm.ThreadTest$CloneThread.run(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">ThreadTest.java:35</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">Caused by: </span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">java.lang.NullPointerException</span></font></u><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at org.mvel2.MVELInterpretedRuntime.parseAndExecuteInterpreted(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">MVELInterpretedRuntime.java:113</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      ... 27 more</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">Exception in thread &quot;Thread-72&quot; [Error: incomplete
statement:  (possible use of reserved keyword as identifier: )]</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">[Near : {... declarations != empt ....}]</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">                          
^</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">[Line: 0, Column: 0]</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.MVELInterpretedRuntime.parseAndExecuteInterpreted(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">MVELInterpretedRuntime.java:153</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.MVELInterpretedRuntime.parse(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">MVELInterpretedRuntime.java:44</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at org.mvel2.MVEL.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">MVEL.java:514</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.IfNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">IfNode.java:61</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.TextNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TextNode.java:46</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.ExpressionNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">ExpressionNode.java:53</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at org.mvel2.templates.res.TextNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TextNode.java:46</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.ExpressionNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">ExpressionNode.java:53</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.TextNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TextNode.java:46</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.TerminalNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TerminalNode.java:39</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.ForEachNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">ForEachNode.java:116</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.TextNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TextNode.java:46</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.TerminalNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TerminalNode.java:39</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at org.mvel2.templates.res.ForEachNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">ForEachNode.java:116</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.TextNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TextNode.java:46</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.ExpressionNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">ExpressionNode.java:53</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.TextNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TextNode.java:46</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at org.mvel2.templates.res.ExpressionNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">ExpressionNode.java:53</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.res.TextNode.eval(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TextNode.java:46</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.TemplateRuntime.execute(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TemplateRuntime.java:195</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at org.mvel2.templates.TemplateRuntime.execute(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TemplateRuntime.java:190</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.TemplateRuntime.execute(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TemplateRuntime.java:180</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.templates.TemplateRuntime.execute(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">TemplateRuntime.java:169</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at org.drools.rule.builder.dialect.java.AbstractJavaRuleBuilder.generatTemplates(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">AbstractJavaRuleBuilder.java:135</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.drools.rule.builder.dialect.java.JavaConsequenceBuilder.build(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">JavaConsequenceBuilder.java:128</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at org.drools.rule.builder.RuleBuilder.build(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">RuleBuilder.java:86</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.drools.compiler.PackageBuilder.addRule(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">PackageBuilder.java:1159</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.drools.compiler.PackageBuilder.addPackage(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">PackageBuilder.java:649</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.drools.compiler.PackageBuilder.addPackageFromDrl(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">PackageBuilder.java:290</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.drools.compiler.PackageBuilder.addKnowledgeResource(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">PackageBuilder.java:488</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.drools.builder.impl.KnowledgeBuilderImpl.add(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">KnowledgeBuilderImpl.java:25</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at com.myfirm.RuleFlowProcess.init(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">RuleFlowProcess.java:25</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at com.myfirm.RuleFlowProcess.clone(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">RuleFlowProcess.java:53</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
com.myfirm.ThreadTest$CloneThread.run(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">ThreadTest.java:35</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">Caused by: </span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">java.lang.NullPointerException</span></font></u><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal" style="margin-left: 35.4pt;"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">      at
org.mvel2.MVELInterpretedRuntime.parseAndExecuteInterpreted(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;" lang="EN-US">MVELInterpretedRuntime.java:113</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">)</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="EN-US">     
</span></font><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;">... 33 more</span></font><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;" lang="DE"></span></font></p>



<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="DE"> </span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">To demonstrate this
problem I have created a simple test maven project that reproduces this error
(s. attach):</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">I have a class that
creates &amp; inits stateful knowledge session in a init method (RuleFlowProcess):</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US"> </span></font></p>

<p class="MsoNormal"><font size="2" color="#3f5fbf" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 95, 191);" lang="EN-US">/**
</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal"><font size="2" color="#3f5fbf" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 95, 191);" lang="EN-US"> *
<u>inits</u> the rule flow </span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal"><font size="2" color="#3f5fbf" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 95, 191);" lang="EN-US"> */</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85); font-weight: bold;" lang="EN-US">public</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85); font-weight: bold;" lang="EN-US">class</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> RuleFlowProcess {</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">     
</span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85); font-weight: bold;" lang="EN-US">private</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> StatefulKnowledgeSession </span></font><font size="2" color="#0000c0" face="Courier New"><span style="background: yellow none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192);" lang="EN-US">ksession</span></font><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">;</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">     
</span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85); font-weight: bold;" lang="EN-US">public</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85); font-weight: bold;" lang="EN-US">void</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> init() {</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">           
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.<i><span style="font-style: italic;">newKnowledgeBuilder</span></i>();</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">           
kbuilder.add(ResourceFactory.<i><span style="font-style: italic;">newClassPathResource</span></i>(</span></font><font size="2" color="#2a00ff" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">&quot;threadSafeTest.rf&quot;</span></font><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">), ResourceType.</span></font><i><font size="2" color="#0000c0" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192); font-style: italic;" lang="EN-US">DRF</span></font></i><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">);</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">           
kbuilder.add(ResourceFactory.<i><span style="font-style: italic;">newClassPathResource</span></i>(</span></font><font size="2" color="#2a00ff" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">&quot;testRules1.drl&quot;</span></font><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">), ResourceType.</span></font><i><font size="2" color="#0000c0" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192); font-style: italic;" lang="EN-US">DRL</span></font></i><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">);</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">           
kbuilder.add(ResourceFactory.<i><span style="font-style: italic;">newClassPathResource</span></i>(</span></font><font size="2" color="#2a00ff" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">&quot;testRules2.drl&quot;</span></font><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">), ResourceType.</span></font><i><font size="2" color="#0000c0" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192); font-style: italic;" lang="EN-US">DRL</span></font></i><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">);</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">           
kbuilder.add(ResourceFactory.<i><span style="font-style: italic;">newClassPathResource</span></i>(</span></font><font size="2" color="#2a00ff" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">&quot;testRules3.drl&quot;</span></font><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">), ResourceType.</span></font><i><font size="2" color="#0000c0" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192); font-style: italic;" lang="EN-US">DRL</span></font></i><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">);</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">           
kbuilder.add(ResourceFactory.<i><span style="font-style: italic;">newClassPathResource</span></i>(</span></font><font size="2" color="#2a00ff" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">&quot;testRules4.drl&quot;</span></font><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">), ResourceType.</span></font><i><font size="2" color="#0000c0" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192); font-style: italic;" lang="EN-US">DRL</span></font></i><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">);</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">           
</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">           
KnowledgeBuilderErrors errors = kbuilder.getErrors();</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">           
</span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85); font-weight: bold;" lang="EN-US">if</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> (errors.size() &gt; 0) {</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">                 
StringBuilder errorString = </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85); font-weight: bold;" lang="EN-US">new</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> StringBuilder();</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">                 
</span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85); font-weight: bold;" lang="EN-US">for</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> (KnowledgeBuilderError error : errors) {</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">                       
errorString.append(error);</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">                 
}</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">                 
</span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85); font-weight: bold;" lang="EN-US">throw</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85); font-weight: bold;" lang="EN-US">new</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> RuntimeException(errorString.toString());</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">           
}</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">           
</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">           
KnowledgeBase kbase = KnowledgeBaseFactory.<i><span style="font-style: italic;">newKnowledgeBase</span></i>();</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>



<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">           
kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">           
</span></font><font size="2" color="#0000c0" face="Courier New"><span style="background: yellow none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192);" lang="EN-US">ksession</span></font><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> =
kbase.newStatefulKnowledgeSession();</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">     
}</span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">…</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">}</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US"> </span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">I create &amp; init
concurrently in several (200) threads this RuleFlowProcess and some threads
crash with this exceptions while adding the resources.</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US"> </span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">I have run this
project on two PCs:</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">core 2 duo @ 2.6
ghz, win xp prof sp3, sun jdk 1.6.0_17</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">Pentium Dual CPU
E2160 @ 1.8GHz, XP prof SP3, sun jdk 1.6.0_16.</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US"> </span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">Could you please
help us to clear this problem? Are we doing here something wrong?</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US">If it should be an
drools error, could you please create an issue for it?</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="EN-US"> </span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="DE">Thanks!</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="DE"> </span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="DE">Wbr,</span></font></p>

<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size: 11pt; font-family: Calibri; color: rgb(31, 73, 125);" lang="DE">Grigoriy Grigoriev</span></font></p>

</div>

</div>


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