|
[http-8080-11] INFO cn.jpush.api.common.connection.NativeHttpClient - Created instance with _maxRetryTimes = 3
[http-8080-11] INFO cn.jpush.api.common.connection.NativeHttpClient - Created instance with _maxRetryTimes = 3
[http-8080-11] INFO cn.jpush.api.common.connection.NativeHttpClient - Created instance with _maxRetryTimes = 3
[http-8080-11] INFO cn.jpush.api.common.connection.NativeHttpClient - Created instance with _maxRetryTimes = 3
[http-8080-11] WARN cn.jpush.api.common.connection.NativeHttpClient - Got error response - responseCode:400, responseContent:{"error":{"message":"The schedule-task is invalid, push is invalid:cannot find user by this audience","code":8100}}
[http-8080-11] ERROR cn.jpush.api.common.connection.NativeHttpClient - Your request params is invalid. Please check them according to error message.
{}
at cn.jpush.api.common.connection.NativeHttpClient._doRequest(NativeHttpClient.java:232)
at cn.jpush.api.common.connection.NativeHttpClient.doRequest(NativeHttpClient.java:94)
at cn.jpush.api.common.connection.NativeHttpClient.sendPost(NativeHttpClient.java:81)
at cn.jpush.api.schedule.ScheduleClient.createSchedule(ScheduleClient.java:58)
at cn.jpush.api.JPushClient.createSingleSchedule(JPushClient.java:433)
at jpush.Push.sendPushMessage(Push.java:81)
at jpush.Push.push(Push.java:51)
at jpush.Jpush__do.push(Jpush__do.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.justep.baas.action.Engine.execAction(Unknown Source)
at com.justep.baas.action.Engine.execAction(Unknown Source)
at com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
at com.justep.baas.servlet.BaasServlet.service(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:745)
2016-07-29 09:37:48 Action[jpush/jpush/push]执行失败,{}
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.justep.baas.action.Engine.execAction(Unknown Source)
at com.justep.baas.action.Engine.execAction(Unknown Source)
at com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
at com.justep.baas.servlet.BaasServlet.service(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: {}
at jpush.Push.push(Push.java:57)
at jpush.Jpush__do.push(Jpush__do.java:43)
... 20 more
Caused by: {}
at cn.jpush.api.common.connection.NativeHttpClient._doRequest(NativeHttpClient.java:232)
at cn.jpush.api.common.connection.NativeHttpClient.doRequest(NativeHttpClient.java:94)
at cn.jpush.api.common.connection.NativeHttpClient.sendPost(NativeHttpClient.java:81)
at cn.jpush.api.schedule.ScheduleClient.createSchedule(ScheduleClient.java:58)
at cn.jpush.api.JPushClient.createSingleSchedule(JPushClient.java:433)
at jpush.Push.sendPushMessage(Push.java:81)
at jpush.Push.push(Push.java:51)
... 21 more
集成极光错误代码
实现的功能是集成极光接受消息和发送消息。
现在接受消息没问题,发送消息时提示上面的错误,js代码。 是什么原因呀?
Model.prototype.sendOrderPushMessage = function() {
alert('111');
debugger;
jpushInstance.getRegistrationID().done(function(id) {
Baas.sendRequest({
"method" : "post",
"url" : "/jpush/jpush",
"action" : "push",
"params" : {
registrationId : 'id'
},
"success" : function(data) {
alert('111');
}
});
});
};
Model.prototype.button1Click = function(event) {
this.sendOrderPushMessage();
};
|
|