收藏
回答

新版微信支付 demo 获取地址ip报错

新版微信支付 demo   获取地址ip报错

Exception in thread "Timer-0" java.lang.NoSuchMethodError: org.apache.http.HttpHost.getAddress()Ljava/net/InetAddress;
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:112)
    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.github.wxpay.sdk.WXPayRequest.requestOnce(WXPayRequest.java:108)
    at com.github.wxpay.sdk.WXPayRequest.request(WXPayRequest.java:127)
    at com.github.wxpay.sdk.WXPayRequest.requestWithoutCert(WXPayRequest.java:232)
    at com.github.wxpay.sdk.WXPay.requestWithoutCert(WXPay.java:158)
    at com.github.wxpay.sdk.WXPay.unifiedOrder(WXPay.java:364)
    at com.github.wxpay.sdk.WXPay.unifiedOrder(WXPay.java:340)
    at com.wall.Impi.dyne.WeixinPayServiceImpl.scanCode2(WeixinPayServiceImpl.java:37)
    at com.wall.listener.job.ScanningJob.run(ScanningJob.java:28)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)

最后一次编辑于  03-29  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏投诉关注问题回答

1 个回答

  • 微信支付技术助手
    微信支付技术助手
    04-02

    您好,请详细描述一下您的问题,这个新版demo在哪个地方?

    04-02
    赞同
    回复