收藏
回答

微信支付 统一下单的时候报异常

周末发现有好多笔订单,在下单的时候报http连接异常

微信支付订单号:979432683237048320

2019-05-26 17:15:48 [ERROR]-[com.zenmen.util.HttpClientUtil] 请求http连接异常

java.net.UnknownHostException: api.mch.weixin.qq.com

        at java.net.InetAddress.getAllByName0(InetAddress.java:1280)

        at java.net.InetAddress.getAllByName(InetAddress.java:1192)

        at java.net.InetAddress.getAllByName(InetAddress.java:1126)

        at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:44)

        at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:102)

        at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314)

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

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

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

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

--

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)

        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104)

        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)

        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1524)

        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1480)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

        at java.lang.Thread.run(Thread.java:745)

微信支付订单号:979446851973447680

2019-05-26 18:12:06 [ERROR]-[com.zenmen.util.HttpClientUtil] 请求http连接异常

org.apache.http.NoHttpResponseException: The target server failed to respond

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

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

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

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

        at sun.reflect.GeneratedMethodAccessor197.invoke(Unknown Source)

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

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.apache.http.impl.conn.CPoolProxy.invoke(CPoolProxy.java:138)

        at com.sun.proxy.$Proxy66.receiveResponseHeader(Unknown Source)

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


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

1 个回答

  • 微信支付技术助手4
    微信支付技术助手4
    2019-05-27

    您好

    该类问题属于商户开发环境问题,无法提供指引。


    友情提示:为了保护商户信息,请勿将您的商户私密参数发布在任何平台区域,感谢您对微信支付的支持。


    2019-05-27
    赞同
    回复
登录 后发表内容