You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by marymonnt <ma...@gmail.com> on 2013/05/23 18:44:10 UTC

Can't connect via Stomp to Apollo broker

I'm using the version 3.7.0 from activemq-cpp and trying to connect with
Stomp to Apollo.
* I tested with openwire - worked fine.
* I tested with version 3.3.0 from activemq-cpp - worked fine

The version 3.7.0 doesn't work!.



--
View this message in context: http://activemq.2283324.n4.nabble.com/Can-t-connect-via-Stomp-to-Apollo-broker-tp4667406.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Can't connect via Stomp to Apollo broker

Posted by gaikwaja <ga...@yahoo.com>.
Hi ,

I am facing the same issue while connecting from cpp cms client to apollo
using stomp ,no issues while connecting using openwire format , I amrunning
the listener on same box as broker.
is there a prior cms cpp client version which works or is there a workaround
?

I have attached the connection/stacktrace logs here ,
from these logs it appears that the stomp CONNECT call is trying to open a
temporary queue/topic which is not supported by cpp cms client as per the
documentation <http://activemq.apache.org/cms/stomp-support.html>

connection.log
2015-02-07 17:40:19,044 connected: local:/127.0.0.1:61613,
remote:/127.0.0.1:38520
2015-02-07 17:40:19,087 STOMP connection '/127.0.0.1:38520' error: Internal
Server Error:
org.apache.activemq.apollo.stomp.StompProtocolHandler$ProtocolException:
Invalid stomp destination name:
/topic/ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic

stacktrace log:
2015-02-07 17:40:19,087 | INFO  | stackref=14b651f5aac
org.apache.activemq.apollo.stomp.StompProtocolHandler$ProtocolException:
Invalid stomp destination name:
/topic/ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic
    at
org.apache.activemq.apollo.stomp.StompProtocolHandler.decode_addresses(StompProtocolHandler.scala:739)
    at
org.apache.activemq.apollo.stomp.StompProtocolHandler.on_stomp_subscribe(StompProtocolHandler.scala:1514)
    at
org.apache.activemq.apollo.stomp.StompProtocolHandler.on_transport_command(StompProtocolHandler.scala:1030)
    at
org.apache.activemq.apollo.broker.BrokerConnection.on_transport_command(Connection.scala:144)
    at
org.apache.activemq.apollo.broker.Connection$$anon$1.onTransportCommand(Connection.scala:71)
    at
org.fusesource.hawtdispatch.transport.TcpTransport.drainInbound(TcpTransport.java:709)
    at
org.fusesource.hawtdispatch.transport.TcpTransport$6.run(TcpTransport.java:588)
    at
org.fusesource.hawtdispatch.internal.NioDispatchSource$3.run(NioDispatchSource.java:209)
    at
org.fusesource.hawtdispatch.internal.SerialDispatchQueue.run(SerialDispatchQueue.java:100)
    at
org.fusesource.hawtdispatch.internal.pool.SimpleThread.run(SimpleThread.java:77)
2015-02-08 04:37:13,384 | WARN  | stackref=14b677a0801

Regards
gaikwajay




--
View this message in context: http://activemq.2283324.n4.nabble.com/Can-t-connect-via-Stomp-to-Apollo-broker-tp4667406p4691216.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Can't connect via Stomp to Apollo broker

Posted by Timothy Bish <ta...@gmail.com>.
On 05/23/2013 12:44 PM, marymonnt wrote:
> I'm using the version 3.7.0 from activemq-cpp and trying to connect with
> Stomp to Apollo.
> * I tested with openwire - worked fine.
> * I tested with version 3.3.0 from activemq-cpp - worked fine
>
> The version 3.7.0 doesn't work!.
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Can-t-connect-via-Stomp-to-Apollo-broker-tp4667406.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Try to capture some logs from the broker to see what's going wrong. Also 
there's no real difference in STOMP since like v3.3.0 so you don't 
really need to upgrade, the STOMP support in the CMS client is basically 
legacy holdover at this point.

-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/

www.camelone.org : The open source integration conference: