#143 Error displaying component (summary dashboard)

open
nobody
None
5
2007-02-08
2007-02-08
Rakesh Kalra
No

The summary dashboard throws an exception:

SCHWERWIEGEND: Error displaying component
java.lang.IllegalArgumentException: can't parse argument number catalina.home
at java.text.MessageFormat.makeFormat(MessageFormat.java:1330)
at java.text.MessageFormat.applyPattern(MessageFormat.java:450)
at java.text.MessageFormat.<init>(MessageFormat.java:350)
at java.text.MessageFormat.format(MessageFormat.java:803)
at org.jmanage.webui.taglib.jm.DashboardComponentTag.doStartTag(DashboardComponentTag.java:92)
at org.apache.jsp.jvmSummary_jsp._jspx_meth_jm_dashboardComponent_18(jvmSummary_jsp.java:529)
at org.apache.jsp.jvmSummary_jsp._jspService(jvmSummary_jsp.java:237)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)

The error is at the following line:
componentDisplay = MessageFormat.format(componentDisplay, getWidth(),
getHeight(), Utils.getCookieValue(request, "JSESSIONID"));

Fixing the TODO at the top of this method, will most likely fix this issue:

// TODO: It will be good to remove MessageFormat usage here and pass the required information
// to the dashboard - rk

Discussion