We va an applet that connects to a topic on JBossMQ. Everthings works fine so far. The
only problem is with the reload. When we click on the reload button we get the
following exception
org.jboss.mq.SpyJMSException: Exiting on unexpected error in read task; - nested
throwable: (java.lang.reflect.UndeclaredThrowableException)
at org.jboss.mq.Connection.asynchFailure(Connection.java:436)
at
org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:147)
at
org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:400)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:342)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.UndeclaredThrowableException
... 4 more
Caused by: java.lang.ThreadDeath
at java.lang.Thread.stop(Unknown Source)
at java.lang.ThreadGroup.stopOrSuspend(Unknown Source)
at java.lang.ThreadGroup.stopOrSuspend(Unknown Source)
at java.lang.ThreadGroup.stop(Unknown Source)
at sun.awt.AppContext.dispose(Unknown Source)
at sun.applet.AppletClassLoader.release(Unknown Source)
at sun.plugin.security.PluginClassLoader.release(Unknown Source)
at sun.applet.AppletPanel.release(Unknown Source)
at sun.applet.AppletPanel.sendEvent(Unknown Source)
at sun.plugin.AppletViewer.onPrivateClose(Unknown Source)
at sun.plugin.AppletViewer$1.run(Unknown Source)
Having had a look at the source code it seems to me that the static thread group in
the Connection might cause the problem. Even so it is created from new when it is
destroyed I do have the feeling that there is a timing problem, i.e. that the new read
task of the SocketMgr is part of the thread group of the old connection since the
thread group is only destory after the last one of its thread is destroyed.
We use the standard code to close the connection in the destroy method
connection.stop();
messageConsumer.close();
session.close();
connection.close();
Is there a way to force the connection to release the threadgroup of any other
workaround
Currently we're using JDK 1.5.0, JBoss 4 and IE 6
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854059#3854059
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854059
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user