收藏
回答

退款的时候报了个异常

 2019-02-14 09:41:34,091 [http-apr-80-exec-5] ERROR c.c.w.k.c.WandaKouBeiAjaxDishController [WandaKouBeiAjaxDishController.java:174] api.mch.weixin.qq.com:443 failed to respond
 org.apache.http.NoHttpResponseException: api.mch.weixin.qq.com:443 failed to respond
    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:141)
    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
    at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)

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

3 个回答

  • 邱实
    邱实
    2019-12-22

    有人解决这个问题了吗?是怎么处理的呢

    2019-12-22
    有用
    回复
  • tts2
    tts2
    2019-02-14

    我查到的资料是证书没加载,证书在tomcat下这个东西要怎么用?

    2019-02-14
    有用
    回复 2
    • 康大山
      康大山
      2019-03-28

      这个问题,你解决了吗, 怎么解决的? 分享一下,多谢

      2019-03-28
      回复
    • 邱实
      邱实
      2019-12-22
      问题解决了吗?我现在也是遇到了这个问题
      2019-12-22
      回复
  • 微信支付技术助手7
    微信支付技术助手7
    2019-02-14

    您好,因为请求头的Host和实际的url不符合造成。请检查

    2019-02-14
    有用
    回复 2
    • 康大山
      康大山
      2019-03-28

      我遇到的也是这个问题, url不就是https://api.mch.weixin.qq.com/secapi/pay/refund 这个吗?

      请求头的host是指header中的哪个字段?


      org.apache.http.NoHttpResponseException: api.mch.weixin.qq.com:443 failed to respond

      at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:141)

      at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)

      at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)

      at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)

      at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:165)

      at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)

      at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)

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

      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 com.cxp.server.common.util.HttpUtil.sendXmlPost(HttpUtil.java:120)

      at com.cxp.server.service.wechat.WeChatPayService.execute(WeChatPayService.java:112)

      at com.cxp.server.service.wechat.WeChatPayService.refund(WeChatPayService.java:75)

      at com.cxp.server.control.TestControl.main(TestControl.java:58)


      2019-03-28
      回复
    • jumpO_ojump
      jumpO_ojump
      2019-10-30
      请问解决了么
      2019-10-30
      回复
登录 后发表内容