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

[MacOSX-AARCH64] serviceability/sa/sadebugd/DebugdConnectTest.java fails with java.rmi.ConnectException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 17, 18
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None

      Description

      Note to reproduce this issue, first JDK-8270199 has to be fixed. Otherwise the test is skipped.

       stdout: [Attaching to remote server test@localhost, please wait...
      ];
       stderr: [Error attaching to remote server: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
      java.net.ConnectException: Connection refused
      sun.jvm.hotspot.debugger.DebuggerException: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
      java.net.ConnectException: Connection refused
      at jdk.hotspot.agent/sun.jvm.hotspot.RMIHelper.lookup(RMIHelper.java:121)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.connectRemoteDebugger(HotSpotAgent.java:503)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:404)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:336)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:184)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:214)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:134)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JStack.runWithArgs(JStack.java:90)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJSTACK(SALauncher.java:302)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:500)
      Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
      java.net.ConnectException: Connection refused
      at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:626)
      at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:217)
      at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:204)
      at java.rmi/sun.rmi.server.UnicastRef.newCall(UnicastRef.java:344)
      at java.rmi/sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:116)
      at java.rmi/java.rmi.Naming.lookup(Naming.java:101)
      at jdk.hotspot.agent/sun.jvm.hotspot.RMIHelper.lookup(RMIHelper.java:119)
      ... 9 more
      Caused by: java.net.ConnectException: Connection refused
      at java.base/sun.nio.ch.Net.connect0(Native Method)
      at java.base/sun.nio.ch.Net.connect(Net.java:579)
      at java.base/sun.nio.ch.Net.connect(Net.java:568)
      at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
      at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
      at java.base/java.net.Socket.connect(Socket.java:633)
      at java.base/java.net.Socket.connect(Socket.java:583)
      at java.base/java.net.Socket.<init>(Socket.java:507)
      at java.base/java.net.Socket.<init>(Socket.java:287)
      at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createSocket(TCPDirectSocketFactory.java:40)
      at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:620)
      ... 15 more

      ]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              cjplummer Chris Plummer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: