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]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Unknown by 805184,
  • Stack trace

    • 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] at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:197) at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2669) at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:289) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193) at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136) at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134) at com.sun.sgd.directoryservices.core.connect.SimpleBindConnection.connect(SimpleBindConnection.java:60) at com.sun.sgd.directoryservices.core.connect.DirectoryConnector.connect(DirectoryConnector.java:171) at com.sun.sgd.directoryservices.core.service.GenericDirectoryService.connect(GenericDirectoryService.java:220) at com.sun.sgd.directoryservices.core.DirectoryServiceContext.connect(DirectoryServiceContext.java:221) at com.sun.sgd.directoryservices.core.DirectoryServiceContext.connect(DirectoryServiceContext.java:201) at com.sun.directoryservices.service.DirectoryService.connect(DirectoryService.java:122) at com.sun.vda.service.ldap.UserDirConnection.getBaseDN(UserDirConnection.java:312) at com.sun.vda.service.ldap.UserDirConnection.getBaseDn(UserDirConnection.java:911) at com.sun.vda.service.ldap.UserDirConnection.searchForUser(UserDirConnection.java:448) at com.sun.vda.service.core.UserDirectory.searchForUser(UserDirectory.java:237) at com.sun.vda.service.userdir.Client.getUserDn(Client.java:157) at com.sun.vda.service.userdir.Client.getUser(Client.java:56) at com.sun.vda.service.client.PreferredServers.getPreferredServers(PreferredServers.java:52) at com.sun.vda.service.client.PreferredServers.execute(PreferredServers.java:37) at com.sun.vda.service.client.ClientRequestWorker.execute(ClientRequestWorker.java:158) at com.sun.vda.service.client.ClientRequestWorker.run(ClientRequestWorker.java:73) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595) Caused by: javax.net.ssl.SSLHandshakeException: com.sun.vda.service.util.CustomTrustManager$CertificateNotFoundException: An untrusted server certificate was detected at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1584) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:174) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:168) at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:848) at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:106) at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495) at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:877) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1089) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:618) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) at com.sun.jndi.ldap.Connection.writeRequest(Connection.java:393) at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:334) at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:192) ... 29 more Caused by: com.sun.vda.service.util.CustomTrustManager$CertificateNotFoundException: An untrusted server certificate was detected at com.sun.vda.service.util.CustomTrustManager.checkServerTrusted(CustomTrustManager.java:70) at com.sun.vda.service.util.CustomTrustManager.checkServerTrusted(CustomTrustManager.java:44) at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSLContextImpl.java:320) at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:841) ... 41 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.