3 Replies Latest reply on Mar 4, 2003 2:03 AM by swedish-johan

    All subscribers affected by one disconnect!

    swedish-johan Newbie

      We have JBoss 3.0.4 running on a server with client on multiple machines subscribing to the same topic.

      If we disconnect the netwotk cable on one of the clients, the other subscribers doesn't get any new messages either!!

        • 1. Re: All subscribers affected by one disconnect!
          Adrian Brock Master

          Have you tried this with jboss-3.0.6,?
          There were some deadlocking fixes in 3.0.5

          If that doesn't fix it,
          can you post a thread dump.
          ctrl-break on the console for windows
          kill -3 "the jboss pid" on unix

          Regards,
          Adrian

          • 2. Re: All subscribers affected by one disconnect!
            swedish-johan Newbie

            OK!

            When we disconnect the network cable it takes about 45 seconds before this Exception get thrown in the console.

            19:28:09,610 ERROR[JMSDestinationManager] The connection to client ID:172 failed.
            19:28:15,610 WARN [ClientConsumer:ID:146] Could not send messages to a receiver.
            java.rmi.ConnectIOException: Exception creating connection to: 192.169.0.136; nested exception is:
            java.net.NoRouteToHostException: No route to host
            at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:580)
            at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
            at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
            at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
            at org.jboss.mq.il.rmi.RMIClientIL_Stub.receive(Unknown Source)
            at org.jboss.mq.server.ClientConsumer.doWork(ClientConsumer.java:295)
            at org.jboss.mq.threadpool.ThreadPool$WorkerThread.run(ThreadPool.java:230)
            Caused by: java.net.NoRouteToHostException: No route to host
            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:426)
            at java.net.Socket.connect(Socket.java:376)
            at java.net.Socket.(Socket.java:291)
            at java.net.Socket.(Socket.java:119)
            at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
            at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
            at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
            ... 6 more

            This Exception comes every 5-6 seconds.

            Then when we connect the cable again, the not-disconnected-clients resumes but all the messages that was sent during the time is lost!!!

            • 3. Re: All subscribers affected by one disconnect!
              swedish-johan Newbie

              The above dump is ON THE SERVER if that makes it clearer!