<p>StatefulSessions are not thread safe.</p>
<p><blockquote type="cite">El ago 26, 2010 9:23 a.m., &quot;Burak Aydin&quot; &lt;<a href="mailto:burak.aydin@obss.com.tr">burak.aydin@obss.com.tr</a>&gt; escribió:<br><br>Hello,<br clear="all"><br><div>While trying to open stateful session in a 32 core machine and 35 threads, all of the threads hangs. Below is the stack trace. <span style="font-family:&#39;Courier New&#39;;font-size:13px;border-collapse:collapse">ChainedProperties class seems to be thread-unsafe??</span></div>

<div><br></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="font-size:10pt;font-family:&#39;Courier New&#39;">gridgain-#13%null%&quot; - Thread t@64</span></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="font-size:10pt;font-family:&#39;Courier New&#39;">   java.lang.Thread.State: RUNNABLE</span></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:806)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:765)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:735)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at sun.misc.URLClassPath$1.next(URLClassPath.java:196)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:206)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at java.net.URLClassLoader$3$1.run(URLClassLoader.java:416)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at java.security.AccessController.doPrivileged(Native Method)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at java.net.URLClassLoader$3.next(URLClassLoader.java:413)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at java.net.URLClassLoader$3.hasMoreElements(URLClassLoader.java:438)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:27)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:36)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:27)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:36)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:27)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:36)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at org.drools.util.ChainedProperties.loadProperties(ChainedProperties.java:232)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at org.drools.util.ChainedProperties.(ChainedProperties.java:112)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at org.drools.util.ChainedProperties.(ChainedProperties.java:41)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at org.drools.util.ChainedProperties.(ChainedProperties.java:35)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at org.drools.SessionConfiguration.init(SessionConfiguration.java:131)</span></p>

<div style="color:rgb(80, 0, 80)"><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at org.drools.SessionConfiguration.(SessionConfiguration.java:112)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at org.drools.impl.KnowledgeBaseImpl.newStatefulKnowledgeSession(KnowledgeBaseImpl.java:134)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at texan.qset.service.QsetService.executeQset(QsetService.java:72)</span></p>

</div><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at texan.qset.service.QsetService.executeQset(QsetService.java:34)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at texan.crop.service.ProductPostingService.processQSet(ProductPostingService.java:600)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at texan.crop.service.ProductPostingService.processQSets(ProductPostingService.java:582)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at texan.crop.service.ProductPostingService.createOrUpdateProduct(ProductPostingService.java:562)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at texan.crop.service.ProductPostingService.postingProcess(ProductPostingService.java:181)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at texan.crop.service.ProductPostingService.productPostingProcess_aroundBody0(ProductPostingService.java:85)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at texan.crop.service.ProductPostingService$AjcClosure1.run(ProductPostingService.java:1)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at org.aspectj.runtime.reflect.JoinPointImpl.proceed(Unknown Source)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at falez.runtime.aop.FalezTransactionalAspect$4.proceed(FalezTransactionalAspect.java:176)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at falez.runtime.aop.FalezTransactionalAspect.advice(FalezTransactionalAspect.java:215)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at falez.runtime.aop.TexanTransactionalAspect.ajc$inlineAccessMethod$falez_runtime_aop_TexanTransactionalAspect$falez_runtime_aop_FalezTransactionalAspect$advice(TexanTransactionalAspect.java:1)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at falez.runtime.aop.TexanTransactionalAspect.around(TexanTransactionalAspect.java:26)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at texan.crop.service.ProductPostingService.productPostingProcess(ProductPostingService.java:80)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at texan.crop.batch.grid.ProductPostingBatch.doCifProcess(ProductPostingBatch.java:45)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        - locked texan.crop.batch.grid.ProductPostingBatch@@<a style="color:rgb(6, 88, 181)">10880</a></span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at texan.crop.batch.grid.ProductPostingBatch.doProcess(ProductPostingBatch.java:37)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at falez.runtime.batch.AbstractBatchOperation.doProcess(AbstractBatchOperation.java:209)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at texan.crop.batch.grid.ProductPostingBatch.doProcess_aroundBody0(ProductPostingBatch.java:29)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at texan.crop.batch.grid.ProductPostingBatch$AjcClosure1.run(ProductPostingBatch.java:1)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at org.aspectj.runtime.reflect.JoinPointImpl.proceed(Unknown Source)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at falez.runtime.aop.FalezTransactionalAspect$4.proceed(FalezTransactionalAspect.java:176)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at falez.runtime.aop.FalezTransactionalAspect.advice(FalezTransactionalAspect.java:215)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at falez.runtime.aop.TexanTransactionalAspect.ajc$inlineAccessMethod$falez_runtime_aop_TexanTransactionalAspect$falez_runtime_aop_FalezTransactionalAspect$advice(TexanTransactionalAspect.java:1)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at falez.runtime.aop.TexanTransactionalAspect.around(TexanTransactionalAspect.java:26)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at texan.crop.batch.grid.ProductPostingBatch.doProcess(ProductPostingBatch.java:28)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at falez.runtime.batch.AbstractBatchOperation.process(AbstractBatchOperation.java:76)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at falez.runtime.batch.BatchProcessingTask$BatchProcessingJob.doExecute(BatchProcessingTask.java:89)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at falez.runtime.batch.BatchProcessingTask$BatchProcessingJob.execute(BatchProcessingTask.java:76)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at falez.runtime.batch.BatchProcessingTask$BatchProcessingJob.execute(BatchProcessingTask.java:1)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at org.gridgain.grid.kernal.processors.job.GridJobWorker.body(GridJobWorker.java:406)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at org.gridgain.grid.util.runnable.GridRunnable$1.run(GridRunnable.java:142)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at java.util.concurrent.FutureTask.run(FutureTask.java:138)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at org.gridgain.grid.util.runnable.GridRunnable.run(GridRunnable.java:194)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</span></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-size:10pt;font-family:&#39;Courier New&#39;">        at java.lang.Thread.run(Thread.java:619)</span></p>
</span></div><div><br>-- <br>Burak AYDIN<br>Senior Software Engineer<br>OBSS<br>-------------------------------------<br>9433 @YKB<br>
</div>
<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>
<br></blockquote></p>