[jboss-user] [Messaging, JMS & JBossMQ] - org.jboss.mq.SpyJMSException: Exiting on IOE

ppradhan do-not-reply at jboss.com
Thu Aug 2 15:09:18 EDT 2007


Hi,

I am using jboss 4.0.2 with cache. I use JMS to send log messges to be saved to a database. No special configuration, however, over some time period  ( e.g. a month or more) I get this exception:

2007-07-27 11:17:31,318 WARN  [org.jboss.mq.Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error and reconnect
org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.io.EOFException)
	at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:66)
	at org.jboss.mq.Connection.asynchFailure(Connection.java:437)
	at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:156)
	at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:413)
	at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:345)
	at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.EOFException
	at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2675)
	at java.io.ObjectInputStream.readByte(ObjectInputStream.java:874)
	at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:290)
	... 1 more

After a few of these , I get following:

2007-07-27 11:39:19,048 INFO  [STDOUT] Cannot send a message to the JMS server; - nested throwable: (java.io.IOException: Client is not connected)


The wiki pages re jbossMQ mention the High Availability JMSMQ, which I am not sure is being used since I am using the default server configuration. 

My question is : do I need to use an ExceptionListener , trap this exception and then reopen the connection, or is this a memory/heap problem that I can fix some other way? Restarting the server fixes the problem but nor desirable.

Any help will be appreciated

Thanks


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070258#4070258

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070258



More information about the jboss-user mailing list