调用PushResult result = jpushClient.sendPush(payload);方法出错

javasdk
标签: #<Tag:0x00007fb83d281480>

(cityfantom) #1

最近发现这个方法不稳定,常常出错

at cn.jiguang.common.connection.NativeHttpClient._doRequest(NativeHttpClient.java:234)
	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:161)
	at cn.jpush.api.JPushClient.sendPush(JPushClient.java:189)

#2

请问具体出的什么错误?


(cityfantom) #3

就是上面的异常,好像是连接不通,但有时候偶尔也可以发出去


#4

你上面提供的好像不包括报错信息,有完整的吗?


(cityfantom) #5
2016-09-18 17:51:49,792 ERROR [application] - 发送告警信息到极光消息服务器出错。

{}
        at cn.jiguang.common.connection.NativeHttpClient._doRequest(NativeHttpCl
ient.java:234)
        at cn.jiguang.common.connection.NativeHttpClient.doRequest(NativeHttpCli
ent.java:99)
        at cn.jiguang.common.connection.NativeHttpClient.sendPost(NativeHttpClie
nt.java:86)
        at cn.jpush.api.push.PushClient.sendPush(PushClient.java:161)
        at cn.jpush.api.JPushClient.sendPush(JPushClient.java:189)
        at org.cf.web.AlertMessageReceiver.sendMessage(AlertMessageReceiver.java
:120)
        at org.cf.web.AlertMessageReceiver.onMessage(AlertMessageReceiver.java:9
4)
        at org.springframework.jms.listener.AbstractMessageListenerContainer.doI
nvokeListener(AbstractMessageListenerContainer.java:560)
        at org.springframework.jms.listener.AbstractMessageListenerContainer.inv
okeListener(AbstractMessageListenerContainer.java:498)
        at org.springframework.jms.listener.AbstractMessageListenerContainer.doE
xecuteListener(AbstractMessageListenerContainer.java:467)
        at org.springframework.jms.listener.AbstractPollingMessageListenerContai
ner.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)
        at org.springframework.jms.listener.AbstractPollingMessageListenerContai
ner.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)
        at org.springframework.jms.listener.DefaultMessageListenerContainer$Asyn
cMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1058
)
        at org.springframework.jms.listener.DefaultMessageListenerContainer$Asyn
cMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:
1050)
        at org.springframework.jms.listener.DefaultMessageListenerContainer$Asyn
cMessageListenerInvoker.run(DefaultMessageListenerContainer.java:947)
        at java.lang.Thread.run(Thread.java:745)

(cityfantom) #6

我知道了

cannot find user by this audience


#7

这个错误参考: