java后台别名推送时


(本村最菜java) #1

at cn.jiguang.common.connection.NativeHttpClient._doRequest(NativeHttpClient.java:235)
at cn.jiguang.common.connection.NativeHttpClient.doRequest(NativeHttpClient.java:99)
at cn.jiguang.common.connection.NativeHttpClient.sendPost(NativeHttpClient.java:86)
at cn.jpush.api.push.PushClient.sendPush(PushClient.java:163)
at cn.jpush.api.JPushClient.sendPush(JPushClient.java:193)
at base.util.JPushUtil.send(JPushUtil.java:184)
at base.util.JPushUtil.sendAliasPush(JPushUtil.java:91)
at backstage.service.UserInfoService.push(UserInfoService.java:204)
at backstage.action.UserInfoAction.sendMessage(UserInfoAction.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at m.system.util.ClassUtil.executeMethod(ClassUtil.java:203)
at m.system.util.ClassUtil.executeMethod(ClassUtil.java:190)
at m.system.filter.ActionFilter.doFilter(ActionFilter.java:88)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)


#2

1、你调了什么 API,传了什么参数,SDK 版本多少
2、注意网络问题


(本村最菜java) #3

推送的api javasdk


(本村最菜java) #4

如果推送的别名不存在是不是会报错


#5

别名没有设备设置过,推送报 1011


(本村最菜java) #7

因为安卓登录时注册别名,退出时注销别名。给A,B,C三个别名发送信息,三个都报错,但是如果A安卓上登录,再推送只有B,C报错,退出A,登录B,A,C报错B不报错


#8

我这里已经说过了,别名下没有设备绑定,则找不到目标,必然报错 1011


(本村最菜java) #9

因为现在直接报的异常 有没有办法不要让他报异常呢?


#10

你们客户端设置了或者删除了别名,告诉你服务器,在别名下没有设备的时候不要推送