Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.3.6
    • Fix Version/s: 4.4.1
    • Component/s: HttpClient (classic)
    • Labels:
      None
    • Environment:
      SLES 12, OpenJDK 1.7.0.65

      Description

      TestSSLSocketFactory fails during build with the following stacktrace:

      Tests run: 9, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.333 sec <<< FAILURE! - in org.apache.http.conn.ssl.TestSSLSocketFactory
      testSSLTrustVerification(org.apache.http.conn.ssl.TestSSLSocketFactory) Time elapsed: 0.049 sec <<< ERROR!
      java.lang.Exception: Unexpected exception, expected<javax.net.ssl.SSLHandshakeException> but was<javax.net.ssl.SSLException>
      at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)
      at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120)
      at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:104)
      at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:88)
      at sun.security.validator.Validator.getInstance(Validator.java:179)
      at sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:314)
      at sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:173)
      at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:186)
      at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
      at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1323)
      at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153)
      at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
      at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
      at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)
      at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
      at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
      at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
      at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:290)
      at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:259)
      at org.apache.http.conn.ssl.TestSSLSocketFactory.testSSLTrustVerification(TestSSLSocketFactory.java:315)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              moio Silvio Moioli
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: