geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manu George" <manu.t.geo...@gmail.com>
Subject Re: ConcurrentModificationException while starting AG1.1
Date Mon, 08 May 2006 11:27:58 GMT
Hi ,
          Another Query regarding this issue to the experts. I find atleast
two different mbeans-descriptors.xml files for  commons-modeler to load,
catalina-5.5.15.jar and tomcat-ajp-5.5.15.jar has one each. Is this
occurring due to some problems in the sequence of loading gbeans since all
the gbeans are loaded in a single configuration?
 Also if there are many gbeans in a single configuration are they loaded in
the same sequence they are declared and in a single thread?

Regards
Manu

On 5/8/06, Phani Madgula <phanibalaji.madgula@gmail.com> 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