Exception while decoding CONNECT: must not receive this packet typ

Exploring Hive MQTT CLI commands on ActiveMQ broker with MQTT enabled.

But con command is failing with ERROR
Exception while decoding CONNECT: must not receive this packet type.

Any clue what went wrong?.

Here is the command :
con -i test2 -h mqtttest.broker.com -p 8883 -V 3 -u testadmin -pw password

From logs:
2019-12-22 23:24:52 | 65854 | ERROR | Exception while decoding CONNECT: must not receive this packet type: com.hivemq.client.mqtt.mqtt3.exceptions.Mqtt3DisconnectException: Exception while decoding CONNECT: must not receive this packet type
at com.hivemq.client.internal.mqtt.MqttBlockingClient.connect(MqttBlockingClient.java:91)
at com.hivemq.client.internal.mqtt.mqtt3.Mqtt3BlockingClientView.connect(Mqtt3BlockingClientView.java:68)
at com.hivemq.cli.mqtt.MqttClientExecutor.mqtt3Connect(MqttClientExecutor.java:83)
at com.hivemq.cli.mqtt.AbstractMqttClientExecutor.connectMqtt3Client(AbstractMqttClientExecutor.java:267)
at com.hivemq.cli.mqtt.AbstractMqttClientExecutor.connect(AbstractMqttClientExecutor.java:204)
at com.hivemq.cli.mqtt.MqttClientExecutor.connect(MqttClientExecutor.java:55)
at com.hivemq.cli.commands.shell.ShellConnectCommand.connect(ShellConnectCommand.java:84)
at com.hivemq.cli.commands.shell.ShellConnectCommand.run(ShellConnectCommand.java:74)
at picocli.CommandLine.executeUserObject(CommandLine.java:1729)
at picocli.CommandLine.access$900(CommandLine.java:145)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2101)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2068)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1935)
at picocli.CommandLine.execute(CommandLine.java:1864)
at com.hivemq.cli.commands.shell.ShellCommand.interact(ShellCommand.java:153)
at com.hivemq.cli.commands.shell.ShellCommand.run(ShellCommand.java:103)
at picocli.CommandLine.executeUserObject(CommandLine.java:1729)
at picocli.CommandLine.access$900(CommandLine.java:145)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2101)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2068)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1935)
at picocli.CommandLine.execute(CommandLine.java:1864)
at com.hivemq.cli.MqttCLIMain.main(MqttCLIMain.java:59

Hello @dileepmandapam,

Thank you for reaching out and taking part in the conversation.
I’ve tried to reproduce the behaviour you described and it appears to me that mqtttest.broker.com is offline/not reachable.

Have you tried using the public HiveMQ broker for some tests? It can be reached under ‘mqtt-dashboard.com’.

Kind regards,
Florian