Bug 780596 (SOA-3036)

Summary: Unable to view any statistics on the JBoss ESB Management Console (http://localhost:8080/jbossesb/app/)
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: David Jorm <djorm>
Component: JBossESB, Build Process, Monitoring and ManagementAssignee: tcunning
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.3 cp05 ER1CC: djorm, ldimaggi, mjc, tcunning
Target Milestone: ---Keywords: Regression
Target Release: 4.3 CP05 ER3   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-3036
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-26 16:41:11 UTC 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 David Jorm 2011-04-20 10:21:55 UTC
project_key: SOA

When attempting to view any of the statistics available on the ESB Monitoring Console, I get the following error. This does not occur for me using 4.3.0 CP04.
---

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 18 in the generated java file
Only a type can be imported. org.jboss.soa.esb.util.XssUtil resolves to a package

An error occurred at line: 108 in the jsp file: /app/attribute.jsp
XssUtil cannot be resolved
105: <%
106: } else {
107: %>
108: <h1><code><%=XssUtil.escape(attribute)%></code></h1>
109: <%
110: }
111: %><br>


An error occurred at line: 123 in the jsp file: /app/attribute.jsp
XssUtil cannot be resolved
120: 			</select> and the 
121:  <input type="text" name="maxrecords" value="<%= maxrecords %>"></input> records
122: 		<input type="hidden" name="id" value="<%=id%>">
123: 		<input type="hidden" name="servername" value="<%=XssUtil.escape(servername)%>">
124: 		<input type="submit" value="submit">
125: </form>
126: <hr>


An error occurred at line: 131 in the jsp file: /app/attribute.jsp
XssUtil cannot be resolved
128: <table>
129: <tr>
130: <th>Collection Date</th>
131: <th><%=XssUtil.escape(attribute) %></th>
132: </tr>
133: <%
134: NumberFormat nf = NumberFormat.getInstance();


Stacktrace:
	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:290)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

Comment 3 Len DiMaggio 2011-04-20 14:25:08 UTC
Wait - is this problem being seen with JON? Or the (legacy) web console:   http://localhost:8080/web-console/

Comment 4 Len DiMaggio 2011-04-20 14:52:29 UTC
Wait - this is the legacy ESB console:

http://localhost:8080/jbossesb/app/

For example:

Any of these links will force the error:

# jboss.esb:category=MessageCounter,deployment=jbossesb.esb,service-category=JBossESB-Internal,service-name=DataCollectorService

    * action1 messages successfully processed count
    * action1 messages failed count
    * action1 failed bytes
    * action1 processed bytes
    * overall service message count
    * overall processedbytes
    * overall failed bytes
    * overall service count bytes
    * action1 processing time



Comment 5 Len DiMaggio 2011-04-20 14:53:57 UTC
Affects Testing: Added: [Regression]


Comment 6 David Jorm 2011-04-20 22:56:19 UTC
Correct Len - it is the legacy ESB console.

Comment 7 tcunning 2011-04-21 18:49:53 UTC
The issue here seems to be that the ESB tag was copied over wholesale rather than merged into the platform tag.    Created a SOA-4.3.0.GA_CP5_CR2 platform tag, verified that it contains XssUtil.java (the missing file in this case), and merged in the ESB changes.

Comment 9 Len DiMaggio 2011-04-26 16:41:11 UTC
Verified fixed in the ER3 build.