You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "clebert suconic (JIRA)" <ji...@apache.org> on 2015/09/24 19:48:04 UTC

[jira] [Commented] (ARTEMIS-231) STOMP error when not unsubscribing from topic

    [ https://issues.apache.org/jira/browse/ARTEMIS-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14906725#comment-14906725 ] 

clebert suconic commented on ARTEMIS-231:
-----------------------------------------

an easy way to replicate this is by:

mvn -Ptests -DfailIfNoTests=false -Dtest=StompConnectionCleanupTest test

As we talked on IRC.

> STOMP error when not unsubscribing from topic
> ---------------------------------------------
>
>                 Key: ARTEMIS-231
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-231
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Stomp
>         Environment: OS X
>            Reporter: Julian Scheid
>            Priority: Trivial
>
> On master (d88097794c6a84b3085b0e6cc248772f459bc91c):
> # Connect using STOMP protocol version 1.2 (not sure if protocol version is important)
> # Subscribe to a topic that will be created on the fly (not sure if that's important)
> # A temporary queue is created
> # Send a DISCONNECT frame and close the connection without unsubscribing first
> # The server reports an error:
> {noformat}
> 2015-09-24 17:38:33 ERROR server:583 - AMQ224051: Failed to call notification listener
> java.lang.IllegalStateException: No queue 4f84dee3-62d2-11e5-b104-0b3c7970cff0
> 	at org.apache.activemq.artemis.core.postoffice.impl.PostOfficeImpl.onNotification(PostOfficeImpl.java:386)
> 	at org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl.sendNotification(ManagementServiceImpl.java:579)
> 	at org.apache.activemq.artemis.core.server.impl.ServerConsumerImpl.close(ServerConsumerImpl.java:432)
> 	at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.doClose(ServerSessionImpl.java:338)
> 	at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl$1.done(ServerSessionImpl.java:1158)
> 	at org.apache.activemq.artemis.core.persistence.impl.nullpm.NullStorageManager$1.executeOnCompletion(NullStorageManager.java:106)
> 	at org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.close(ServerSessionImpl.java:1152)
> 	at org.apache.activemq.artemis.core.protocol.stomp.StompProtocolManager$1.run(StompProtocolManager.java:271)
> 	at org.apache.activemq.artemis.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:94)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)
> {noformat}
> This error isn't reported
> * when sending an UNSUBSCRIBE frame prior to disconnecting
> * when closing the connection without first sending a DISCONNECT frame
> Let me know if you have trouble reproducing this and I'll see if I can condense it into an example.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)