<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=RU link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>I have already
mentioned this issue previously here (see
http://n3.nabble.com/Mvel-and-multithreading-td50133.html)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Maybe I have
described the problem not detailed enough.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>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 &#8222;questions&#8220; about drools&#8230; please help! </span></font><font
size=2 color="#1f497d" face=Wingdings><span lang=DE style='font-size:11.0pt;
font-family:Wingdings;color:#1F497D'>J</span></font><font size=2 color="#1f497d"
face=Calibri><span lang=EN-US style='font-size:11.0pt;font-family:Calibri;
color:#1F497D'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>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.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Actually the
problem:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>At the initializing
phase occurs an org.mvel2.CompileException exception from time to time at
KnowledgeBuilder.add(&#8230;):<o:p></o:p></span></font></p>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=DE
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

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

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

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#3f5fbf" face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#3F5FBF'>/**
</span></font><font size=2 face="Courier New"><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#3f5fbf" face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#3F5FBF'>&nbsp;*
<u>inits</u> the rule flow </span></font><font size=2 face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#3f5fbf" face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#3F5FBF'>&nbsp;*/</span></font><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal><b><font size=2 color="#7f0055" face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055;
font-weight:bold'>public</span></font></b><font size=2 color=black
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
color:black'> </span></font><b><font size=2 color="#7f0055" face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055;
font-weight:bold'>class</span></font></b><font size=2 color=black
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
color:black'> RuleFlowProcess {</span></font><font size=2 face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><b><font size=2 color="#7f0055" face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055;
font-weight:bold'>private</span></font></b><font size=2 color=black
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
color:black'> StatefulKnowledgeSession </span></font><font size=2
color="#0000c0" face="Courier New"><span lang=EN-US style='font-size:10.0pt;
font-family:"Courier New";color:#0000C0;background:yellow'>ksession</span></font><font
size=2 color=black face="Courier New"><span lang=EN-US style='font-size:10.0pt;
font-family:"Courier New";color:black'>;</span></font><font size=2
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><b><font size=2 color="#7f0055" face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055;
font-weight:bold'>public</span></font></b><font size=2 color=black
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
color:black'> </span></font><b><font size=2 color="#7f0055" face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055;
font-weight:bold'>void</span></font></b><font size=2 color=black
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
color:black'> init() {</span></font><font size=2 face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

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

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
kbuilder.add(ResourceFactory.<i><span style='font-style:italic'>newClassPathResource</span></i>(</span></font><font
size=2 color="#2a00ff" face="Courier New"><span lang=EN-US style='font-size:
10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;threadSafeTest.rf&quot;</span></font><font
size=2 color=black face="Courier New"><span lang=EN-US style='font-size:10.0pt;
font-family:"Courier New";color:black'>), ResourceType.</span></font><i><font
size=2 color="#0000c0" face="Courier New"><span lang=EN-US style='font-size:
10.0pt;font-family:"Courier New";color:#0000C0;font-style:italic'>DRF</span></font></i><font
size=2 color=black face="Courier New"><span lang=EN-US style='font-size:10.0pt;
font-family:"Courier New";color:black'>);</span></font><font size=2
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
kbuilder.add(ResourceFactory.<i><span style='font-style:italic'>newClassPathResource</span></i>(</span></font><font
size=2 color="#2a00ff" face="Courier New"><span lang=EN-US style='font-size:
10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;testRules1.drl&quot;</span></font><font
size=2 color=black face="Courier New"><span lang=EN-US style='font-size:10.0pt;
font-family:"Courier New";color:black'>), ResourceType.</span></font><i><font
size=2 color="#0000c0" face="Courier New"><span lang=EN-US style='font-size:
10.0pt;font-family:"Courier New";color:#0000C0;font-style:italic'>DRL</span></font></i><font
size=2 color=black face="Courier New"><span lang=EN-US style='font-size:10.0pt;
font-family:"Courier New";color:black'>);</span></font><font size=2
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
kbuilder.add(ResourceFactory.<i><span style='font-style:italic'>newClassPathResource</span></i>(</span></font><font
size=2 color="#2a00ff" face="Courier New"><span lang=EN-US style='font-size:
10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;testRules2.drl&quot;</span></font><font
size=2 color=black face="Courier New"><span lang=EN-US style='font-size:10.0pt;
font-family:"Courier New";color:black'>), ResourceType.</span></font><i><font
size=2 color="#0000c0" face="Courier New"><span lang=EN-US style='font-size:
10.0pt;font-family:"Courier New";color:#0000C0;font-style:italic'>DRL</span></font></i><font
size=2 color=black face="Courier New"><span lang=EN-US style='font-size:10.0pt;
font-family:"Courier New";color:black'>);</span></font><font size=2
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
kbuilder.add(ResourceFactory.<i><span style='font-style:italic'>newClassPathResource</span></i>(</span></font><font
size=2 color="#2a00ff" face="Courier New"><span lang=EN-US style='font-size:
10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;testRules3.drl&quot;</span></font><font
size=2 color=black face="Courier New"><span lang=EN-US style='font-size:10.0pt;
font-family:"Courier New";color:black'>), ResourceType.</span></font><i><font
size=2 color="#0000c0" face="Courier New"><span lang=EN-US style='font-size:
10.0pt;font-family:"Courier New";color:#0000C0;font-style:italic'>DRL</span></font></i><font
size=2 color=black face="Courier New"><span lang=EN-US style='font-size:10.0pt;
font-family:"Courier New";color:black'>);</span></font><font size=2
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
kbuilder.add(ResourceFactory.<i><span style='font-style:italic'>newClassPathResource</span></i>(</span></font><font
size=2 color="#2a00ff" face="Courier New"><span lang=EN-US style='font-size:
10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;testRules4.drl&quot;</span></font><font
size=2 color=black face="Courier New"><span lang=EN-US style='font-size:10.0pt;
font-family:"Courier New";color:black'>), ResourceType.</span></font><i><font
size=2 color="#0000c0" face="Courier New"><span lang=EN-US style='font-size:
10.0pt;font-family:"Courier New";color:#0000C0;font-style:italic'>DRL</span></font></i><font
size=2 color=black face="Courier New"><span lang=EN-US style='font-size:10.0pt;
font-family:"Courier New";color:black'>);</span></font><font size=2
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

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

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

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><b><font size=2 color="#7f0055" face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055;
font-weight:bold'>if</span></font></b><font size=2 color=black
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
color:black'> (errors.size() &gt; 0) {</span></font><font size=2
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
StringBuilder errorString = </span></font><b><font size=2 color="#7f0055"
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
color:#7F0055;font-weight:bold'>new</span></font></b><font size=2 color=black
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
color:black'> StringBuilder();</span></font><font size=2 face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><b><font size=2 color="#7f0055" face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055;
font-weight:bold'>for</span></font></b><font size=2 color=black
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
color:black'> (KnowledgeBuilderError error : errors) {</span></font><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New"'><o:p></o:p></span></font></p>

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

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

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><b><font size=2 color="#7f0055" face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055;
font-weight:bold'>throw</span></font></b><font size=2 color=black
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
color:black'> </span></font><b><font size=2 color="#7f0055" face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055;
font-weight:bold'>new</span></font></b><font size=2 color=black
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
color:black'> RuntimeException(errorString.toString());</span></font><font
size=2 face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New"'><o:p></o:p></span></font></p>

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

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

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

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

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><font size=2 color="#0000c0" face="Courier New"><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New";color:#0000C0;background:
yellow'>ksession</span></font><font size=2 color=black face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'> =
kbase.newStatefulKnowledgeSession();</span></font><font size=2
face="Courier New"><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

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

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>&#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>}<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

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

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>I have run this
project on two PCs:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>core 2 duo @ 2.6
ghz, win xp prof sp3, sun jdk 1.6.0_17<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Pentium Dual CPU
E2160 @ 1.8GHz, XP prof SP3, sun jdk 1.6.0_16.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Could you please
help us to clear this problem? Are we doing here something wrong?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>If it should be an
drools error, could you please create an issue for it?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=DE
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Thanks!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=DE
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=DE
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Wbr,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span lang=DE
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Grigoriy Grigoriev<o:p></o:p></span></font></p>

</div>

</body>

</html>