• Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.0.2.Final, 10.0.0.Beta1
    • 9.0.0.CR2
    • None
    • None
    • Hide

      Shut down a STOMP client connection uncleanly, witness that nothing gets logged.

      Or try to connect with an unsupported STOMP version, for example:

      $ nc localhost 61613
      CONNECT
      accept-version:2.0
      
      ^@
      

      (nothing happens at this point, no response)

      Show
      Shut down a STOMP client connection uncleanly, witness that nothing gets logged. Or try to connect with an unsupported STOMP version, for example: $ nc localhost 61613 CONNECT accept-version:2.0 ^@ (nothing happens at this point, no response)
    • Hide

      Add org.jboss.logging module dependency to modules/system/layers/base/org/hornetq/protocol/stomp/main/module.xml

      Show
      Add org.jboss.logging module dependency to modules/system/layers/base/org/hornetq/protocol/stomp/main/module.xml

      STOMP errors do not get logged at all, for example "HQ222068: connection closed ..." on unclean connection close.

      Also, apparently due to the same root cause (or at least fixed by the same fix), for example connecting with an unsupported STOMP version just hangs instead of responding with the ERROR frame.

            [WFLY-4847] STOMP logging does not work

            With the dependency in place, connection closed warnings do get logged properly:

            19:53:01,495 WARN  [org.hornetq.core.protocol.stomp] (Thread-88) HQ222068: connection closed org.hornetq.core.protocol.stomp.StompConnection@51881e0
            

            ...and unsupported version connects get a proper error response:

            $ nc localhost 61613
            CONNECT
            accept-version:2.0
            
            ^@
            ERROR
            message:HQ339002: Stomp versions not supported: 2.0
            version:2.0
            content-type:text/plain
            
            Supported protocol version are v1.0 v1.1 v1.2
            

            Ville Skyttä (Inactive) added a comment - With the dependency in place, connection closed warnings do get logged properly: 19:53:01,495 WARN [org.hornetq.core.protocol.stomp] ( Thread -88) HQ222068: connection closed org.hornetq.core.protocol.stomp.StompConnection@51881e0 ...and unsupported version connects get a proper error response: $ nc localhost 61613 CONNECT accept-version:2.0 ^@ ERROR message:HQ339002: Stomp versions not supported: 2.0 version:2.0 content-type:text/plain Supported protocol version are v1.0 v1.1 v1.2

              jgreene@redhat.com Jason Greene
              vskytta_jira Ville Skyttä (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: