activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aragoubi <>
Subject [] (qtp749972657-157) Transport Connection to: MQTTSocket_2052272783 failed: Invalid CONNECT encoding
Date Wed, 10 May 2017 09:45:44 GMT
I integrated activeMQ broker into my jboss in such a way that the broker is
launched when jboss launch.
This is transport connectors defined in my broker's config file:

      <transportConnector name="mimo.broker1" uri="tcp://" />
	  <transportConnector name="mqtt+ws" uri="ws://"/>	  

I tried a mqtt client using java paho mqttv3, this is how I tried to connect
to my broker:

	String broker = "ws://";
        		String clientId = "JavaSample";
	MemoryPersistence persistence = new MemoryPersistence();
			MqttAsyncClient sampleClient = new MqttAsyncClient(broker, clientId,
			MqttConnectOptions connOpts = new MqttConnectOptions();
                        IMqttToken token = sampleClient.connect(connOpts);
                }catch(MqttException e){

I think that the problem came from the port defined into the broker, because
when I tried to connect to mosquito broker "tcp://"
it works.
I tried also to change by localhost or by by I am getting
the same problem.

Could someone help me with this ?

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message