I am hoping someone has seen this error before or knows what it is about. I am trying to connect to ActiveMQ from PHP:
Fatal error: Uncaught exception 'Stomp_Exception' with message 'Connection not acknowledged' in /var/www/vservers/robv/www/htdocs/Stomp/Stomp.php:208
The activemq logs show this:
DEBUG WireFormatNegotiator - Sending: WireFormatInfo { version=3, properties={TightEncodingEnabled=true, CacheSize=1024, TcpNoDelayEnabled=true, SizePrefixDisabled=false, StackTraceEnabled=true, MaxInactivityDurationInitalDelay=10000, MaxInactivityDuration=30000, CacheEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}
DEBUG Transport - Transport failed: java.io.IOException: Unknown data type: 99
java.io.IOException: Unknown data type: 99
at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:356)
at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:276)
at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:203)
at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:195)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:183)
at java.lang.Thread.run(Thread.java:595)
DEBUG TransportConnection - Stopping connection: /127.0.0.1:34040
DEBUG TcpTransport - Stopping transport tcp:///127.0.0.1:34040
DEBUG TransportConnection - Stopped connection: /127.0.0.1:34040
DEBUG TransportConnection - Connection Stopped: /127.0.0.1:34040
DEBUG InactivityMonitor - 10000 ms elapsed since last write check.
Here are some excerpts of my configuration of activemq.xml:
<!-- The transport connectors ActiveMQ will listen to -->
<transportConnectors>
<transportConnector name="openwire" uri="tcp://localhost:60616" discoveryUri="multicast://default"/>
<transportConnector name="ssl" uri="ssl://localhost:60617"/>
<transportConnector name="stomp" uri="stomp://localhost:60613"/>
<transportConnector name="xmpp" uri="xmpp://localhost:60222"/>
</transportConnectors>
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="brokerURL" value="tcp://localhost:60616"/>
</bean>
<jetty xmlns="
http://mortbay.com/schemas/jetty/1.0">
<connectors>
<nioConnector port="8061"/>
</connectors>
<handlers>
<webAppContext contextPath="/admin" resourceBase="${activemq.base}/webapps/admin" logUrlOnStart="true"/>
<webAppContext contextPath="/demo" resourceBase="${activemq.base}/webapps/demo" logUrlOnStart="true"/>
<webAppContext contextPath="/fileserver" resourceBase="${activemq.base}/webapps/fileserver" logUrlOnStart="true"/>
<webAppContext contextPath="/noreaster-amq" resourceBase="${activemq.base}/webapps/noreaster-amq" logUrlOnStart="true"/>
</handlers>
</jetty>
And here is my client config of stomp:
require_once("Stomp/Stomp.php");
// make a connection
$con = new Stomp("tcp://localhost:60613");
$topic = "/queue/EVENTS.DEMO";
// connect
$con->connect();