收藏
回答

微信支付统一下单报错

avax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target2019-08-22 22:06:27.163  INFO 28106 --- [pool-3-thread-1] wxpay java sdk                           : get first report msg:

2019-08-22 22:06:27.164  INFO 28106 --- [pool-3-thread-1] wxpay java sdk                           : try get remain report msg

at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)

at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1964)

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

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

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

at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)

at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1052)

at sun.security.ssl.Handshaker.process_record(Handshaker.java:987)

at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)

at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)

at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)

at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)

at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396)

at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355)

at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)

at org.apache.http.impl.conn.BasicHttpClientConnectionManager.connect(BasicHttpClientConnectionManager.java:323)

at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)

at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)

at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)

at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)

at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)

at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)

at com.company.platform.base.config.wxpay.sdk.WXPayRequest.requestOnce(WXPayRequest.java:108)

at com.company.platform.base.config.wxpay.sdk.WXPayRequest.request(WXPayRequest.java:127)

at com.company.platform.base.config.wxpay.sdk.WXPayRequest.requestWithoutCert(WXPayRequest.java:232)

at com.company.platform.base.config.wxpay.sdk.WXPay.requestWithoutCert(WXPay.java:158)

at com.company.platform.base.config.wxpay.sdk.WXPay.unifiedOrder(WXPay.java:364)

at com.company.platform.base.config.wxpay.sdk.WXPay.unifiedOrder(WXPay.java:340)

at com.company.platform.restapi.service.hfss.impl.CourseApplyServiceImpl.unifiedorder(CourseApplyServiceImpl.java:474)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)


回答关注问题邀请回答
收藏

3 个回答

  • Tanght
    Tanght
    2019-12-05

    不好意思。最近一直没登录。你看一下你的微信支付的域名是不是错了。

    2019-12-05
    赞同
    回复
  • 吴铭坤🍉
    吴铭坤🍉
    2019-12-04

    请问是如何解决,我也遇到这样的问题

    2019-12-04
    赞同
    回复
  • 阿客
    阿客
    2019-08-22

    证书那块问题

    2019-08-22
    赞同
    回复 6
    • Tanght
      Tanght
      2019-08-23
      谢谢 是我域名替换错了
      2019-08-23
      回复
    • 我是猪
      我是猪
      2019-10-28回复Tanght
      哪个域名,我的也是这个错误
      2019-10-28
      回复
    • 吴铭坤🍉
      吴铭坤🍉
      2019-12-05
      您好,请问我的请求是无证书请求,还会出现这个问题,有接触过吗?
      2019-12-05
      回复
    • Tanght
      Tanght
      2019-12-05回复吴铭坤🍉
      沙箱环境吗?微信支付的沙箱环境有问题
      2019-12-05
      回复
    • 吴铭坤🍉
      吴铭坤🍉
      2019-12-11回复Tanght
      不是沙箱环境是正式的环境
      2019-12-11
      回复
    查看更多(1)
登录 后发表内容