javax.naming.CommunicationException: simple bind failed: iapp.tum.de:636 [Root exception is javax.net.ssl.SSLHandshakeException: com.sun.vda.service.util.CustomTrustManager$CertificateNotFoundException: An untrusted server certificate was detected]

Oracle Community | 805184 | 6 years ago
  1. 0

    Error logging in using LDAP

    Oracle Community | 6 years ago | 805184
    javax.naming.CommunicationException: simple bind failed: iapp.tum.de:636 [Root exception is javax.net.ssl.SSLHandshakeException: com.sun.vda.service.util.CustomTrustManager$CertificateNotFoundException: An untrusted server certificate was detected]

    Root Cause Analysis

    1. com.sun.vda.service.util.CustomTrustManager$CertificateNotFoundException

      An untrusted server certificate was detected

      at com.sun.vda.service.util.CustomTrustManager.checkServerTrusted()
    2. com.sun.vda
      CustomTrustManager.checkServerTrusted
      1. com.sun.vda.service.util.CustomTrustManager.checkServerTrusted(CustomTrustManager.java:70)
      2. com.sun.vda.service.util.CustomTrustManager.checkServerTrusted(CustomTrustManager.java:44)
      2 frames
    3. Java JSSE
      AppOutputStream.write
      1. com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSLContextImpl.java:320)
      2. com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:841)
      3. com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:106)
      4. com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495)
      5. com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433)
      6. com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:877)
      7. com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1089)
      8. com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:618)
      9. com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
      9 frames
    4. Java RT
      InitialLdapContext.<init>
      1. java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
      2. java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
      3. com.sun.jndi.ldap.Connection.writeRequest(Connection.java:393)
      4. com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:334)
      5. com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:192)
      6. com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2669)
      7. com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:289)
      8. com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
      9. com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
      10. com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
      11. com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
      12. javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
      13. javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
      14. javax.naming.InitialContext.init(InitialContext.java:223)
      15. javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
      15 frames
    5. com.sun.sgd
      DirectoryServiceContext.connect
      1. com.sun.sgd.directoryservices.core.connect.SimpleBindConnection.connect(SimpleBindConnection.java:60)
      2. com.sun.sgd.directoryservices.core.connect.DirectoryConnector.connect(DirectoryConnector.java:171)
      3. com.sun.sgd.directoryservices.core.service.GenericDirectoryService.connect(GenericDirectoryService.java:220)
      4. com.sun.sgd.directoryservices.core.DirectoryServiceContext.connect(DirectoryServiceContext.java:221)
      5. com.sun.sgd.directoryservices.core.DirectoryServiceContext.connect(DirectoryServiceContext.java:201)
      5 frames
    6. com.sun.directoryservices
      DirectoryService.connect
      1. com.sun.directoryservices.service.DirectoryService.connect(DirectoryService.java:122)
      1 frame
    7. com.sun.vda
      ClientRequestWorker.run
      1. com.sun.vda.service.ldap.UserDirConnection.getBaseDN(UserDirConnection.java:312)
      2. com.sun.vda.service.ldap.UserDirConnection.getBaseDn(UserDirConnection.java:911)
      3. com.sun.vda.service.ldap.UserDirConnection.searchForUser(UserDirConnection.java:448)
      4. com.sun.vda.service.core.UserDirectory.searchForUser(UserDirectory.java:237)
      5. com.sun.vda.service.userdir.Client.getUserDn(Client.java:157)
      6. com.sun.vda.service.userdir.Client.getUser(Client.java:56)
      7. com.sun.vda.service.client.PreferredServers.getPreferredServers(PreferredServers.java:52)
      8. com.sun.vda.service.client.PreferredServers.execute(PreferredServers.java:37)
      9. com.sun.vda.service.client.ClientRequestWorker.execute(ClientRequestWorker.java:158)
      10. com.sun.vda.service.client.ClientRequestWorker.run(ClientRequestWorker.java:73)
      10 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
      3. java.lang.Thread.run(Thread.java:595)
      3 frames