Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Exceptions on connecting to external application using Java

SA-53607

Summary



Attempt to connect to an external application through Java fails with exceptions in the logs.


Error Messages



TP-Processor21] (nvoke.Rule_Connect_Java.Action) ERROR xx.xxxxxxx.xxx|xxx.xx.xxx.xx|Rule-Connect-Java.OBInterfaces-GE-GeDAOImpl-.getCompaniesByName I648389 - method failed: aps.dao.DAOException: 03-11-2018 10:28:05 Exception: aps.dao.DAOException: 03-11-2018 10:28:05 Exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target: 03-11-2018 10:28:05 Exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

javax.net.ssl.SSLHandshakeException: 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:1916)

                    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:279)

                    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:273)     

Caused by: 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.validator.PKIXValidator.doBuild(PKIXValidator.java:385)

                    at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)

                    at sun.security.validator.Validator.validate(Validator.java:260)

sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)

                    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1454)


Steps to Reproduce



Attempt to connect to external application using Connect-Java.


Root Cause



An issue with the custom configuration. The new certificate details were not added correctly in the truststore.


Resolution



Perform the following local-change:

Add the new certificate details in the truststore.
 

 

Published August 24, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us