javax.naming.CommunicationException: java.security.cert.CertificateException: Invalid Server Certificate: server certificate could not be verified, and the CA certificate is missing from the certificate chain. raw error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [Root exception is javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Invalid Server Certificate: server certificate could not be verified, and the CA certificate is missing from the certificate chain. raw error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target]; remaining name ''


Solutions on the web

Solution icon of web
: server certificate could not be verified, and the CA certificate is missing from the certificate chain. raw error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target]; remaining name ''

Solution icon of github
connection closed [Root exception is java.io.IOException: connection closed]; remaining name ''

Solution icon of googlegroups
via Google Groups by Misagh, 1 year ago
Connection reset [Root exception is java.net.SocketException: Connection reset]; remaining name ''

Solution icon of spring
via Spring JIRA by Timothy, 1 year ago
connection closed [Root exception is java.io.IOException: connection closed]; remaining name ''

Solution icon of spring
via Spring JIRA by Timothy, 1 year ago
connection closed [Root exception is java.io.IOException: connection closed]; remaining name ''

Solution icon of web
connection closed [[Root exception is java.io.IOException: connection closed]]; remaining name ''

Solution icon of github
connection closed [Root exception is java.io.IOException: connection closed]; remaining name 'dc=pxed,dc=pfizer,dc=com'

Solution icon of apache
connection closed [Root exception is java.io.IOException: connection closed]; remaining name 'CN=Users,DC=EXAMPLE,DC=COM'

Solution icon of oraclecommunity
via Oracle Community by 635371, 1 year ago
Connection timed out [Root exception is java.net.SocketException: Connection timed out]; remaining name 'dc=dit,c=in'

Solution icon of stackoverflow
Connection reset [Root exception is java.net.SocketException: Connection reset]; remaining name 'DC=SUSAD,DC=Local'

Stack trace

javax.naming.CommunicationException: java.security.cert.CertificateException: Invalid Server Certificate: server certificate could not be verified, and the CA certificate is missing from the certificate chain. raw error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [Root exception is javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Invalid Server Certificate: server certificate could not be verified, and the CA certificate is missing from the certificate chain. raw error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target]; remaining name ''
	at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1992)
	at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1837)
	at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1762)
	at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:386)
	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:356)
	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:339)
	at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:265)
	at com.ca.commons.jndi.JNDIOps.exists(JNDIOps.java:633)
	at com.ca.directory.jxplorer.broker.JNDIBroker.openConnection(JNDIBroker.java:409)
	at com.ca.directory.jxplorer.broker.JNDIBroker.processRequest(JNDIBroker.java:360)
	at com.ca.directory.jxplorer.broker.Broker.processQueue(Broker.java:158)
	at com.ca.directory.jxplorer.broker.JNDIBroker.processQueue(JNDIBroker.java:829)
	at com.ca.directory.jxplorer.broker.Broker.run(Broker.java:124)
	at java.lang.Thread.run(Thread.java:636)
Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Invalid Server Certificate: server certificate could not be verified, and the CA certificate is missing from the certificate chain. raw error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
	at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1639)
	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:215)
	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:209)
	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1033)
	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:146)
	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:546)
	at sun.security.ssl.Handshaker.process_record(Handshaker.java:482)
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:904)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1140)
	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:764)
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:94)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
	at com.sun.jndi.ldap.Connection.run(Connection.java:820)
	... 1 more
Caused by: java.security.cert.CertificateException: Invalid Server Certificate: server certificate could not be verified, and the CA certificate is missing from the certificate chain. raw error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at com.ca.commons.security.JXTrustManager.checkServerTrusted(JXTrustManager.java:141)
	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1025)
	... 12 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

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.