From a25d2edc2fe2fd4706b5de95799d51cdf5fa4e89 Mon Sep 17 00:00:00 2001 From: Daniel Qian Date: Mon, 14 Sep 2015 12:38:29 +0800 Subject: [PATCH] =?UTF-8?q?issue=20#204,=20=E5=9B=A0=E4=B8=BAgetAccessToke?= =?UTF-8?q?n()=E6=96=B9=E6=B3=95=E5=8F=AF=E8=83=BD=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E8=BF=87=E6=9C=9F=E6=95=B0=E6=8D=AE=EF=BC=8C=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=9C=A8executeInternal=E5=86=85=E9=83=A8=E5=AE=B9=E6=98=93?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=20=E6=97=A0=E9=99=90=E9=80=92=E5=BD=92?= =?UTF-8?q?=E4=BA=A7=E7=94=9FStackoverflowException?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/me/chanjar/weixin/cp/api/WxCpServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpServiceImpl.java index 7b95c32c..3b9e8fe7 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpServiceImpl.java @@ -555,7 +555,7 @@ public class WxCpServiceImpl implements WxCpService { throw new RuntimeException("微信服务端异常,超出重试次数"); } - protected T executeInternal(RequestExecutor executor, String uri, E data) throws WxErrorException { + protected synchronized T executeInternal(RequestExecutor executor, String uri, E data) throws WxErrorException { if (uri.indexOf("access_token=") != -1) { throw new IllegalArgumentException("uri参数中不允许有access_token: " + uri); }