我使用的MQTT协议进行手机推送,但是服务端老是报错,找不到服务器是怎么回

IT_你好 发布于 2013/10/16 10:52
阅读 3K+
收藏 0

@王豪 你好,想跟你请教个问题:

无法连接至服务器 (32103)
    at com.ibm.micro.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:40)
    at com.ibm.micro.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:71)
    at com.ibm.micro.client.mqttv3.internal.ClientComms.connect(ClientComms.java:147)
    at com.ibm.micro.client.mqttv3.MqttClient.connect(MqttClient.java:351)
    at com.ibm.micro.client.mqttv3.MqttClient.connect(MqttClient.java:320)
    at cn.com.nuoter.surfingclub.client.push.WSMQTTServerPubAsync.getMqttConn(WSMQTTServerPubAsync.java:73)
    at cn.com.nuoter.surfingclub.client.push.WSMQTTServerPubAsync.sendMqttMessage(WSMQTTServerPubAsync.java:141)
    at cn.com.nuoter.surfingclub.client.push.action.PushAction.sendMessage(PushAction.java:55)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
    at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:260)
    at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)


以下是问题补充:

@陈超0:我的情况是手机客户端断网,activemq识别不了客户端断了,然后手机客户端再次连接就出现这个问题了 (2013/12/18 12:37)
@陈超0:哦,我这其实出现更多的情况是 3 ,然后服务器报这个错误: javax.jms.InvalidClientIDException: Broker: localhost - Client: XXX already connected from ... (2013/12/18 12:42)
加载中
返回顶部
顶部