<div dir="ltr"><br>&nbsp;&nbsp; If you are running 4.0.7 and using the proper MVEL dependecy lib, you should not be facing any concurrency problem, assuming you are sharing the rulebase but not the session.<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br>
<br><div class="gmail_quote">2008/9/4 toddp2 <span dir="ltr">&lt;<a href="mailto:tpatch@loftware.com">tpatch@loftware.com</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;">
<br>
<br>
I ran into the same issue running JMeter recently. &nbsp;I am getting the same<br>
stack trace. &nbsp;I checked my version and I am using 4.0.7 of Drools. &nbsp;Was this<br>
resolved by going to 4.0.7 for you? &nbsp;Is there anything else to check?<br>
<br>
Todd<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
<br>
<br>
 &nbsp; You must update to <a href="http://4.0.7." target="_blank">4.0.7.</a> You are probably facing the issues we had in<br>
<a href="http://4.0.3." target="_blank">4.0.3.</a><br>
<br>
 &nbsp; []s<br>
 &nbsp; Edson<br>
<br>
2008/5/7 Barath &lt;<a href="mailto:barathguna@gmail.com">barathguna@gmail.com</a>&gt;:<br>
<br>
&gt;<br>
&gt; Edson,<br>
&gt; I am using &nbsp;4.0.3 version.<br>
&gt;<br>
&gt; In my code,<br>
&gt; &nbsp;* For each thread new rule base and StatefulSession is created.<br>
&gt; &nbsp;* Then why i am getting the previously mentioned exceptions(which i<br>
&gt; posted<br>
&gt; in the first message) for few &nbsp; &nbsp;threads only while other works fine.<br>
&gt; &nbsp;* Your suggestions please,<br>
&gt; &nbsp; &nbsp; &quot; 1 . Am i getting this error bcoz of the global list? or any other<br>
&gt; reason?<br>
&gt; &nbsp; &nbsp; &nbsp;2 . How to solve this problem?&quot;<br>
&gt;<br>
&gt; ~Barath.<br>
&gt;<br>
&gt;<br>
&gt; Edson Tirelli-3 wrote:<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp;Barath,<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp;What version of drools are you using?<br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp;The drools rulebase is designed to be shared among multiple threads.<br>
&gt; &gt; The<br>
&gt; &gt; working memory (session) is not.<br>
&gt; &gt; &nbsp; &nbsp;Having said that, we had a couple bugs in the past regarding<br>
&gt; &gt; multi-thread<br>
&gt; &gt; environments, and so you must use 4.0.7 version that is about to be<br>
&gt; &gt; released. For you test, while you wait for the official release, you can<br>
&gt; &gt; checkout the code and built it from here:<br>
&gt; &gt;<br>
&gt; &gt; <a href="http://anonsvn.labs.jboss.com/labs/jbossrules/branches/4.0.x/" target="_blank">http://anonsvn.labs.jboss.com/labs/jbossrules/branches/4.0.x/</a><br>
&gt; &gt;<br>
&gt; &gt; &nbsp; &nbsp;[]s<br>
&gt; &gt; &nbsp; &nbsp;Edson<br>
&gt; &gt;<br>
&gt; &gt; 2008/5/5 Barath &lt;<a href="mailto:barathguna@gmail.com">barathguna@gmail.com</a>&gt;:<br>
<br>
</div></div><font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/Can-i-use-drools-in-multithreaded-environment--tp17053936p19310976.html" target="_blank">http://www.nabble.com/Can-i-use-drools-in-multithreaded-environment--tp17053936p19310976.html</a><br>

</font><div><div></div><div class="Wj3C7c">Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>