activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Hollabaugh (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQ-3927) can't connect to stomp protocol 1.1 using telnet
Date Mon, 16 Jul 2012 06:38:33 GMT
Craig Hollabaugh created AMQ-3927:
-------------------------------------

             Summary: can't connect to stomp protocol 1.1 using telnet
                 Key: AMQ-3927
                 URL: https://issues.apache.org/jira/browse/AMQ-3927
             Project: ActiveMQ
          Issue Type: Bug
          Components: stomp
    Affects Versions: 5.7.0
         Environment: ubuntu 10.04 32bit java version "1.6.0_24" OpenJDK
            Reporter: Craig Hollabaugh
            Priority: Minor


Using telnet I can't connect to stomp protocol 1.1. netcat works fine


holla@knopfler[507]: telnet eric 61613
Connected to eric.
Escape character is '^]'.
CONNECT
accept-version:1.1
heart-beat:0,0

^@   
ERROR
content-type:text/plain
], supported versions are: [1.1, 1.0]

], supported versions are: [1.1, 1.0]rotocolException: Invalid Protocol version[1.1
        at org.apache.activemq.transport.stomp.ProtocolConverter.onStompConnect(ProtocolConverter.java:586)
        at org.apache.activemq.transport.stomp.ProtocolConverter.onStompCommand(ProtocolConverter.java:181)
        at org.apache.activemq.transport.stomp.StompTransportFilter.onCommand(StompTransportFilter.java:76)
        at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
        at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:222)
        at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:204)
        at java.lang.Thread.run(Thread.java:619)

Connection closed by foreign host.

holla@knopfler[508]: nc eric 61613
Trying 75.101.139.42...
^C
holla@knopfler[509]: nc eric 61613
CONNECT
accept-version:1.1
heart-beat:0,0

^@
CONNECTED
heart-beat:0,0
session:ID:eric-51104-1342368411805-2:16
server:ActiveMQ/5.7-SNAPSHOT
version:1.1


I suspect the telnet induced CR or LF isn't stripped correctly. You can see this because the
error message formatting is screwed up.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message