[JBossMQ] - Socket closed exception in JBossMQ
by vons1234
Hi,
I am using jboss 4.2.0 and i have couple of MDBs in my application which is bound to queues
Every now and then i am seeing following exception in my server.log
I am running Jboss in cluster mode and we have 2 nodes in cluster.
What could be the problem in JBoss MQ or in my MsgSender code
| 2009-05-29 23:00:01,166 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
| java.net.SocketException: Socket closed
| at java.net.SocketInputStream.read(SocketInputStream.java:162)
| at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
| at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
| at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBuff eredInputStream.java:79)
| at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java :2196)
| at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Object InputStream.java:2376)
| at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStre am.java:2443)
| at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream .java:2515)
| at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputSt ream.java:2664)
| at java.io.ObjectInputStream.readByte(ObjectInputStream.java:875)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:31 6)
| at java.lang.Thread.run(Thread.java:595)
| 2009-05-29 23:00:01,166 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask. run
| 2009-05-29 23:00:01,166 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask .run
|
|
Here is my MsgSender which post message in queue for MDB
| public void send(String jndiQueueName, String message)throws NamingException, JMSException, Exception
| {
| logger.info("MsgSender Using jndiQueueName:"+jndiQueueName);
| logger.info("Sening string object:" + message);
| QueueConnection conn = getQueueConncetion();
| QueueSession session = conn.createQueueSession(false,QueueSession.AUTO_ACKNOWLEDGE);
| Queue que = (Queue) getContext().lookup(jndiQueueName);
| QueueSender sender = session.createSender(que);
| TextMessage txtMsg = session.createTextMessage();
| txtMsg.setText(message);
| sender.send(txtMsg);
| //free all created objects
| if(sender != null) {
| sender.close();
| }
| if(session != null) {
| session.close();
| }
| if(conn != null) {
| conn.close();
| }
| logger.info("Msg sent successfully");
| }
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234278#4234278
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234278
15 years, 7 months
[Clustering/JBoss] - JMS provider failure detected for ***MDB
by jakesong
Running JBoss 4.0.5 GA with JBoss MQ on Sun JVM 1.4, HP-UNIX, in a clustered configuration
After a variable period of activity (from 2 hours to a week), I get exception from the MDB Container:
Then the container reconnects to JMS after the 10seconds wait and fails again 120 seconds later
WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected for xxxMDB
| org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.net.SocketTimeoutException:
|
| Read timed out)
| at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:78)
| at org.jboss.mq.Connection.asynchFailure(Connection.java:420)
| at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:174)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:440)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:372)
| at java.lang.Thread.run(Thread.java:534)
| Caused by: java.net.SocketTimeoutException: Read timed out
| at java.net.SocketInputStream.socketRead0(Native Method)
| at java.net.SocketInputStream.read(SocketInputStream.java:129)
| at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
| at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
| at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
| at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
| at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2313)
| at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380)
| at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452)
| at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601)
| at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:317)
Then the container reconnects to JMS after the 10seconds wait and fails again 120 seconds later
12:11:34,100 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Waiting for reconnect internal 10
|
| 000ms for xxxMDB
| 12:11:44,147 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Trying to reconnect to JMS provid
|
| er for xxxMDB
| 12:11:44,178 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Reconnected to JMS provider for x
|
| xxMDB
| 12:13:44,694 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected for
|
| xxxMDB
|
|
The whole is ending up in an out of memory exception a few hours later.
Any ideas ?
Thanks in advance,
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234274#4234274
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234274
15 years, 7 months
[JBossMQ] - JMS provider failure detected for ***MDB
by jakesong
Running JBoss 4.0.5 GA with JBoss MQ on Sun JVM 1.4, HP-UNIX, in a clustered configuration
After a variable period of activity (from 2 hours to a week), I get exception from the MDB Container:
Then the container reconnects to JMS after the 10seconds wait and fails again 120 seconds later.
WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected for xxxMDB
| org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.net.SocketTimeoutException:
| Read timed out)
| at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:78)
| at org.jboss.mq.Connection.asynchFailure(Connection.java:420)
| at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:174)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:440)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:372)
| at java.lang.Thread.run(Thread.java:534)
| Caused by: java.net.SocketTimeoutException: Read timed out
| at java.net.SocketInputStream.socketRead0(Native Method)
| at java.net.SocketInputStream.read(SocketInputStream.java:129)
| at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
| at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
| at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
| at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
| at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2313)
| at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380)
| at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452)
| at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601)
| at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:317)
Then the container reconnects to JMS after the 10seconds wait and fails again 120 seconds later
12:11:34,100 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Waiting for reconnect internal 10
| 000ms for xxxMDB
| 12:11:44,147 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Trying to reconnect to JMS provid
| er for xxxMDB
| 12:11:44,178 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Reconnected to JMS provider for x
| xxMDB
| 12:13:44,694 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected for
| xxxMDB
|
|
The whole is ending up in an out of memory exception a few hours later.
Any ideas ?
Thanks in advance,
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234273#4234273
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234273
15 years, 7 months