[jboss-jira] [JBoss JIRA] Reopened: (JBAS-4075) JBossCacheManager.findLocalSessions concurrency issue

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Thu Mar 22 16:51:34 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBAS-4075?page=all ]

Brian Stansberry reopened JBAS-4075:
------------------------------------

             
Reopening, as I see my fix for 4.2.0.CR1 wasn't correct

> JBossCacheManager.findLocalSessions concurrency issue
> -----------------------------------------------------
>
>                 Key: JBAS-4075
>                 URL: http://jira.jboss.com/jira/browse/JBAS-4075
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Clustering
>    Affects Versions: JBossAS-4.0.5.GA, JBossAS-5.0.0.Beta1, JBossAS-4.0.4.GA
>         Environment: SLES 9, SP3.
> JBOSS 4.0.5.GA
>            Reporter: Hany Mesha
>         Assigned To: Brian Stansberry
>             Fix For: JBossAS-4.2.0.CR1, JBossAS-4.0.5.SP1 , JBossAS-5.0.0.Beta2
>
>
> When running a load test on a JBoss Cluster I see the following exception
> 2007?02?06 14:23:58,231 ERROR
> [org.jboss.web.tomcat.tc5.session.JBossCacheManager:processExpires]
> processExpires: failed with exception: java.util.NoSuchElementException
> java.util.NoSuchElementException
>         at
> EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap$HashIterator.next(ConcurrentHashMap.java:1131)
>         at java.util.AbstractCollection.toArray(AbstractCollection.java:176)
>         at
> org.jboss.web.tomcat.tc5.session.JBossCacheManager.findLocalSessions(JBossCacheManager.java:851)
>         at
> org.jboss.web.tomcat.tc5.session.JBossCacheManager.processExpires(JBossCacheManager.java:1188)
>         at
> org.jboss.web.tomcat.tc5.session.JBossManager.backgroundProcess(JBossManager.java:817)
>         at
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1284)
>         at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569)
>         at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
>         at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
>         at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558)
>         at java.lang.Thread.run(Thread.java:595)
> Upon further investigation and looking at the source code of JBossCacheManager in 4.0 branch, the method findLocalSessions() suffers from concurrency issue when calling java.util.AbstractCollection.toArray(Object[] array) which is not thread safe.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list