Description of problem: Selecting a metric and clicking 'Get Live Value' button on resource->Monitoring->Tables tab displays error 'Cannot get live values for those metrics. Make sure the agent is running and the managed resource is up.' in UI and stack trace in server log. Please refer the attached screenshot and stack trace in server log. Version-Release number of selected component (if applicable): Version: 3.2.0.ALPHA_QA Build Number: edb3aa6:6964581 Platform: RHEL 5 - release 5.7 (Tikanga) Java version "1.6.0_18" Database: PostgreSQL 8.3.8 Browser Version: Firefox 10.0.2 How reproducible: Always Steps to Reproduce: 1. Install JON 3.2 Alpha 25 build 2. Login to JBoss ON 3. Navigate to resource->Monitoring->Tables tab ( Ex: Resource CPU 0) 4. Select a metric (Ex: System Load ) 5. Click on the button 'Get Live Value'. Actual results: Error in UI on clicking 'Get Live Value' button for a metric on resource->Monitoring->Tables tab Expected results: No error and it should display the live value for the selected metric. Additional info: Observed the same error when user selects a trait on resource->Monitoring->Traits tab and clicks on 'Get Live Value' button.
Created attachment 745662 [details] Server_log
Created attachment 745663 [details] Screenshot-Tables_GetLiveValue
Created attachment 745664 [details] Screenshot-Traits_GetLiveValue
This is the same symptom and same stack trace as bug #956388 which has been fixed (look at the server log attachment on that BZ and the line numbers for the NPE in MeasuermentManagerDataBean are the same. The NPE was a result of autoboxing a null Long into a long. But the API now uses Long. That BZ was verified. So I'm not sure what is going on. Is it possible you were using an old build that didn't have this fix in it? I just checked the code in master and its using the fixed API so this should not be happening assuming the build you tested with was based off of master since that fix for bug #956388 went in.
Tested a master branch build and it works as Mazz mentioned.
Moving this to ON_QA as available for test in brew build: https://brewweb.devel.redhat.com//buildinfo?buildID=282751
As this is MODIFIED or ON_QA, setting milestone to ER1.
verified get Live on UI no exception in logs and/or UI
I need to reopen this BZ (JON 3.2.ER1), because when I click "Get Live Value" metric table just refreshes. Steps (for max-pool-size on AS7 datasource: 1. enable max-pool-size setting metric (set interval to 10minutes) 2. configure max-pool-size to some other value 3. go to "Metrics", select max-pool-size setting metric 4. hit "Get Live Value" Actual results: metric content only refreshes, while "Last" column value is still old Expected results: I get Pop-up with latest value and value in "Last" column must match this live value
Popup has been removed and live values have now replaced the last values in the metrics screen. Live values button has also been removed per UXD. So a "Refresh" will now pull in the live values. Committed to master: 08fe551
neither get live value, nor refresh button get the live value - last value is being changes only after Refresh interval.
I can see from the above commit that this is only in master. I was waiting on approval to move to jon3.2.x.
@Armine please see BZ 1024981 as there was confusion regarding master versus jon3.2.0.
Verified on Jon 3.2 ER5