[GLASSFISH-13927] Node Tree: jdbc resource not deleted when pool deleted Created: 11/Oct/10  Updated: 02/Feb/11  Resolved: 13/Oct/10

Status: Closed
Project: glassfish
Component/s: admin_gui
Affects Version/s: 3.1
Fix Version/s: 3.1_b25

Type: Bug Priority: Major
Reporter: lidiam Assignee: Anissa Lam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: All
Platform: All

Attachments: JPEG File tree-resourceerror.JPG    
Issuezilla Id: 13,927


build: glassfish-3.1-b24-10_10_2010.zip

Create a JDBC pool, e.g. called y, and a jdbc resource using this pool, e.g.
called z. Node tree is updated properly (though it takes time). Delete the
pool - message is displayed saying that all the resources depending on this pool
will also be deleted, click OK. The pool is removed from the nodes tree, but
the resource is not. When you click on that resource node the following
exception is printed:

javax.servlet.ServletException: Target Unreachable, 'null' returned null

Once user clicks on JDBC Resources node, the tree underneath is updated to
reflect the deleted resource.

Comment by lidiam [ 11/Oct/10 ]

Created an attachment (id=5122)

Comment by kenpaulsen [ 13/Oct/10 ]

Anissa and I looked at this together. She has a fix for this + a fix for images
/ expanded state not being preserved. I am transferring this to her so she can
resolve this as soon as her changes are committed. -Ken

Comment by Anissa Lam [ 13/Oct/10 ]

Instead of admingui.nav.refreshTree() for just the JDBC connection pool, refresh
starting from the JDBC nodes.

While fixing this, also realize the connectors connection pool will have similar
issue, fixed that as well.

Also notice that the state of the tree node is not preserved, ie, collapsed or
expanded, fixed that as well.

Comment by shaline [ 02/Feb/11 ]

Verified in promoted b40.

Generated at Sun Nov 29 03:22:32 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.