[
https://issues.apache.org/jira/browse/ARTEMIS-303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15004549#comment-15004549
]
Richard DiCroce commented on ARTEMIS-303:
-----------------------------------------
I've been changing my code a bit. Subscription name is now
"ASIDE-FullStatus@RCD_NMS", topic name is "aside", client ID is not set. The
problem may be related to the client ID not being set, because I did have it
set at one point and there was no problem.
But from looking at the JMSTopicControlImpl source, and setting a breakpoint in
the debugger, I think the problem is that the conditionals on lines 274 and 279
are checking the wrong thing. They're checking if queue.getName() starts with
"jms.topic" but the queue name matches the subscription name. So it should
probably be checking queue.getAddress() instead.
> listDurableSubscriptionsAsJson fails if there is a durable subscription on a
> JMS topic
> --------------------------------------------------------------------------------------
>
> Key: ARTEMIS-303
> URL: https://issues.apache.org/jira/browse/ARTEMIS-303
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 1.1.0
> Environment: WildFly 10.0.0.CR2
> Reporter: Richard DiCroce
>
> I have some durable subscriptions on a JMS topic. When I invoke the
> listDurableSubscriptionsAsJson JMX operation, I get this error:
> {code}
> 12:43:27,235 ERROR [stderr] (pool-3-thread-4) javax.jms.JMSRuntimeException:
> Invalid message queue name: ASIDE-FullStatus
> 12:43:27,235 ERROR [stderr] (pool-3-thread-4) at
> org.apache.activemq.artemis.jms.client.ActiveMQDestination.decomposeQueueNameForDurableSubscription(ActiveMQDestination.java:202)
> 12:43:27,235 ERROR [stderr] (pool-3-thread-4) at
> org.apache.activemq.artemis.jms.management.impl.JMSTopicControlImpl.listSubscribersInfosAsJSON(JMSTopicControlImpl.java:275)
> 12:43:27,236 ERROR [stderr] (pool-3-thread-4) at
> org.apache.activemq.artemis.jms.management.impl.JMSTopicControlImpl.listDurableSubscriptionsAsJSON(JMSTopicControlImpl.java:150)
> 12:43:27,236 ERROR [stderr] (pool-3-thread-4) at
> org.wildfly.extension.messaging.activemq.jms.JMSTopicControlHandler.executeRuntimeStep(JMSTopicControlHandler.java:143)
> 12:43:27,236 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.controller.AbstractRuntimeOnlyHandler$1.execute(AbstractRuntimeOnlyHandler.java:53)
> 12:43:27,236 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:877)
> 12:43:27,236 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:651)
> 12:43:27,236 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:362)
> 12:43:27,236 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1336)
> 12:43:27,236 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:391)
> 12:43:27,236 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:204)
> 12:43:27,236 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.jmx.model.ModelControllerMBeanHelper.execute(ModelControllerMBeanHelper.java:474)
> 12:43:27,236 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.jmx.model.ModelControllerMBeanHelper.invoke(ModelControllerMBeanHelper.java:445)
> 12:43:27,236 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.jmx.model.ModelControllerMBeanHelper.invoke(ModelControllerMBeanHelper.java:406)
> 12:43:27,237 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.jmx.model.ModelControllerMBeanServerPlugin.invoke(ModelControllerMBeanServerPlugin.java:175)
> 12:43:27,237 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:724)
> 12:43:27,237 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.jmx.BlockingNotificationMBeanServer.invoke(BlockingNotificationMBeanServer.java:168)
> 12:43:27,237 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.remotingjmx.protocol.v2.ServerProxy$InvokeHandler.handle(ServerProxy.java:950)
> 12:43:27,237 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1$1.run(ServerCommon.java:153)
> 12:43:27,237 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:75)
> 12:43:27,237 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:70)
> 12:43:27,237 ERROR [stderr] (pool-3-thread-4) at
> java.security.AccessController.doPrivileged(Native Method)
> 12:43:27,238 ERROR [stderr] (pool-3-thread-4) at
> javax.security.auth.Subject.doAs(Subject.java:422)
> 12:43:27,238 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:92)
> 12:43:27,238 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.as.jmx.ServerInterceptorFactory$Interceptor.handleEvent(ServerInterceptorFactory.java:70)
> 12:43:27,238 ERROR [stderr] (pool-3-thread-4) at
> org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:149)
> 12:43:27,238 ERROR [stderr] (pool-3-thread-4) at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 12:43:27,238 ERROR [stderr] (pool-3-thread-4) at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 12:43:27,238 ERROR [stderr] (pool-3-thread-4) at
> java.lang.Thread.run(Thread.java:745)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)