cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

unable to find valid certification path to requested target

Former Member
0 Likes
1,118

From Hybris while we are calling our rest client we are always getting below error. Though from standalone java class from same server the response are coming. We installed certificates into keystore and pointed same keystore in server.xml. We tried multiple times but nothing works. Though from our local hybris workspace we are able to connect restclient successfully. What could be the problewm ? why hybris production server always throwing the exception like unable to find valid certification path , though certificates we pointed.

Please reply. I hope someone will reply as we get very few response from here.

Error stacktrace:

 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.132 | Sep 25, 2018 9:34:36 AM org.apache.catalina.core.StandardWrapperValve invoke
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.132 | SEVERE: Servlet.service() for servlet [DispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on POST request for "":sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is 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] with root cause
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.132 | sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.132 |         at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.132 |         at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.132 |         at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.132 |         at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.132 |         at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.132 |         at sun.security.validator.Validator.validate(Validator.java:260)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.132 |         at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.132 |         at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.132 |         at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.132 |         at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.132 |         at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.133 |         at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.133 |         at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.133 |         at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.133 |         at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.133 |         at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.133 |         at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.133 |         at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.133 |         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.133 |         at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.133 |         at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:81)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.133 |         at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.133 |         at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
 INFO   | jvm 1    | main    | 2018/09/25 09:34:36.133 |         at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:569)

Accepted Solutions (0)

Answers (0)