java.net.SocketException: socket closed

JDK Bug System | Amy Lu | 2 years ago
  1. 0

    javax/net/ssl/ciphersuites/DisabledAlgorithms.java fails intermittently ----------System.out:(28/2284)---------- jdk.tls.disabledAlgorithms = SSLv3, RC4 Server: enable cipher suites: [TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, TLS_ECDHE_RSA_WITH_RC4_128_SHA, SSL_RSA_WITH_RC4_128_SHA, TLS_ECDH_ECDSA_WITH_RC4_128_SHA, TLS_ECDH_RSA_WITH_RC4_128_SHA, SSL_RSA_WITH_RC4_128_MD5, TLS_ECDH_anon_WITH_RC4_128_SHA, SSL_DH_anon_WITH_RC4_128_MD5] Server: started Client: enable cipher suite: TLS_ECDHE_ECDSA_WITH_RC4_128_SHA Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Client: enable cipher suite: TLS_ECDHE_RSA_WITH_RC4_128_SHA Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Client: enable cipher suite: SSL_RSA_WITH_RC4_128_SHA Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Client: enable cipher suite: TLS_ECDH_ECDSA_WITH_RC4_128_SHA Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Client: enable cipher suite: TLS_ECDH_RSA_WITH_RC4_128_SHA Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Client: enable cipher suite: SSL_RSA_WITH_RC4_128_MD5 Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Client: enable cipher suite: TLS_ECDH_anon_WITH_RC4_128_SHA Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Client: enable cipher suite: SSL_DH_anon_WITH_RC4_128_MD5 Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Server: finished ----------System.err:(14/897)---------- java.lang.RuntimeException: Expected SSL exception not thrown on server side at DisabledAlgorithms.checkFailure(DisabledAlgorithms.java:136) at DisabledAlgorithms.main(DisabledAlgorithms.java:91) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:502) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92) at java.lang.Thread.run(Thread.java:745) JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected SSL exception not thrown on server side JavaTest Message: shutting down test

    JDK Bug System | 2 years ago | Amy Lu
    java.net.SocketException: socket closed
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    javax/net/ssl/ciphersuites/DisabledAlgorithms.java fails intermittently ----------System.out:(28/2284)---------- jdk.tls.disabledAlgorithms = SSLv3, RC4 Server: enable cipher suites: [TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, TLS_ECDHE_RSA_WITH_RC4_128_SHA, SSL_RSA_WITH_RC4_128_SHA, TLS_ECDH_ECDSA_WITH_RC4_128_SHA, TLS_ECDH_RSA_WITH_RC4_128_SHA, SSL_RSA_WITH_RC4_128_MD5, TLS_ECDH_anon_WITH_RC4_128_SHA, SSL_DH_anon_WITH_RC4_128_MD5] Server: started Client: enable cipher suite: TLS_ECDHE_ECDSA_WITH_RC4_128_SHA Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Client: enable cipher suite: TLS_ECDHE_RSA_WITH_RC4_128_SHA Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Client: enable cipher suite: SSL_RSA_WITH_RC4_128_SHA Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Client: enable cipher suite: TLS_ECDH_ECDSA_WITH_RC4_128_SHA Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Client: enable cipher suite: TLS_ECDH_RSA_WITH_RC4_128_SHA Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Client: enable cipher suite: SSL_RSA_WITH_RC4_128_MD5 Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Client: enable cipher suite: TLS_ECDH_anon_WITH_RC4_128_SHA Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Client: enable cipher suite: SSL_DH_anon_WITH_RC4_128_MD5 Client: connect to server Expected exception on client side: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) Server: finished ----------System.err:(14/897)---------- java.lang.RuntimeException: Expected SSL exception not thrown on server side at DisabledAlgorithms.checkFailure(DisabledAlgorithms.java:136) at DisabledAlgorithms.main(DisabledAlgorithms.java:91) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:502) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92) at java.lang.Thread.run(Thread.java:745) JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected SSL exception not thrown on server side JavaTest Message: shutting down test

    JDK Bug System | 2 years ago | Amy Lu
    java.net.SocketException: socket closed
  4. 0

    Java ServerSocket Connection Refused after Certain number

    Stack Overflow | 3 years ago | param83
    java.net.SocketException: Too many open files <stack trace follows>

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.net.SocketException

      socket closed

      at java.net.DualStackPlainSocketImpl.accept0()
    2. Java RT
      ServerSocket.implAccept
      1. java.net.DualStackPlainSocketImpl.accept0(Native Method)
      2. java.net.DualStackPlainSocketImpl.socketAccept(DualStackPlainSocketImpl.java:131)
      3. java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:404)
      4. java.net.PlainSocketImpl.accept(PlainSocketImpl.java:199)
      5. java.net.ServerSocket.implAccept(ServerSocket.java:546)
      5 frames
    3. Java JSSE
      SSLServerSocketImpl.accept
      1. sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:348)
      1 frame
    4. Unknown
      DisabledAlgorithms$SSLServer.run
      1. DisabledAlgorithms$SSLServer.run(DisabledAlgorithms.java:213)
      1 frame
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame