`
elvis4139
  • 浏览: 143935 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

解决PKIX path building failed错误

阅读更多
调用接口出现以下异常:
[FRIP]2018-08-13 15:23:51 [DEBUG] - org.apache.commons.httpclient.HttpConnection(1228) -Exception caught when closing output
javax.net.ssl.SSLException: Connection has been shutdown: 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


查找之后发现是用SSL连接接口,因服务器不能信任对方的证书导致。试验了几种方法,最终用以下方法解决了问题,连接地址:http://www.cnblogs.com/wanghaixing/p/5630070.html

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics