Details
Description
In case of an invalid STOMP version used, we get an unnecessary stack trace:
2021-04-28T09:17:07.004+0200 [ActiveMQ NIO Worker 0] WARN Transport - Transport Connection to: tcp://10.0.0.1:50938 failed org.apache.activemq.transport.stomp.ProtocolException: Invalid Protocol version[3.14], supported versions are: [1.2, 1.1, 1.0] at org.apache.activemq.transport.stomp.StompCodec.detectVersion(StompCodec.java:151) at org.apache.activemq.transport.stomp.ProtocolConverter.onStompConnect(ProtocolConverter.java:760) at org.apache.activemq.transport.stomp.ProtocolConverter.onStompCommand(ProtocolConverter.java:254) at org.apache.activemq.transport.stomp.StompTransportFilter.onCommand(StompTransportFilter.java:85) at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83) at org.apache.activemq.transport.stomp.StompCodec.processCommand(StompCodec.java:133) at org.apache.activemq.transport.stomp.StompCodec.parse(StompCodec.java:100) at org.apache.activemq.transport.stomp.StompNIOTransport.processBuffer(StompNIOTransport.java:136) at org.apache.activemq.transport.stomp.StompNIOTransport.serviceRead(StompNIOTransport.java:121) at org.apache.activemq.transport.stomp.StompNIOTransport.access$000(StompNIOTransport.java:44) at org.apache.activemq.transport.stomp.StompNIOTransport$1.onSelect(StompNIOTransport.java:73) at org.apache.activemq.transport.nio.SelectorSelection.onSelect(SelectorSelection.java:98) at org.apache.activemq.transport.nio.SelectorWorker$1.run(SelectorWorker.java:123) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
This looks very similar to AMQ-8252.