Skip to content

线上碰到重大错误,直接导致推送无法正常调用 #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
leafseelight opened this issue Jul 19, 2022 · 3 comments
Open

Comments

@leafseelight
Copy link

leafseelight commented Jul 19, 2022

报错日志如下:

[2022-07-17 08:33:56.025][ERROR][pool-7-thread-5][com.getui.push.v2.sdk.core.handler.impl.DefaultGtInterceptor] http error. param: ApiParam{baseParam=BaseParam{uri='/push/list/message', method='POST', needToken=true, returnType=com.getui.push.v2.sdk.common.type.ParameterizedTypeImpl@32afa1aa}, pathParams='null', queryParams=null, body=PushDTO{requestId='86a26ef8b28947e09683027cc1d9b4e5', taskName='null', groupName='group1', settings=Settings{ttl=86400000, strategy={st=1}, speed=null, scheduleTime=null}, audience=null, pushMessage=PushMessage{networkType=null, duration='null', notification=null, transmission=xxx.
com.getui.push.v2.sdk.common.ApiException: http error::5000
	at com.getui.push.v2.sdk.common.http.GtHttpClient.doRequest(GtHttpClient.java:158)
	at com.getui.push.v2.sdk.common.http.GtHttpClient.doRequest(GtHttpClient.java:160)
	at com.getui.push.v2.sdk.common.http.GtHttpClient.doRequest(GtHttpClient.java:160)
	at com.getui.push.v2.sdk.common.http.GtHttpClient.execute(GtHttpClient.java:100)
	at com.getui.push.v2.sdk.common.http.HttpManager.syncHttps(HttpManager.java:30)
	at com.getui.push.v2.sdk.core.client.DefaultApiClient.doExecute(DefaultApiClient.java:308)
	at com.getui.push.v2.sdk.core.client.DefaultApiClient.execute(DefaultApiClient.java:265)
	at com.getui.push.v2.sdk.core.factory.GtApiProxyFactory$ApiProxyHandler.invoke(GtApiProxyFactory.java:90)
	at com.sun.proxy.$Proxy298.createMsg(Unknown Source)
	at com.erling.eliots.service.push.getuiv2.PushApiAgent.pushToCids(PushApiAgent.java:62)
	at com.erling.eliots.service.push.getui.GeTuiPushService.sendPushMessage(GeTuiPushService.java:232)
	at com.erling.eliots.service.impl.NotifyServiceImpl.sendPushMessage(NotifyServiceImpl.java:261)
	at com.erling.eliots.service.impl.NotifyServiceImpl$$FastClassBySpringCGLIB$$45995cfb.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
	at com.erling.eliots.service.impl.NotifyServiceImpl$$EnhancerBySpringCGLIB$$5d6076eb.sendPushMessage(<generated>)
	at com.erling.eliots.service.impl.NotifyServiceImpl$$FastClassBySpringCGLIB$$45995cfb.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
	at com.erling.eliots.service.impl.NotifyServiceImpl$$EnhancerBySpringCGLIB$$cab3933b.sendPushMessage(<generated>)
	at com.erling.eliots.mq.PushNotifyReceiver.lambda$process$0(PushNotifyReceiver.java:36)
	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: java.lang.IllegalStateException: Connection pool shut down
	at org.apache.http.util.Asserts.check(Asserts.java:34)
	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.requestConnection(PoolingHttpClientConnectionManager.java:269)
	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:176)
	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
	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.getui.push.v2.sdk.common.http.GtHttpClient.doRequest(GtHttpClient.java:131)
	... 23 common frames omitted

注:transmission涉及隐私,用xxx替换。

处理请参考:
https://blog.csdn.net/m0_46690280/article/details/120825866

@ZJUCJH
Copy link

ZJUCJH commented Dec 29, 2022

感谢您的问题反馈和处理建议,请问是否可以提供具体使用的代码以便我们排查问题?

@GetuiLab
Copy link

GetuiLab commented Feb 6, 2023 via email

@leafseelight
Copy link
Author

代码按你们demo写的,没啥特殊的,程序能正常跑半个月左右,就开始出现这样的问题,好像是你们连接管理配置没有设置共享导致。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants