Bug 779539 (SOA-1916)

Summary: JON console - user can not univentory/delete queues associated with an deleted esb archive
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Jaroslaw Kijanowski <kijanowski>
Component: Monitoring and Management, JONAssignee: Charles Crouch <ccrouch>
Status: CLOSED WONTFIX QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.0.0 ER8CC: atangrin, hbrock
Target Milestone: ---   
Target Release: FUTURE   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-1916
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-31 16:38:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jaroslaw Kijanowski 2010-02-03 14:35:13 UTC
Affects: Release Notes
Date of First Response: 2010-02-16 20:15:45
project_key: SOA

When I delete an esb archive using the JON console, the associated queues are still available, displayed as DOWN.

When I try to clean up and delete these queues I get this failure:

java.lang.IllegalStateException: Failed to find [ComponentType{type=JMSDestination, subtype=Queue}] ManagedComponent named [/queue/quickstart_helloworld_zip_Request_gw].
	at org.rhq.plugins.jbossas5.ManagedComponentComponent.getManagedComponent(ManagedComponentComponent.java:367)
	at org.rhq.plugins.jbossas5.ManagedComponentComponent.deleteResource(ManagedComponentComponent.java:192)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)

Not sure if this is a JON (as5 plugin) issue, since JON should remove stuff when I ask for it, or if it is an ESB plugin issue, since removing an esb archive should also remove all the esb's queues (deployed as part of the removed esb).

Comment 1 Jaroslaw Kijanowski 2010-02-16 22:02:58 UTC
Hey David, can you add this to the release notes?

Comment 2 Jaroslaw Kijanowski 2010-02-16 22:02:58 UTC
Affects: Added: [Release Notes]


Comment 3 David Le Sage 2010-02-17 01:15:45 UTC
Here is the draft text for the Release Notes:


https://jira.jboss.org/jira/browse/SOA-1916

    When you try to delete an ESB archive using the JON Console, the associated queues are not
    removed. They remain there, displaying as DOWN. Furthermore, if you try to delete these queues,
    an java.lang.IllegalStateException exception will occur.


Comment 5 Jaroslaw Kijanowski 2010-02-19 07:46:53 UTC
Release notes are fine but this is still an open issue and should be fixed in the future.

Comment 6 Jaroslaw Kijanowski 2010-02-19 08:07:51 UTC
Hey Tom, is this an esb plugin issue? When we remove an esb archive using JON, should the corresponding JMS queues be removed as well?

Comment 7 tcunning 2010-02-19 14:05:31 UTC
I think that whatever plugin deletes a queue is assuming that components will clean up their queues.       I'm not sure how we'd know what the relationship is between queue/ESB is within the plugin code though.

Seems like a more generalized problem with queue deletion - if I manually remove a queue, then do I see a failure as well when I try to delete it out of JON?       Might be a problem with the jboss-as-5 plugin.

Comment 8 Jaroslaw Kijanowski 2010-03-16 07:52:14 UTC
This issue depends on this bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=569751

Comment 9 Jaroslaw Kijanowski 2010-04-13 09:44:05 UTC
Assigning to Charles, since the corresponding bugzilla is an eap plugin issue.

Comment 11 Len DiMaggio 2010-09-24 17:00:00 UTC
Link: Added: This issue related SOA-2345


Comment 13 Anne-Louise Tangring 2012-01-31 16:38:29 UTC
Out of date.