Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5036276

TEST_BUG: LocalManagementTest.sh fails if managed VM is slow to startup

    Details

      Description


      jtreg test:

      sun/management/jmxremote/bootstrap/LocalManagementTest.sh


      I was able to reproduce this problem on taloraan.sfbay machine.


      First couple of attempts of starting Manager I get:


      java.lang.RuntimeException: 28319 is not managed!


      After few attempts I ran into second problem:

      Connect to process 28358 via: service:jmx:rmi://taloraan/stub/rO0ABXNyAC5qYXZheC5tYW5hZ2VtZW50LnJlbW90ZS5ybWkuUk1JU2VydmVySW1wbF9TdHViAAAAAAAAAAICAAB4cgAaamF2YS5ybWkuc2VydmVyLlJlbW90ZVN0dWLp/tzJi+FlGgIAAHhyABxqYXZhLnJtaS5zZXJ2ZXIuUmVtb3RlT2JqZWN002G0kQxhMx4DAAB4cHczAApVbmljYXN0UmVmAAoxMC41LjMxLjI1AACTMmDlfdBAnqP2JCCF2gAAAPwT8TFCgAAAeA==


      Exception in thread "main" java.rmi.ConnectException: Connection refused to host: 10.5.31.25; nested exception is:
              java.net.ConnectException: Connection refused
              at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
              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:94)
              at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
              at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2234)
              at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:276)
              at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
              at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:207)
              at Manager.main(Manager.java:26)
      Caused by: java.net.ConnectException: Connection refused
              at java.net.PlainSocketImpl.socketConnect(Native Method)
              at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
              at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
              at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
              at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
              at java.net.Socket.connect(Socket.java:505)
              at java.net.Socket.connect(Socket.java:455)
              at java.net.Socket.<init>(Socket.java:363)
              at java.net.Socket.<init>(Socket.java:178)
              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:569)
              ... 9 more


      I am opening this bug for further investigation.

      -Swamy

        Attachments

          Activity

            People

            • Assignee:
              alanb Alan Bateman
              Reporter:
              swamyv Swamy Venkataramanappa
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: