Minor correction...the version in master is 5.12-SNAPSHOT On Tue, Jun 30, 2015 at 10:39 PM, Christopher Shannon < christopher.l.shan...@gmail.com> wrote:
> Is the full stack trace in a log file that you could paste? It would make > it easier to track down where the out of bounds exception happened. > > Also, can you try running against the latest 5.12.0-SNAPSHOT? There's been > some work done to MQTT over Websockets and I'm wondering if this issue > still exists against the latest build. > > On Mon, Jun 29, 2015 at 4:08 PM, roox_4000 <reza.mazar...@gmail.com> > wrote: > >> 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://127.0.0.1:18967 >> failed:java.io.IOExeption:Unexpected error >> occurred:java.lang.ArrayIndexOutOfBoundsException :12 >> >> <http://activemq.2283324.n4.nabble.com/file/n4698367/activemq.jpg> >> >> This Error In A loop That Port Error(tcp://127.0.0.1:18967) In Each >> Period >> Is Changed >> >> Subscribe.php : >> >> <?php >> >> require("../phpMQTT.php"); >> >> >> $mqtt = new phpMQTT("localhost", 1883, "phpMQTT Sub Example"); //Change >> client name to something unique >> >> if(!$mqtt->connect()){ >> exit(1); >> } >> >> $topics['chat/general'] = array("qos"=>0, "function"=>"procmsg"); >> $mqtt->subscribe($topics,0); >> >> while($mqtt->proc()){ >> >> } >> >> >> $mqtt->close(); >> >> function procmsg($topic,$msg){ >> echo "Msg Recieved: ".date("r")."\nTopic:{$topic}\n$msg\n"; >> } >> >> >> >> ?> >> >> >> >> -- >> View this message in context: >> http://activemq.2283324.n4.nabble.com/ActiveMQ-MQTT-crash-when-subscribe-tp4698367.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> > >