极光接入app中,后台日志经常出现连接超时错误

919442958
2016-08-23 01:55 1.3k 0
cn.jpush.api.common.resp.APIConnectionException: Read timed out. 
Read response from JPush Server timed out. 
If this is a Push action, you may not want to retry. 
It may be due to slowly response from JPush server, or unstable connection. 
If the problem persists, please let us know at support@jpush.cn.
    at cn.jpush.api.common.connection.NativeHttpClient.doRequest(NativeHttpClient.java:98)
    at cn.jpush.api.common.connection.NativeHttpClient.sendPost(NativeHttpClient.java:80)
    at cn.jpush.api.push.PushClient.sendPush(PushClient.java:119)
    at cn.jpush.api.JPushClient.sendPush(JPushClient.java:141)
    at com.jhhy.project.mobile.util.JPushMessageUtilTeacher.sendPush(JPushMessageUtilTeacher.java:43)
    at com.jhhy.admin.service.impl.JPushMessageServiceImpl.pushNotificationTeacher(JPushMessageServiceImpl.java:192)
    at com.jhhy.admin.service.impl.JPushMessageServiceImpl.sendTeacherPush(JPushMessageServiceImpl.java:213)
    at sun.reflect.GeneratedMethodAccessor182.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
    at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at com.sun.proxy.$Proxy90.sendTeacherPush(Unknown Source)
    at com.jhhy.admin.service.TeacherClientTask.pushOptionToTeacher(TeacherClientTask.java:135)
    at com.jhhy.admin.service.TeacherClientTask$$FastClassBySpringCGLIB$$e41165a8.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
    at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653)
    at com.jhhy.admin.service.TeacherClientTask$$EnhancerBySpringCGLIB$$2f765fe1.pushOptionToTeacher(<generated>)
    at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269)
    at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:257)
    at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.net.SocketTimeoutException: Read timed out
    at cn.jpush.api.common.connection.NativeHttpClient._doRequest(NativeHttpClient.java:235)
    at cn.jpush.api.common.connection.NativeHttpClient.doRequest(NativeHttpClient.java:93)
    ... 41 more

1个回答

热门排序