收藏
回答

公众号消息推送模板Timeout waiting for connection from pool?

推送消息失败: me.chanjar.weixin.common.error.WxErrorException: 错误: Code=0, Msg=Timeout waiting for connection from pool

        at me.chanjar.weixin.mp.api.impl.BaseWxMpServiceImpl.executeInternal(BaseWxMpServiceImpl.java:349)

        at me.chanjar.weixin.mp.api.impl.BaseWxMpServiceImpl.execute(BaseWxMpServiceImpl.java:283)

        at me.chanjar.weixin.mp.api.impl.BaseWxMpServiceImpl.post(BaseWxMpServiceImpl.java:272)

        at me.chanjar.weixin.mp.api.impl.WxMpTemplateMsgServiceImpl.sendTemplateMsg(WxMpTemplateMsgServiceImpl.java:36)

        at com.youxin.ifood.wx.utils.TemplateMsgUtil.sendRechargeTemplateMsg(TemplateMsgUtil.java:99)

        at com.youxin.ifood.activemq.service.impl.RechargeSuccessEventPushMessageImpl.doTask(RechargeSuccessEventPushMessageImpl.java:102)

        at com.youxin.ifood.activemq.service.impl.RechargeSuccessEventPushMessageImpl$1.run(RechargeSuccessEventPushMessageImpl.java:57)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

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

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

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

Caused by: org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool

        at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.leaseConnection(PoolingHttpClientConnectionManager.java:292)

        at org.apache.http.impl.conn.PoolingHttpClientConnectionManager$1.get(PoolingHttpClientConnectionManager.java:269)

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

        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 me.chanjar.weixin.common.util.http.apache.ApacheSimplePostRequestExecutor.execute(ApacheSimplePostRequestExecutor.java:39)

        at me.chanjar.weixin.common.util.http.apache.ApacheSimplePostRequestExecutor.execute(ApacheSimplePostRequestExecutor.java:20)

        at me.chanjar.weixin.mp.api.impl.BaseWxMpServiceImpl.executeInternal(BaseWxMpServiceImpl.java:323)

        ... 11 common frames omitted

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

1 个回答

  • Summer✨
    Summer✨
    2022-05-13

    你好,你调用什么功能什么接口?请完整描述你的问题,

    2022-05-13
    有用
    回复
登录 后发表内容
问题标签