You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2018/07/19 21:33:00 UTC
[jira] [Resolved] (AMQ-7012) Misleading error in
org.apache.activemq.transport.stomp.ProtocolConverter
[ https://issues.apache.org/jira/browse/AMQ-7012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish resolved AMQ-7012.
-------------------------------
Resolution: Fixed
Fix Version/s: 5.15.5
> 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
> Priority: Major
> Fix For: 5.15.5
>
>
> 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)