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

com/sun/jndi/ldap/LdapCBPropertiesTest.java fails with java.lang.NullPointerException: Cannot read field "negotiatedProtocol" because "this.conContext.handshakeContext" is null

XMLWordPrintable


      ----------System.err:(29/1935)----------
      Jun 13, 2023 2:07:30 AM BaseLdapServer start
      INFO: Starting server at port 39,015
      Jun 13, 2023 2:07:30 AM BaseLdapServer acceptConnections
      INFO: Server is accepting connections at port 39,015
      Jun 13, 2023 2:07:30 AM BaseLdapServer acceptConnections
      INFO: Accepted new connection at SSLSocket[hostname=127.0.0.1, port=42360, Session(1686622050655|SSL_NULL_WITH_NULL_NULL)]
      Jun 13, 2023 2:07:30 AM BaseLdapServer close
      INFO: Stopping server at port 39,015
      java.lang.NullPointerException: Cannot read field "negotiatedProtocol" because "this.conContext.handshakeContext" is null
      at java.base/sun.security.ssl.SSLSocketImpl.duplexCloseOutput(SSLSocketImpl.java:654)
      at java.base/sun.security.ssl.SSLSocketImpl.close(SSLSocketImpl.java:584)
      at BaseLdapServer.closeSilently(BaseLdapServer.java:340)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1593)
      at BaseLdapServer.close(BaseLdapServer.java:298)
      at LdapCBPropertiesTest.<init>(LdapCBPropertiesTest.java:105)
      at LdapCBPropertiesTest.main(LdapCBPropertiesTest.java:89)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1583)

      Jun 13, 2023 2:07:30 AM BaseLdapServer handleConnection
      INFO: Connection Handler exit Remote host terminated the handshake
      JavaTest Message: Test threw exception: java.lang.NullPointerException: Cannot read field "negotiatedProtocol" because "this.conContext.handshakeContext" is null
      JavaTest Message: shutting down test

      Jun 13, 2023 2:07:30 AM BaseLdapServer acceptConnections
      INFO: Server stopped accepting connections at port 39,015
      STATUS:Failed.`main' threw exception: java.lang.NullPointerException: Cannot read field "negotiatedProtocol" because "this.conContext.handshakeContext" is null

            msheppar Mark Sheppard
            msheppar Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: