activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roox_4000 <>
Subject ActiveMQ(MQTT) crash when subscribe
Date Mon, 29 Jun 2015 20:08:44 GMT
I Download ActiveMQ Broker v5.11.1 And Run It (Use MQTT). I Can Publish And
Subscribe With Websocket & PHP For Publish And Broker Work Well.

But When Use PHP for subscribe Broker Console Give Me This ERROR And Dont
Subscribe Topic

WARN : Transport Connection to :tcp:// error 
     occurred:java.lang.ArrayIndexOutOfBoundsException :12


This Error In A loop That Port Error(tcp:// In Each Period
Is Changed

Subscribe.php :



$mqtt = new phpMQTT("localhost", 1883, "phpMQTT Sub Example"); //Change
client name to something unique


$topics['chat/general'] = array("qos"=>0, "function"=>"procmsg");




function procmsg($topic,$msg){
        echo "Msg Recieved: ".date("r")."\nTopic:{$topic}\n$msg\n";


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

View raw message