Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3927

can't connect to stomp protocol 1.1 using telnet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.7.0
    • 5.7.0
    • STOMP
    • ubuntu 10.04 32bit java version "1.6.0_24" OpenJDK

    Description

      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.

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            holla2040 Craig Hollabaugh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified