Bug 1113908 - [GSS] (6.4.0) TopicControl.listDurableSubscriptionsAsJSON does not work with hierarchical topics
Summary: [GSS] (6.4.0) TopicControl.listDurableSubscriptionsAsJSON does not work with ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: HornetQ
Version: unspecified
Hardware: x86_64
OS: Linux
urgent
high
Target Milestone: ER1
: EAP 6.4.0
Assignee: Justin Bertram
QA Contact: Miroslav Novak
URL:
Whiteboard:
Depends On: 1178936 1179387
Blocks: 1132168 1132170
TreeView+ depends on / blocked
 
Reported: 2014-06-27 07:43 UTC by Tyronne Wickramarathne
Modified: 2019-08-19 12:42 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1132170 (view as bug list)
Environment:
Last Closed: 2019-08-19 12:42:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
new error (201.10 KB, application/octet-stream)
2014-09-17 12:36 UTC, Ondřej Kalman
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker HORNETQ-1372 0 Major Closed TopicControl.listDurableSubscriptionsAsJSON does not work with hierarchical topics 2015-12-14 16:12:04 UTC
Red Hat Issue Tracker WFCORE-492 0 Major Closed fix JMX ObjectNameAddressUtil#toPathAddress 2015-12-14 16:12:04 UTC

Description Tyronne Wickramarathne 2014-06-27 07:43:55 UTC
Description of problem:
JConsole throws an "IllegalArgumentException" when trying to obtain the list of subscribers for a Topic.

Version-Release number of selected component (if applicable):
JBoss-EAP-6.2, JBoss-EAP-6.3-Beta

How reproducible:
Always

Steps to Reproduce:
1. Please create two Topics as follows :
                <jms-destinations>
                    <jms-topic name="my.jms.#">
		       <entry name="jms/all"/>
                       <entry name="java:jboss/exported/jms/all"/>
		    </jms-topic>
                    <jms-topic name="my.jms.A">
                       <entry name="jms/A"/>
                       <entry name="java:jboss/exported/jms/A"/>
		    </jms-topic>
                </jms-destinations>
2. Start the server and open the JConsole 
3. Please access "my.jms.A" Topic (jboss.as:subsystem=messaging,hornetq-server=default,jms-topic=my.jms.A)
4. Please invoke listAllSubscriptionsAsJson operation


Actual results:
5. The JConsole would throw "java.lang.IllegalArgumentException: Invalid message queue name: my.jms.A" exception
6. In the server log, the following exception can be seen :
15:44:55,575 ERROR [stderr] (pool-1-thread-2) java.lang.IllegalArgumentException: Invalid message queue name: jms.topic.my.jms.#
15:44:55,576 ERROR [stderr] (pool-1-thread-2) 	at org.hornetq.jms.client.HornetQDestination.decomposeQueueNameForDurableSubscription(HornetQDestination.java:122)
15:44:55,576 ERROR [stderr] (pool-1-thread-2) 	at org.hornetq.jms.management.impl.JMSTopicControlImpl.listSubscribersInfosAsJSON(JMSTopicControlImpl.java:321)
15:44:55,577 ERROR [stderr] (pool-1-thread-2) 	at org.hornetq.jms.management.impl.JMSTopicControlImpl.listAllSubscriptionsAsJSON(JMSTopicControlImpl.java:164)
15:44:55,578 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.as.messaging.jms.JMSTopicControlHandler.executeRuntimeStep(JMSTopicControlHandler.java:101)
15:44:55,578 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.as.controller.AbstractRuntimeOnlyHandler$1.execute(AbstractRuntimeOnlyHandler.java:90)
15:44:55,579 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:440)
15:44:55,579 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:322)
15:44:55,580 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:229)
15:44:55,580 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:224)
15:44:55,581 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:194)
15:44:55,581 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:115)
15:44:55,582 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.as.jmx.model.ModelControllerMBeanHelper.execute(ModelControllerMBeanHelper.java:406)
15:44:55,582 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.as.jmx.model.ModelControllerMBeanHelper.invoke(ModelControllerMBeanHelper.java:384)
15:44:55,583 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.as.jmx.model.ModelControllerMBeanHelper.invoke(ModelControllerMBeanHelper.java:358)
15:44:55,583 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.as.jmx.model.ModelControllerMBeanServerPlugin.invoke(ModelControllerMBeanServerPlugin.java:134)
15:44:55,584 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:263)
15:44:55,584 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.remotingjmx.protocol.v2.ServerProxy$InvokeHandler.handle(ServerProxy.java:915)
15:44:55,585 ERROR [stderr] (pool-1-thread-2) 	at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:152)
15:44:55,585 ERROR [stderr] (pool-1-thread-2) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
15:44:55,585 ERROR [stderr] (pool-1-thread-2) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
15:44:55,586 ERROR [stderr] (pool-1-thread-2) 	at java.lang.Thread.run(Thread.java:744)



Expected results:
The method should list the available subscribers without throwing an exception.

Comment 1 Justin Bertram 2014-07-17 21:42:09 UTC
This issue really wasn't related at all to JConsole so I've updated the title to be more precise.

Comment 2 Justin Bertram 2014-07-21 15:28:56 UTC
This was fixed on the 2.4.x branch of HornetQ via commit bc4e24bc82760afca5c243a7bc3b9aa82712c4ed.

Comment 3 JBoss JIRA Server 2014-07-21 15:36:56 UTC
Justin Bertram <jbertram> updated the status of jira HORNETQ-1372 to Resolved

Comment 4 JBoss JIRA Server 2014-07-21 16:36:03 UTC
Clebert Suconic <clebert.suconic> updated the status of jira HORNETQ-1372 to Reopened

Comment 5 JBoss JIRA Server 2014-07-21 16:36:17 UTC
Clebert Suconic <clebert.suconic> updated the status of jira HORNETQ-1372 to Closed

Comment 6 Clebert Suconic 2014-08-05 14:13:13 UTC
It needs a 2.3.x commit (PR)

Comment 7 Clebert Suconic 2014-08-05 18:01:20 UTC
https://github.com/hornetq/hornetq/pull/1758

Comment 8 Justin Bertram 2014-08-05 18:13:16 UTC
This was fixed on the 2.3.x branch of HornetQ via commit 067dfbbb866c60e6a8ebed59ec6f005b08a6a76b.

Comment 9 JBoss JIRA Server 2014-08-05 18:30:51 UTC
Justin Bertram <jbertram> updated the status of jira HORNETQ-1372 to Reopened

Comment 10 JBoss JIRA Server 2014-08-05 18:31:52 UTC
Justin Bertram <jbertram> updated the status of jira HORNETQ-1372 to Resolved

Comment 11 JBoss JIRA Server 2014-08-05 18:31:59 UTC
Justin Bertram <jbertram> updated the status of jira HORNETQ-1372 to Closed

Comment 12 Kabir Khan 2014-08-24 11:00:45 UTC
Appears to be fixed by HQ upgrade to 2.3.21 https://bugzilla.redhat.com/show_bug.cgi?id=1132168. Setting to MODIFIED.

Comment 13 Ondřej Kalman 2014-09-17 12:35:24 UTC
In 6.4.0.DR1 there are still issues with JConsole. I tried to reproduce this bug as is described in reproducer and I'm getting error showed in attachment

In 6.3.1 CP builds were not any issues and bug was fixed correctly.

Comment 14 Ondřej Kalman 2014-09-17 12:36:12 UTC
Created attachment 938456 [details]
new error

Comment 15 Justin Bertram 2014-11-05 18:49:08 UTC
The error you're seeing now (i.e. "ClassNotFoundException: org.jboss.as.controller.OperationFailedRuntimeException (no security manager: RMI class loader disabled)) appears unrelated to the original problem.  Do you see an error on the server when you invoke listAllSubscriptionsAsJson from JConsole?

Comment 17 Ondřej Kalman 2015-01-05 12:25:06 UTC
I'm sorry I missed your comment, next time please use "needinfo" flag or change status to ON_QA.

In server console isn't any error. Just in Jconsole.
We tried another case, when jmx in hornetq is enabled and listAllSubscriptionsAsJson is invoked directly from hornetq mbean. In this case everything is working fine.

Comment 18 Justin Bertram 2015-01-05 14:40:33 UTC
The error you're seeing now (i.e. "ClassNotFoundException: org.jboss.as.controller.OperationFailedRuntimeException (no security manager: RMI class loader disabled)) is unrelated to the original problem as far as I can see.   Furthermore, I don't see how this could be a HornetQ problem since the referenced class is not shipped in HornetQ, there is no error logged on the server, and the operation works fine when used via the HornetQ MBean.

Comment 19 Ondřej Kalman 2015-01-05 15:10:08 UTC
We can't verify this BZ right now because we are not able to perform reproducer without errors.

We will open new BZ blocking this one on scripts and commands component.

Comment 20 Jeff Mesnil 2015-01-06 16:50:16 UTC
this issue is blocked by https://github.com/wildfly/wildfly-core/pull/419

Comment 21 JBoss JIRA Server 2015-01-06 22:17:33 UTC
Kabir Khan <kabir.khan> updated the status of jira WFCORE-492 to Closed

Comment 22 Kabir Khan 2015-01-06 22:20:36 UTC
https://github.com/wildfly/wildfly-core/pull/419 has been merged

Comment 23 Miroslav Novak 2015-01-09 09:27:57 UTC
Setting target milestone to ER1 as there could be fix for jconsole and we could verify this issue.

Comment 24 Ondřej Kalman 2015-01-12 13:33:57 UTC
VERIFIED with 6.4.0.ER1


Note You need to log in before you can comment on or make changes to this bug.