You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Martin Jarvis (JIRA)" <ji...@apache.org> on 2012/06/25 16:18:42 UTC
[jira] [Created] (AMQ-3898) Server restart required after accessing
via MQTT
Martin Jarvis created AMQ-3898:
----------------------------------
Summary: Server restart required after accessing via MQTT
Key: AMQ-3898
URL: https://issues.apache.org/jira/browse/AMQ-3898
Project: ActiveMQ
Issue Type: Bug
Components: MQTT
Affects Versions: 5.6.0
Environment: MacOS Lion, java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)
Reporter: Martin Jarvis
Attachments: activemq.xml
I am using the Paho sample client (org.eclipse.paho.sample.mqttv3app.Sample) to access the MQTT server in ActiveMQ. After an initial successful connection, I receive the following error:
Broker unavailable (3)
at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:27)
at org.eclipse.paho.client.mqttv3.internal.ClientComms.connect(ClientComms.java:172)
at org.eclipse.paho.client.mqttv3.MqttClient.connect(MqttClient.java:339)
at org.eclipse.paho.client.mqttv3.MqttClient.connect(MqttClient.java:308)
at org.eclipse.paho.sample.mqttv3app.Sample.publish(Sample.java:185)
at org.eclipse.paho.sample.mqttv3app.Sample.main(Sample.java:124)
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.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
To reconnect I have to restart the ActiveMQ server.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (AMQ-3898) Server restart required after accessing
via MQTT
Posted by "Martin Jarvis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Jarvis updated AMQ-3898:
-------------------------------
Attachment: activemq.xml
My ActiveMQ config file with MQTT enabled.
> Server restart required after accessing via MQTT
> ------------------------------------------------
>
> Key: AMQ-3898
> URL: https://issues.apache.org/jira/browse/AMQ-3898
> Project: ActiveMQ
> Issue Type: Bug
> Components: MQTT
> Affects Versions: 5.6.0
> Environment: MacOS Lion, java version "1.6.0_31"
> Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635)
> Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)
> Reporter: Martin Jarvis
> Attachments: activemq.xml
>
>
> I am using the Paho sample client (org.eclipse.paho.sample.mqttv3app.Sample) to access the MQTT server in ActiveMQ. After an initial successful connection, I receive the following error:
> Broker unavailable (3)
> at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:27)
> at org.eclipse.paho.client.mqttv3.internal.ClientComms.connect(ClientComms.java:172)
> at org.eclipse.paho.client.mqttv3.MqttClient.connect(MqttClient.java:339)
> at org.eclipse.paho.client.mqttv3.MqttClient.connect(MqttClient.java:308)
> at org.eclipse.paho.sample.mqttv3app.Sample.publish(Sample.java:185)
> at org.eclipse.paho.sample.mqttv3app.Sample.main(Sample.java:124)
> 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.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
> To reconnect I have to restart the ActiveMQ server.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (AMQ-3898) Server restart required after
accessing via MQTT
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned AMQ-3898:
--------------------------------
Assignee: Rob Davies
Rob maybe you can take a look at this?
> Server restart required after accessing via MQTT
> ------------------------------------------------
>
> Key: AMQ-3898
> URL: https://issues.apache.org/jira/browse/AMQ-3898
> Project: ActiveMQ
> Issue Type: Bug
> Components: MQTT
> Affects Versions: 5.6.0
> Environment: MacOS Lion, java version "1.6.0_31"
> Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635)
> Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)
> Reporter: Martin Jarvis
> Assignee: Rob Davies
> Attachments: activemq.xml
>
>
> I am using the Paho sample client (org.eclipse.paho.sample.mqttv3app.Sample) to access the MQTT server in ActiveMQ. After an initial successful connection, I receive the following error:
> Broker unavailable (3)
> at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:27)
> at org.eclipse.paho.client.mqttv3.internal.ClientComms.connect(ClientComms.java:172)
> at org.eclipse.paho.client.mqttv3.MqttClient.connect(MqttClient.java:339)
> at org.eclipse.paho.client.mqttv3.MqttClient.connect(MqttClient.java:308)
> at org.eclipse.paho.sample.mqttv3app.Sample.publish(Sample.java:185)
> at org.eclipse.paho.sample.mqttv3app.Sample.main(Sample.java:124)
> 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.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
> To reconnect I have to restart the ActiveMQ server.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQ-3898) Server restart required after
accessing via MQTT
Posted by "Martin Jarvis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401213#comment-13401213 ]
Martin Jarvis commented on AMQ-3898:
------------------------------------
I tried the same test on my Ubuntu 10.04 server using
java version "1.6.0_23"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10.2)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
I got the same error:
$ java -jar paho.jar
Connected to tcp://localhost:1883
Publishing at: 1340695195960 to topic "Sample/Java/v3" qos 2
Disconnected
$ java -jar paho.jar
Broker unavailable (3)
at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:27)
at org.eclipse.paho.client.mqttv3.internal.ClientComms.connect(ClientComms.java:172)
at org.eclipse.paho.client.mqttv3.MqttClient.connect(MqttClient.java:339)
at org.eclipse.paho.client.mqttv3.MqttClient.connect(MqttClient.java:308)
at org.eclipse.paho.sample.mqttv3app.Sample.publish(Sample.java:185)
at org.eclipse.paho.sample.mqttv3app.Sample.main(Sample.java:124)
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:616)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
> Server restart required after accessing via MQTT
> ------------------------------------------------
>
> Key: AMQ-3898
> URL: https://issues.apache.org/jira/browse/AMQ-3898
> Project: ActiveMQ
> Issue Type: Bug
> Components: MQTT
> Affects Versions: 5.6.0
> Environment: MacOS Lion, java version "1.6.0_31"
> Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635)
> Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)
> Reporter: Martin Jarvis
> Attachments: activemq.xml
>
>
> I am using the Paho sample client (org.eclipse.paho.sample.mqttv3app.Sample) to access the MQTT server in ActiveMQ. After an initial successful connection, I receive the following error:
> Broker unavailable (3)
> at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:27)
> at org.eclipse.paho.client.mqttv3.internal.ClientComms.connect(ClientComms.java:172)
> at org.eclipse.paho.client.mqttv3.MqttClient.connect(MqttClient.java:339)
> at org.eclipse.paho.client.mqttv3.MqttClient.connect(MqttClient.java:308)
> at org.eclipse.paho.sample.mqttv3app.Sample.publish(Sample.java:185)
> at org.eclipse.paho.sample.mqttv3app.Sample.main(Sample.java:124)
> 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.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
> To reconnect I have to restart the ActiveMQ server.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira