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

Not a useful exception when a cipher suite is not supported

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.0
    • 1.0
    • core-svc
    • None
    • 1.0
    • sparc
    • solaris_8

      When I use the following cipher suite,

          env.put("jmx.remote.tls.enabled.cipher.suites", "SSL_RSA_WITH_NULL_MD5");

      I've got the following exception on the client side:

      java.net.SocketException: Socket closed
      at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:99)
      at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
      at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
      at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
      at java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputStream.java:1585)
      at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:639)
      at com.sun.jmx.remote.socket.SocketConnection.writeMessage(SocketConnection.java:234)
      at com.sun.jmx.remote.security.AdminClient.connectionOpen(AdminClient.java:193)
      at javax.management.remote.generic.GenericConnector.connect(GenericConnector.java:174)
      at javax.management.remote.jmxmp.JMXMPConnector.connect(JMXMPConnector.java:117)
      at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:227)

      On the server side, I've got the following message:
      Jul 31, 2003 11:59:44 AM GenericConnectorServer ClientCreation.run
      SEVERE: Failed to open connection: java.net.SocketException: Socket closed

      According to dev eng investigation, this happens when the cipher suite is not supported or
      is has not been specified in both the client and server side environment maps.

      The exception should be more explicit and say that the error was due to a handshake problem
      and that no cipher suites were in common.

      Product version used:
      - jmx_1.2.1.r014
      - jmxremote-1_0-b23
      - java version "1.5.0-beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b07)
        Java HotSpot(TM) Client VM (build 1.5.0-beta-b07, interpreted mode)

            lmalvent Luis-Miguel Alventosa (Inactive)
            dlutoff Daniel Lutoff (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: