[ mx4j-Bugs-1176891 ] ConcurrentModificationException in DefaultMBeanRepository

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Bugs item #1176891, was opened at 2005-04-05 10:48
Message generated for change (Comment added) made by simonebordet
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1176891&group_id=47745

Category: JMX implementation
>Group: Release 3.0.1
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Simone Bordet (simonebordet)
Summary: ConcurrentModificationException in DefaultMBeanRepository

Initial Comment:
Using Tomcat 5.0.5 I got the following MX4J stacktrace:
5-apr-2005 10:42:26
org.apache.coyote.tomcat5.MapperListener init
WARNING: Error registering contexts
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:136)
	at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1510)
	at
org.apache.catalina.core.StandardService.start(StandardService.java:485)
	at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
	at
org.apache.catalina.startup.Catalina.start(Catalina.java:556)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
	at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
5-apr-2005 10:42:26
org.apache.catalina.startup.Catalina start
INFO: Server startup in 41172 ms


Looks like the clone() method needs some
synchronization. Just my $0.05

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

>Comment By: Simone Bordet (simonebordet)
Date: 2005-04-05 16:28

Message:
Logged In: YES 
user_id=1170988

This bug was closed long time ago, see bug #1111695 and others.
Please update the $TOMCAT/bin/jmx.jar to the latest MX4J
version.
Rename mx4j.jar bundled with the latest MX4J distribution
into jmx.jar in the $TOMCAT/bin directory.
Tomcat 5 uses a very old release.

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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
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.