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:417) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(java.base@9-internal/SSLSocketFactoryImpl.java:88)

Samebug tips0

There are no available Samebug tips.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via by Felix Yang,
  • Stack trace

    • 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:417) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(java.base@9-internal/SSLSocketFactoryImpl.java:88) at SessionCacheSizeTests.doClientSide(SessionCacheSizeTests.java:226) at SessionCacheSizeTests.startClient(SessionCacheSizeTests.java:491) at SessionCacheSizeTests.<init>(SessionCacheSizeTests.java:368) at SessionCacheSizeTests.main(SessionCacheSizeTests.java:332)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    No Bugmate found.