Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8467ACA76 for ; Tue, 26 Jun 2012 07:23:49 +0000 (UTC) Received: (qmail 28252 invoked by uid 500); 26 Jun 2012 07:23:49 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 28038 invoked by uid 500); 26 Jun 2012 07:23:47 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 27737 invoked by uid 99); 26 Jun 2012 07:23:44 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 07:23:44 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 16B9314283F for ; Tue, 26 Jun 2012 07:23:44 +0000 (UTC) Date: Tue, 26 Jun 2012 07:23:44 +0000 (UTC) From: "Martin Jarvis (JIRA)" To: dev@activemq.apache.org Message-ID: <116531205.55328.1340695424096.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1648276141.51052.1340633922743.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (AMQ-3898) Server restart required after accessing via MQTT MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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