Bugs item #544224, was opened at 2002-04-15 08:29
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=544224&group_id=22866

Category: JBossServer
Group: v2.4 (stable)
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Andrew Smallbone (andrewsmallbone)
>Assigned to: Scott M Stark (starksm)
Summary: ContainerFactory app map not thread safe

Initial Comment:
jboss 2.4.* (including 2.4.5RC1), jdk1.3.1_03, w2K

Problem:
An occasional error (1 in about 2/3 runs) during 
jboss start, jboss continues as normal but exception
(see end) scares our users.  Very hard to replicate
with debug logging turned on.

Caused by?:
org.jboss.naming.JNDI.listXML is receiving a
ConcurrentModificationException when it uses an
iterator for the unsynchronized HashMap returned by
org.jboss.ejb.ContainerFactory.getDeployedApplications
()
(presumably because applications are still being
deployed and the hashmap is being modified by another
thread?)

StackTrace:
[Default] javax.management.RuntimeMBeanException: 
RuntimeException thrown in operation listXML
[Default]       at 
com.sun.management.jmx.MBeanServerImpl.invoke
(MBeanServerImpl.java:1640)
[Default]
[Default]       at 
com.sun.management.jmx.MBeanServerImpl.invoke
(MBeanServerImpl.java:1523)
[Default]
[Default]       at 
org.jboss.management.JNDIDataCollector.refresh
(JNDIDataCollector.java:64)
[Default]
[Default]       at 
org.jboss.management.ServerDataCollector$RefreshWorker.
doRefresh(ServerDataCollector.java:337)
[Default]
[Default]       at 
org.jboss.management.ServerDataCollector$RefreshWorker.
run(ServerDataCollector.java:293)


Catching exception in JNDIView.listXML():
[Default] java.util.ConcurrentModificationException
[Default]       at java.util.HashMap$HashIterator.next
(Unknown Source)
[Default]
[Default]       at org.jboss.naming.JNDIView.listXML
(JNDIView.java:202)
[Default]
[Default]       at java.lang.reflect.Method.invoke
(Native Method)
[Default]
[Default]       at 
com.sun.management.jmx.MBeanServerImpl.invoke
(MBeanServerImpl.java:1628)
[Default]
[Default]       at 
com.sun.management.jmx.MBeanServerImpl.invoke
(MBeanServerImpl.java:1523)
[Default]
[Default]       at 
org.jboss.management.JNDIDataCollector.refresh
(JNDIDataCollector.java:64)
[Default]
[Default]       at 
org.jboss.management.ServerDataCollector$RefreshWorker.
doRefresh(ServerDataCollector.java:337)
[Default]
[Default]       at 
org.jboss.management.ServerDataCollector$RefreshWorker.
run(ServerDataCollector.java:293)

Hope this is of use
Andrew

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

>Comment By: Scott M Stark (starksm)
Date: 2002-04-17 10:05

Message:
Logged In: YES 
user_id=175228

A copy of the deployment map is now returned.

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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=544224&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to