JBoss ON metric chart fails to display due to missing ViewChartFormPrepareAction classes

Solution Unverified - Updated -

Environment

  • Red Hat JBoss Operations Network (JON) 3.1.2
  • Viewing a resource metric graph or chart

Issue

  • Error looking at graphs
  • I am getting an error when trying to look at graphs from the metrics screen
  • There was a problem generating your page. Click here to see the complete stack trace:

    javax.servlet.jsp.JspException: ServletException in '/resource/common/monitor/visibility/ChartLayout.jsp': Could not initialize class org.rhq.enterprise.gui.legacy.action.resource.common.monitor.visibility.ViewChartFormPrepareAction
        at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:923)
        at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
        at org.apache.jsp.portal.MainLayout_jsp._jspx_meth_tiles_005finsert_005f3(MainLayout_jsp.java:498)
        ....
    
  • Could not initialize class ViewChartFormPrepareAction is displayed in the user-interface (UI)

  • Receive the following Globally uncaught exception in the message center:

     com.google.gwt.core.client.JavaScriptException:(NotFoundError) 
     code: 8
     stack: Error: An attempt was made to reference a Node in a context where it does not exist.
        at Object.isc_LinkItem_setElementValue [as setElementValue] (http://jon-server:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/sc/modules/ISC_Forms.js:2476:191)
        at Object.isc_FormItem_setValue (http://jon-server:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/sc/modules/ISC_Forms.js:1298:40)
        at Object.isc_c_Class_invokeSuper [as invokeSuper] (http://jon-server:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/sc/modules/ISC_Core.js:284:162)
        at Object.isc_TextItem_setValue [as setValue] (http://jon-server:7080/coregui/org.rhq.enterprise.gui.coregui.CoreGUI/sc/modules/ISC_Forms.js:2018:9)
        ...
    
  • Resource metric chart fails to display

Resolution

The JBoss ON server installation on the file system has been corrupted and must be restored from a backup or re-installed.

Root Cause

The installation has become corrupted and files necessary for proper operation are missing. For example, one of the following files can not be found:

<RHQ_SERVER_HOME>/jbossas/server/default/deploy/rhq.ear/rhq-portal.war/WEB-INF/classes/org/rhq/enterprise/gui/legacy/action/resource/common/monitor/visibility/ViewChartFormPrepareAction$1.class
<RHQ_SERVER_HOME>/jbossas/server/default/deploy/rhq.ear/rhq-portal.war/WEB-INF/classes/org/rhq/enterprise/gui/legacy/action/resource/common/monitor/visibility/ViewChartFormPrepareAction$BaseMetricDisplayComparator.class

The cause of corruption can be due to a number of reasons including:

  • disk or file system failure
  • files have been accidentally deleted
  • another installation or version has been extracted over the top of the existing
  • the installation source was incomplete or corrupt

Diagnostic Steps

  • Does the error occur when selecting a metric chart from a resource's summary page?

    If the error is consistent when attempting to load one or more metric charts or graphs, this issue may apply.

  • Review the JBoss ON server log for an error similar to the following:

    ERROR [org.apache.struts.action.RequestProcessor] No action instance for path /resource/common/monitor/visibility/ViewChartFormPrepare could be created
    java.lang.ClassNotFoundException: org.rhq.enterprise.gui.legacy.action.resource.common.monitor.visibility.ViewChartFormPrepareAction
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1385)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1229)
        at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)
    
  • Verify that all files and their checksums for the contents of the following directory match what is expected based on the version and patch level installed:

    <RHQ_SERVER_HOME>/jbossas/server/default/deploy/rhq.ear/rhq-portal.war/WEB-INF/classes/org/rhq/enterprise/gui/legacy/action/resource/common/monitor/visibility/
    
  • Verify that the following files exist:

    <RHQ_SERVER_HOME>/jbossas/server/default/deploy/rhq.ear/rhq-portal.war/WEB-INF/classes/org/rhq/enterprise/gui/legacy/action/resource/common/monitor/visibility/ViewChartFormPrepareAction$1.class
    <RHQ_SERVER_HOME>/jbossas/server/default/deploy/rhq.ear/rhq-portal.war/WEB-INF/classes/org/rhq/enterprise/gui/legacy/action/resource/common/monitor/visibility/ViewChartFormPrepareAction$BaseMetricDisplayComparator.class
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments