java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(java.base@9-internal/Native Method) at java.net.AbstractPlainSocketImpl.doConnect(java.base@9-internal/AbstractPlainSocketImpl.java:400) at java.net.AbstractPlainSocketImpl.connectToAddress(java.base@9-internal/AbstractPlainSocketImpl.java:243) at java.net.AbstractPlainSocketImpl.connect(java.base@9-internal/AbstractPlainSocketImpl.java:225) at java.net.SocksSocketImpl.connect(java.base@9-internal/SocksSocketImpl.java:402) at java.net.Socket.connect(java.base@9-internal/Socket.java:591) at sun.security.ssl.SSLSocketImpl.connect(java.base@9-internal/SSLSocketImpl.java:652) at sun.security.ssl.SSLSocketImpl.<init>(java.base@9-internal/SSLSocketImpl.java:436) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(java.base@9-internal/SSLSocketFactoryImpl.java:137)

JDK Bug System | Amy Lu | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    sun/security/ssl/SocketCreation/SocketCreation.java fails intermittently due to Address already in use #section:main ----------messages:(4/392)---------- command: main SocketCreation SunJSSE does not support dynamic system properties, no way to re-use system properties in samevm/agentvm mode. reason: User specified action: run main/othervm/timeout=300 SocketCreation SunJSSE does not support dynamic system properties, no way to re-use system properties in samevm/agentvm mode. Mode: othervm [/othervm specified] elapsed time (seconds): 1.025 ----------configuration:(0/0)---------- ----------System.out:(9/292)---------- ------------------------------------- Server: Will call createServerSocket(int) Server: Will accept on SSL server socket... Client: Will call createSocket(String, int) Server read: 24 Client read: 85 Server: Will call createServerSocket(int) Client: Will call createSocket(InetAddress, int) ----------System.err:(27/1959)---------- Server died...java.net.BindException: Address already in use java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(java.base@9-internal/Native Method) at java.net.AbstractPlainSocketImpl.doConnect(java.base@9-internal/AbstractPlainSocketImpl.java:400) at java.net.AbstractPlainSocketImpl.connectToAddress(java.base@9-internal/AbstractPlainSocketImpl.java:243) at java.net.AbstractPlainSocketImpl.connect(java.base@9-internal/AbstractPlainSocketImpl.java:225) at java.net.SocksSocketImpl.connect(java.base@9-internal/SocksSocketImpl.java:402) at java.net.Socket.connect(java.base@9-internal/Socket.java:591) at sun.security.ssl.SSLSocketImpl.connect(java.base@9-internal/SSLSocketImpl.java:652) at sun.security.ssl.SSLSocketImpl.<init>(java.base@9-internal/SSLSocketImpl.java:436) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(java.base@9-internal/SSLSocketFactoryImpl.java:137) at SocketCreation.connectNormally1(SocketCreation.java:318) at SocketCreation.doClientSide(SocketCreation.java:275) at SocketCreation.startClient(SocketCreation.java:508) at SocketCreation.<init>(SocketCreation.java:440) at SocketCreation.main(SocketCreation.java:413) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:535) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-internal/Thread.java:843)

    JDK Bug System | 6 months ago | Amy Lu
    java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(java.base@9-internal/Native Method) at java.net.AbstractPlainSocketImpl.doConnect(java.base@9-internal/AbstractPlainSocketImpl.java:400) at java.net.AbstractPlainSocketImpl.connectToAddress(java.base@9-internal/AbstractPlainSocketImpl.java:243) at java.net.AbstractPlainSocketImpl.connect(java.base@9-internal/AbstractPlainSocketImpl.java:225) at java.net.SocksSocketImpl.connect(java.base@9-internal/SocksSocketImpl.java:402) at java.net.Socket.connect(java.base@9-internal/Socket.java:591) at sun.security.ssl.SSLSocketImpl.connect(java.base@9-internal/SSLSocketImpl.java:652) at sun.security.ssl.SSLSocketImpl.<init>(java.base@9-internal/SSLSocketImpl.java:436) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(java.base@9-internal/SSLSocketFactoryImpl.java:137)

    Root Cause Analysis

    1. java.net.ConnectException

      Connection refused at java.net.PlainSocketImpl.socketConnect(java.base@9-internal/Native Method) at java.net.AbstractPlainSocketImpl.doConnect(java.base@9-internal/AbstractPlainSocketImpl.java:400) at java.net.AbstractPlainSocketImpl.connectToAddress(java.base@9-internal/AbstractPlainSocketImpl.java:243) at java.net.AbstractPlainSocketImpl.connect(java.base@9-internal/AbstractPlainSocketImpl.java:225) at java.net.SocksSocketImpl.connect(java.base@9-internal/SocksSocketImpl.java:402) at java.net.Socket.connect(java.base@9-internal/Socket.java:591) at sun.security.ssl.SSLSocketImpl.connect(java.base@9-internal/SSLSocketImpl.java:652) at sun.security.ssl.SSLSocketImpl.<init>(java.base@9-internal/SSLSocketImpl.java:436) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(java.base@9-internal/SSLSocketFactoryImpl.java:137)

      at SocketCreation.connectNormally1()
    2. Unknown
      SocketCreation.main
      1. SocketCreation.connectNormally1(SocketCreation.java:318)
      2. SocketCreation.doClientSide(SocketCreation.java:275)
      3. SocketCreation.startClient(SocketCreation.java:508)
      4. SocketCreation.<init>(SocketCreation.java:440)
      5. SocketCreation.main(SocketCreation.java:413)
      5 frames