You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/05/08 23:21:33 UTC

DO NOT REPLY [Bug 39521] New: - Registry insufficiently synchronized

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39521>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39521

           Summary: Registry insufficiently synchronized
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Modeler
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: djencks@apache.org


In geronimo we are seeing intermittent errors like this on startup:

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'm testing a patch which I will supply once I'm more confident that it works
properly.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39521] - [modeler] Registry insufficiently synchronized

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39521>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39521


gudnabrsam@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Registry insufficiently     |[modeler] Registry
                   |synchronized                |insufficiently synchronized




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39521] - [modeler] Registry insufficiently synchronized

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39521>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39521


dims@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From dims@yahoo.com  2006-05-24 15:00 -------
Applied patch.

thanks,
dims

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39521] - [modeler] Registry insufficiently synchronized

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39521>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39521





------- Additional Comments From djencks@apache.org  2006-05-24 07:44 -------
Created an attachment (id=18337)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18337&action=view)
Patch to Registry that appears to fix synchronization problems

This patch also cleans up the code a bit, making unchanging fields final,
removing unneeded return statements, etc.

Following the JIRA checkboxes, I grant Apache rights to include this patch in
the modeler codebase.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org