6 Replies Latest reply on Dec 10, 2004 1:31 PM by Dan Greening

    java.net.NoRouteToHostException: No route to host

    aayyala Newbie

      I am getting the following error quite often, but not always.

      2004-11-16 22:07:50,218 ERROR [org.jgroups.protocols.UDP] exception=java.net.NoRouteToHostException: No route to host: Datagram send failed, msg=[dst: 230.1.2.3:45577, src: host23-83:3604 (2 headers), size = 0 bytes], mcast_addr=230.1.2.3:45577

      I noticed that this is happening after the following jms exception. This could be just a coincidence. Please see the following log

      2004-11-16 22:07:25,140 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
      java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(SocketInputStream.java:168)
      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:67)
      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:281)
      at java.lang.Thread.run(Thread.java:534)
      2004-11-16 22:07:25,156 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
      2004-11-16 22:07:25,156 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
      java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(SocketInputStream.java:168)
      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:67)
      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:281)
      at java.lang.Thread.run(Thread.java:534)
      2004-11-16 22:07:25,156 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
      2004-11-16 22:07:25,156 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
      2004-11-16 22:07:25,156 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
      2004-11-16 22:07:25,156 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
      2004-11-16 22:07:25,156 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected:
      org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.net.SocketException: Connection reset)
      at org.jboss.mq.Connection.asynchFailure(Connection.java:436)
      at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:145)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:402)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:334)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(SocketInputStream.java:168)
      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:67)
      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:281)
      ... 1 more
      2004-11-16 22:07:25,156 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Trying to reconnect to JMS provider
      2004-11-16 22:07:25,171 WARN [org.jboss.mq.Connection] Connection failure:
      org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.net.SocketException: Connection reset)
      at org.jboss.mq.Connection.asynchFailure(Connection.java:436)
      at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:145)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:402)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:334)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(SocketInputStream.java:168)
      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:67)
      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:281)
      ... 1 more
      2004-11-16 22:07:25,171 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
      2004-11-16 22:07:25,171 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
      2004-11-16 22:07:25,187 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
      2004-11-16 22:07:25,187 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run

      2004-11-16 22:07:29,015 ERROR [org.jgroups.protocols.UDP] exception=java.net.NoRouteToHostException: No route to host: Datagram send failed, msg=[dst: 230.1.2.3:45577, src: host23-83:3604 (2 headers), size = 0 bytes], mcast_addr=230.1.2.3:45577
      2004-11-16 22:07:33,187 WARN [org.jboss.mq.Connection] Connection failure:
      org.jboss.mq.SpyJMSException: Connection Failed; - nested throwable: (java.io.IOException: Client is not connected)
      at org.jboss.mq.Connection.asynchFailure(Connection.java:436)
      at org.jboss.mq.Connection$PingTask.run(Connection.java:1385)
      at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: java.io.IOException: Client is not connected
      at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:229)
      at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:215)
      at org.jboss.mq.il.uil2.UILServerIL.ping(UILServerIL.java:462)
      at org.jboss.mq.Connection.pingServer(Connection.java:927)
      at org.jboss.mq.Connection$PingTask.run(Connection.java:1381)
      ... 2 more
      2004-11-16 22:07:35,156 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] unset exception listener
      2004-11-16 22:07:35,156 ERROR [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Could not stop JMS connection
      org.jboss.mq.SpyJMSException: Cannot disable the connection with the JMS server; - nested throwable: (java.io.IOException: Client is not connected)
      at org.jboss.mq.Connection.doStop(Connection.java:1289)
      at org.jboss.mq.Connection.stop(Connection.java:718)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStop(JMSContainerInvoker.java:832)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onException(JMSContainerInvoker.java:1265)
      at org.jboss.mq.Connection.asynchFailure(Connection.java:446)
      at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:145)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:402)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:334)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: java.io.IOException: Client is not connected
      at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:229)
      at org.jboss.mq.il.uil2.SocketManager.sendMessage(SocketManager.java:197)
      at org.jboss.mq.il.uil2.UILServerIL.setEnabled(UILServerIL.java:189)
      at org.jboss.mq.Connection.doStop(Connection.java:1285)
      ... 8 more
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSessionPool] Clearing 15 from ServerSessionPool
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.jms.asf.StdServerSession] closed
      2004-11-16 22:07:35,171 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
      2004-11-16 22:07:45,171 DEBUG [org.jboss.mq.il.uil2.UILClientILService] Stopping
      2004-11-16 22:07:45,171 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Destroying DLQHandler
      2004-11-16 22:07:45,171 DEBUG [org.jboss.mq.il.uil2.UILClientILService] Stopping
      2004-11-16 22:07:45,171 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Destroyed DLQHandler
      2004-11-16 22:07:45,171 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Initializing
      2004-11-16 22:07:45,171 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Looking up provider adapter: java:/DefaultJMSProvider
      2004-11-16 22:07:45,171 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Provider adapter: org.jboss.jms.jndi.JNDIProviderAdapter@130998
      2004-11-16 22:07:45,171 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Creating DLQHandler
      2004-11-16 22:07:45,171 DEBUG [org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory] Extracting SpyConnectionFactory from reference
      2004-11-16 22:07:45,187 DEBUG [org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory] The GenericConnectionFactory is: GenericConnectionFactory[server=org.jboss.mq.il.uil2.UILServerIL@10a3c73 connectionProperties={UIL_ADDRESS_KEY=132.190.23.83, UIL_CHUNKSIZE_KEY=1000000, UIL_TCPNODELAY_KEY=yes, ClientILService=org.jboss.mq.il.uil2.UILClientILService, UIL_PORT_KEY=8093, UIL_BUFFERSIZE_KEY=2048, PingPeriod=60000}]
      2004-11-16 22:07:45,187 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Using factory: org.jboss.mq.SpyXAConnectionFactory@106e01a
      2004-11-16 22:07:50,218 ERROR [org.jgroups.protocols.UDP] exception=java.net.NoRouteToHostException: No route to host: Datagram send failed, msg=[dst: 230.1.2.3:45577, src: host23-83:3604 (2 headers), size = 0 bytes], mcast_addr=230.1.2.3:45577
      2004-11-16 22:08:07,468 ERROR [org.jboss.ejb.plugins.jms.DLQHandler] Initialization failed DLQHandler
      org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection refused: connect)
      at org.jboss.mq.Connection.authenticate(Connection.java:1168)
      at org.jboss.mq.Connection.(Connection.java:255)
      at org.jboss.mq.Connection.(Connection.java:332)
      at org.jboss.mq.SpyConnection.(SpyConnection.java:66)
      at org.jboss.mq.SpyConnectionFactory.createConnection(SpyConnectionFactory.java:87)
      at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:124)
      at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:157)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237)
      at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:164)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:542)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:764)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onException(JMSContainerInvoker.java:1267)
      at org.jboss.mq.Connection.asynchFailure(Connection.java:446)
      at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:145)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:402)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:334)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: java.net.ConnectException: Connection refused: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
      at java.net.Socket.connect(Socket.java:452)
      at java.net.Socket.connect(Socket.java:402)
      at java.net.Socket.(Socket.java:309)
      at java.net.Socket.(Socket.java:124)
      at javax.net.DefaultSocketFactory.createSocket(DashoA12275)
      at org.jboss.mq.il.uil2.UILServerIL.createConnection(UILServerIL.java:642)
      at org.jboss.mq.il.uil2.UILServerIL.getSocketMgr(UILServerIL.java:532)
      at org.jboss.mq.il.uil2.UILServerIL.authenticate(UILServerIL.java:334)
      at org.jboss.mq.Connection.authenticate(Connection.java:1160)
      ... 16 more