Red Hat Bugzilla – Bug 772681
Exception thrown in UI when clicking child resource node in discovery queue
Last modified: 2013-09-02 03:20:58 EDT
Description of problem:
In the feature/gwt-upgrade branch, when I go to the discovery queue and click on the check box of child resource (i.e., leaf node), I get a globally uncaught exception in the UI. This happens when only when I expand the platform node without selecting it and then selecting one of the child nodes. This does not happen in the master branch.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
The exception I see when running in GWT dev mode is,
Caused by: java.lang.ClassCastException: com.smartgwt.client.widgets.grid.ListGridRecord cannot be cast to com.smartgwt.client.widgets.tree.TreeNode at org.rhq.enterprise.gui.coregui.client.inventory.resource.discovery.ResourceAutodiscoveryView.updateButtonEnablement(ResourceAutodiscoveryView.java:412) at org.rhq.enterprise.gui.coregui.client.inventory.resource.discovery.ResourceAutodiscoveryView.access$3(ResourceAutodiscoveryView.java:391) at org.rhq.enterprise.gui.coregui.client.inventory.resource.discovery.ResourceAutodiscoveryView$3.onSelectionChanged(ResourceAutodiscoveryView.java:264)
It appears that this might be due to usage of what is now a deprecated API in ResourceAutoDiscoveryView.
I have come across a couple SmartGWT forum posts that lead me to believe that this issue could be a regresssion in SmartGWT itself that was introduced in version 2.5. The aforementioned posts are,
Made change to avoid casting ListGridRecord to TreeNode in feature/gwt-upgrade branch.
commit hash: 1163194d1955b334dfe783876b7f052b306bc737
This commit has been merged into master.
Verified on build#1334 (Version: 4.4.0-SNAPSHOT Build Number: ca5eecb)
No exception is thrown on clicking child resource node in discovery queue.
Bulk closing of issues that were VERIFIED, had no target release and where the status changed more than a year ago.