[ mx4j-Bugs-1068766 ] Race condition in Tomcat 5

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Bugs item #1068766, was opened at 2004-11-18 16:17
Message generated for change (Comment added) made by biorn_steedom
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1068766&group_id=47745

>Category: JMX implementation
>Group: Release 2.1.0
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Kurt Huwig (kurti)
>Assigned to: Simone Bordet (biorn_steedom)
>Summary: Race condition in Tomcat 5

Initial Comment:
I don't known if it is MX4J's fault, but you are the
first on the list:

java.util.ConcurrentModificationException
        at
java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
        at
java.util.HashMap$EntryIterator.next(HashMap.java:824)
        at
java.util.HashMap.putAllForCreate(HashMap.java:424)
        at java.util.HashMap.clone(HashMap.java:656)
        at
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)
        at
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:1603)
        at
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
        at
mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
        at
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
        at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1537)
        at
org.apache.catalina.startup.Embedded.start(Embedded.java:853)


----------------------------------------------------------------------

>Comment By: Simone Bordet (biorn_steedom)
Date: 2004-11-19 12:35

Message:
Logged In: YES 
user_id=128193

This bug has been fixed long time ago, see bug #859550.
Tomcat 5 ships by default MX4J 1.1.1, which is now very
outdated.
It's very simple to update Tomcat:
1. download MX4J 2.0.1 or later
2. take mx4j.jar
3. go to $TOMCAT/bin and rename the existing jmx.jar to
(e.g.) jmx.jar.original
4. copy mx4j.jar to $TOMCAT/bin
5. rename $TOMCAT/bin/mx4j.jar to $TOMCAT/bin/jmx.jar

That's it.

I have deployed this solution in one of my projects and have
no problems at all.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1068766&group_id=47745


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.