Created attachment 534771 [details] Resource Metric Graph 1 Description of problem: Throws 'Globally uncaught exception' on 'Resource Metric Graph' on dashboard, if we forget to select 'Metric'. Complete dashboard gets blocked! Version-Release number of selected component (if applicable): JBoss Operations Network Version: 3.0.0.CR2 Build Number: 0a92497:a16c2ea GWT Version: 2.0.4 SmartGWT Version: 2.4 How reproducible: 100% Steps to Reproduce: 1.Logon to JON 2.Navigate to Dashboard 3.Select 'Edit Mode' 4.Add 'Resource Group Metric Graph' (or) 'Resource Metric Graph' portlet 5.on portlet settings select some 'Resource' and leave blank 'Metric' type 6.Click 'Save' 7.Throws 'Globally uncaught exception' 8.Navigate to some other menu other then dashboard 9.Come back to Dashboard. Dashboard get blocked completely! Actual results: Allowed to save 'Metric graph' without selection of 'Metric' type Expected results: Should not allow to save. Additional info: Screen shots and log files are attached. There is no error trace on server side.
Created attachment 534772 [details] Resource Metric Graph 2
Created attachment 534773 [details] Resource Metric Graph 3
Created attachment 534774 [details] GUI log
This is a clear release blocker caused by NullPointerExceptions in ResourceGraphPortlet Currently the only fix for the user is to open the database and remove the portlet from the rhq_dashboard_portlet table. Best would be not to allow to save when the resource or metric are not set. Fallback is to
f6cee08 in master prevents the NPE and thus the global exception.
master verified; please push to the branch.
ed291a9 in release branch
Verified on build#24 (https://hudson.qa.jboss.com/hudson/view/JON3%20Core/job/rhq-release-gwt-locales/24/) Verified by selecting a 'Resource' and leaving 'Metric' type blank for both 'Resource Group Metric Graph' and 'Resource Metric Graph' portlets. saving it does not display any exception.
marking VERIFIED JON 3 bugs to CLOSED/CURRENTRELEASE
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE