cancel
Showing results for 
Search instead for 
Did you mean: 

Http server error

Former Member
0 Kudos

While consuming odata service from a service url , I am getting the following server error :

Server Error  Caused by:</h3><pre>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(Unknown Source)

Can anyone provide solution for this?

Accepted Solutions (0)

Answers (1)

Answers (1)

isaias_freitas
Advisor
Advisor
0 Kudos

It seems that an SSL certificate is missing somewhere.

Maybe you didn't import the root CA certificate at the client system, so it can validate and trust the server certificate provided by the target system?

Former Member
0 Kudos

yes,I have imported certificate in the browser.

The code snippet is also provided.Please note that I am trying to hit the url via reverse proxy(port 443).

I have successfully obtained response while testing through Postman Rest Client ,but I am facing the following errors when trying to hit the url through SAPUI5.

Error facing while running first time:

Error facing while running second time:

Please help.Thanks in advance.