You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Alvin Lin (JIRA)" <ji...@apache.org> on 2018/07/17 08:20:00 UTC

[jira] [Created] (AMQ-7012) Misleading error in org.apache.activemq.transport.stomp.ProtocolConverter

Alvin Lin created AMQ-7012:
------------------------------

             Summary: Misleading error in org.apache.activemq.transport.stomp.ProtocolConverter
                 Key: AMQ-7012
                 URL: https://issues.apache.org/jira/browse/AMQ-7012
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.15.4
            Reporter: Alvin Lin


From time to time I see the following log line for STOMP: 

 

{{2018-07-17 07:31:22,204 | WARN  | Exception occurred processing: <Unknown> -> org.apache.activemq.transport.stomp.ProtocolException: No subscription matched. | org.apache.activemq.transport.stomp.ProtocolConverter | ActiveMQ NIO Worker 1186}}

 

 

The misleading part is "<Unknown>", the unknown is suppose to be the STOMP's action word (SEND, SUBSCRIBE etc). 

The problem seems to be 
{code:java}
 org.apache.activemq.transport.stomp.ProtocolConverter.safeGetAction(){code}
that is comparing the STOMP action word with constants defined in 
{code:java}
org.apache.activemq.transport.stomp.ProtocolConverter.Stomp.Commands{code}
But for subscribe and unsubscribe the constants are defined as "SUB" and "UNSUB" which does not match the actual STOMP action verbs.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)