Bug 1018958

Summary: Platform Utilization fails with summary.actualUsedMemory is null
Product: [Other] RHQ Project Reporter: Herbert <herbertdeborba>
Component: Core UIAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.9CC: hrupp, jshaughn
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Herbert 2013-10-14 19:21:11 UTC
Description of problem:
When adding the portlet OR trying to access the Reports/Inventory/PlatformUtilization page, the report fails throwing "columnNumber: 4: summary.actualUsedMemory is null" error.

Version-Release number of selected component (if applicable):
RHQ 4.9

How reproducible:
Add the portlet OR try to access the Reports/Inventory/PlatformUtilization page.

Steps to Reproduce:
1. Log in to RHQ coregui.
2. Access Reports, and then Inventory/Platform Utilization page.

Actual results:
No result shown and a error is thrown.

Expected results:
The platform utilization summary page.

Additional info:

STACK TRACE:

com.google.gwt.core.client.JavaScriptException:(TypeError) 
 stack: $copyValues_39@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:60881
copyValues_62@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:60911
copyValues@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:20982
$buildRecords@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:20679
$onSuccess_237@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:60930
onSuccess_247@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:60948
$onResponseReceived@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:5545
onResponseReceived_6@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:42966
$fireOnResponseReceived@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:1435
onReadyStateChange_0@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:1686
$setOnReadyStateChange/this$static.onreadystatechange<@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:6372
apply@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:527
entry0@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:565
entry_0/<@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:550

 fileName: http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html
 lineNumber: 60881
 columnNumber: 4: summary.actualUsedMemory is null
--- STACK TRACE FOLLOWS ---
(TypeError) 
 stack: $copyValues_39@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:60881
copyValues_62@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:60911
copyValues@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:20982
$buildRecords@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:20679
$onSuccess_237@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:60930
onSuccess_247@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:60948
$onResponseReceived@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:5545
onResponseReceived_6@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:42966
$fireOnResponseReceived@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:1435
onReadyStateChange_0@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:1686
$setOnReadyStateChange/this$static.onreadystatechange<@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:6372
apply@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:527
entry0@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:565
entry_0/<@http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html:550

 fileName: http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html
 lineNumber: 60881
 columnNumber: 4: summary.actualUsedMemory is null
   at Unknown.$copyValues_39(Unknown Source)
   at Unknown.copyValues_62(Unknown Source)
   at Unknown.copyValues(Unknown Source)
   at Unknown.$buildRecords(Unknown Source)

   at Unknown.$onSuccess_237(Unknown Source)
   at Unknown.onSuccess_247(Unknown Source)
   at Unknown.$onResponseReceived(Unknown Source)
   at Unknown.onResponseReceived_6(Unknown Source)
   at Unknown.$fireOnResponseReceived(Unknown Source)

   at Unknown.onReadyStateChange_0(Unknown Source)
   at Unknown.$setOnReadyStateChange/this$static.onreadystatechange<(Unknown Source)
   at Unknown.apply(Unknown Source)
   at Unknown.entry0(Unknown Source)

   at Unknown.entry_0/<(Unknown Source)
   at Unknown.anonymous(Unknown Source)

Comment 1 Jay Shaughnessy 2013-10-14 20:58:27 UTC
I was unable to reproduce on windows or linux with a master dev build and only one platform.  That does not mean there isn't an issue.

Can you mention the number of platforms and the version of java you are using?

Comment 2 Herbert 2013-10-14 21:34:54 UTC
Hi Jay, I've upgraded from 4.3 to 4.9, the first time I'd accessed the GUI it had about 20 platforms being monitored and the reported issue (?) occurred along with other errors. Then I thought it might be something related to converting data from the older db and  opted to remove all platforms, setting up one by one from zero (using the auto-updated 4.9 agent). Even with only one platform it happens.

The RHQ server is running with Java:

java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)

The only platform that is being monitored has three JBoss 4.0.5 GA instances, two of them using jdk1.5.0_22 and one with jdk1.6.0_29. I know these are a bit odd and really old, but they are a third party developed software requirement. 

With the 4.3 the "Platform Utilization" functionality worked fine. But I'll try it with a newer JVM.

Comment 3 Herbert 2013-10-14 22:03:51 UTC
I've tried with this Java:

java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)

Same problem:

 fileName: http://rhq.tjsc.jus.br:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/20E8809599C387E5ACF13C8DE9AC1BF3.cache.html
 lineNumber: 60881
 columnNumber: 4: summary.actualUsedMemory is null

Comment 4 Herbert 2013-11-08 21:28:27 UTC
For the record...

I've installed a brand new server and database with the same elements and the issue does not occured, ie, it happened only on the migration process.