[ openjms-Bugs-866885 ] ConcurrentModificationException in server during sync recv
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #866885, was opened at 2003-12-29 15:13 Message generated for change (Settings changed) made by tanderson You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474136&aid=866885&group_id=54559 Category: server >Group: v0.7.6-rc3 Status: Open Resolution: None Priority: 5 Submitted By: Tim Anderson (tanderson) Assigned to: Tim Anderson (tanderson) Summary: ConcurrentModificationException in server during sync recv Initial Comment: Raised on behalf of Jose Javier Gutierrez Gil, in response to the following thread: http://sourceforge.net/mailarchive/forum.php? thread_id=3579841&forum_id=12918 To reproduce: . copy attached code to $OPENJMS_HOME/src/examples/openjms/examples/clie nt/console/ . change JmsServerSession.receiveMessage() to log all exceptions . run a single instance of Client2: > examples.bat client.console.Client2 . run multiple (~6) instances of Client1 > examples.bat client.console.Client1 . periodically kill and restart each Client1 instance Eventually, a stack trace similar to the following will be logged: 14:55:18.517 ERROR [RMI TCP Connection(72)- 192.168.0.8] - java.util.ConcurrentModificationException java.util.ConcurrentModificationException at java.util.TreeMap$Iterator.next(TreeMap.java:1023) at org.exolab.jms.messagemgr.QueueDestinationCache.get Message(QueueDestinationCache.java:509) at org.exolab.jms.messagemgr.QueueConsumerEndpoint.g etMessageFromCache (QueueConsumerEndpoint.java:310) at org.exolab.jms.messagemgr.QueueConsumerEndpoint.re ceiveMessage(QueueConsumerEndpoint.java:223) at org.exolab.jms.server.JmsServerSession.receiveMessage (JmsServerSession.java:439) at org.exolab.jms.server.rmi.RmiJmsServerSession.receive Message(RmiJmsServerSession.java:204) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474136&aid=866885&group_id=54559 ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click