Bug 743221

Summary: Monitor->Graph does not display, throws an exception
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: Core UIAssignee: Heiko W. Rupp <hrupp>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: 4.1CC: hrupp
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-07 19:22:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 734807    
Attachments:
Description Flags
Full stack trace
none
Proposed patch none

Description Heiko W. Rupp 2011-10-04 09:48:47 UTC
Created attachment 526215 [details]
Full stack trace

I was just trying to access metric graphs, but that fails with an exception page

Page shows:

	 IndexOutOfBoundsException
Index: 0, Size: 0
You can view the stack trace, return to the previous page, Dashboard, or Browse Resources page.

Stack trace then shows:

/rhq/common/monitor/events/data-plain.xhtml @53,56 test="#{not empty EventsTimelineUIBean.data}" Cant instantiate class: org.rhq.enterprise.gui.measurement.graphs.EventsTimelineUIBean.
com.sun.facelets.tag.TagAttributeException: /rhq/common/monitor/events/data-plain.xhtml @53,56 test="#{not empty EventsTimelineUIBean.data}" Cant instantiate class: org.rhq.enterprise.gui.measurement.graphs.EventsTimelineUIBean. at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:235) at 

Full trace is attached

Comment 1 Heiko W. Rupp 2011-10-04 09:56:49 UTC
Looks like this is not a general issue. I rather suspect (as I was looking at https://bugzilla.redhat.com/show_bug.cgi?id=634648 before) that the other issue may have caused this.

Comment 2 Heiko W. Rupp 2011-10-04 09:59:33 UTC
Indeed - my range preference were set to "advanced". Going to the tables tab also showed no data with the same trace in the logs.
Then at the bottom of the page I was able to set the time preferences to "last X" mode and set them to last 8 hours. After this the graphs displayed again correctly.

Comment 3 Heiko W. Rupp 2011-10-05 13:50:05 UTC
Created attachment 526496 [details]
Proposed patch

Comment 5 Heiko W. Rupp 2011-10-17 07:53:26 UTC
3e4e63a in master

Comment 6 Mike Foley 2011-10-18 14:59:20 UTC
identified new issue, discussed with heiko, and added new issue ... BZ https://bugzilla.redhat.com/show_bug.cgi?id=747007 

marking this verified

Comment 7 Mike Foley 2012-02-07 19:22:19 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE