geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: ConcurrentModificationException while starting AG1.1
Date Mon, 08 May 2006 21:30:24 GMT
I've opened
http://issues.apache.org/bugzilla/show_bug.cgi?id=39521

for this and I wrote a patch to possibly fix it.  I'm going to push a  
private jar for this and set up the g. build to use it.

I also opened http://issues.apache.org/jira/browse/GERONIMO-1999 for  
us to track this problem

thanks
david jencks



On May 8, 2006, at 3:33 AM, Phani Madgula wrote:

> Hi,
>
> I am getting the following exception, quite unfrequently, may be once
> in 25 times, while starting AG1.1
>
> jvm 1    | 08:24:25,762 ERROR [Registry] Error registering  
> Geronimo:type=Request
> Processor,worker=http-localhost%2F127.0.0.1-8453,name=HttpRequest0
> jvm 1    | java.util.ConcurrentModificationException: concurrent  
> access to HashM
> ap attempted by Thread[http-localhost%2F127.0.0.1-8453- 
> Processor25,5,main]
> jvm 1    |      at java.util.HashMap.onEntry(HashMap.java:205)
> jvm 1    |      at java.util.HashMap.transfer(HashMap.java:510)
> jvm 1    |      at java.util.HashMap.resize(HashMap.java:500)
> jvm 1    |      at java.util.HashMap.addEntry(HashMap.java:800)
> jvm 1    |      at java.util.HashMap.put(HashMap.java:441)
> jvm 1    |      at  
> org.apache.commons.modeler.Registry.addManagedBean(Registry.j
> ava:457)
> jvm 1    |      at  
> org.apache.commons.modeler.Registry.loadDescriptors(Registry.
> java:938)
> jvm 1    |      at  
> org.apache.commons.modeler.Registry.findManagedBean(Registry.
> java:719)
> jvm 1    |      at  
> org.apache.commons.modeler.Registry.findManagedBean(Registry.
> java:1047)
> jvm 1    |      at  
> org.apache.commons.modeler.Registry.registerComponent(Registr
> y.java:859)
> jvm 1    |      at org.apache.coyote.http11.Http11Protocol 
> $JmxHttp11ConnectionHa
> ndler.init(Http11Protocol.java:175)
> jvm 1    |      at  
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.getInit
> Data(LeaderFollowerWorkerThread.java:48)
> jvm 1    |      at org.apache.tomcat.util.threads.ThreadPool 
> $ControlRunnable.run
> (ThreadPool.java:686)
> jvm 1    |      at java.lang.Thread.run(Thread.java:797)
> jvm 1    | 08:24:25,762 ERROR [Registry] Error loading jar:file:/D:/ 
> ccviews/d_sj
> c_tk4s_f5887_pathfinder_wasce_only/v3tools/thirdparty/was_ce/test/ 
> was-ce-1.1.0/r
> epository/tomcat/tomcat-ajp/5.5.15/tomcat-ajp-5.5.15.jar!/org/ 
> apache/jk/mbeans-d
> escriptors.xml
> jvm 1    | 08:24:25,762 WARN  [Http11BaseProtocol] Error  
> registering request
>
>
> I saw that the Registry class is not thread-safe. In the method,
> Http11Protocol:JmxHttp11ConnectionHandler:init()
> there is a call to Registry.getRegistry(null, null).registerComponent(
> rp, rpName, null)
>
> Should this be synchronized to resolve the problem?
>
> Can we synchronize it? Any suggestions?
>
> Regards
> phani


Mime
View raw message