MQTT Android not connecting to ActiveMq <p>I'm trying to connect an Android application to an ActiveMQ server. I'm using ActiveMQ because my server already talks to the ActiveMQ server using JMS so it will be very beneficial for me to connect the android client to the JMS broker.</p> <p>I've enabled MQTT in ActiveMQ following this page: <a href="http://activemq.apache.org/mqtt.html" rel="nofollow">http://activemq.apache.org/mqtt.html</a> and I had a small problem with any of the MQTT clients (IBM MQTT client or Paho MQTT Client) I've downloaded didn't recognize "mqtt://" url prefix so I tried to use tcp instead. This is how the configuration looks like in activemq.xml: </p> <pre><code>&lt;transportConnectors&gt; &lt;transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&amp;amp;wireformat.maxFrameSize=104857600"/&gt; &lt;transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&amp;amp;wireformat.maxFrameSize=104857600"/&gt; &lt;transportConnector name="mqtt" uri="tcp://0.0.0.0:1883"/&gt; &lt;/transportConnectors&gt; </code></pre> <p>When I try to connect using any mqtt client example such as this one: <a href="http://mosquitto.org/2011/11/android-mqtt-example-project/" rel="nofollow">http://mosquitto.org/2011/11/android-mqtt-example-project/</a> I'm unable to connect to the ActiveMQ and I get an error on the server side:</p> <pre><code>2013-09-05 12:34:17,550 | WARN | Transport Connection to: tcp://192.168.0.111:42148 failed: java.io.IOException: Unknown data type: 77 | org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ Transport: tcp:///192.168.0.111:42148@1883 </code></pre> <p>Any suggestions? Thanks!</p>