title: Inspecting a bean in my JBOSS JMX Agent View fails with an error
body: <p>I cannot inspect any of my beans in the JMX Agent View as clicking on any bean results in the error pasted below.
  Every thing else seems to be working fine within JBOSS as it is properly serving my application.</p>
  
  <p>Environment variables as follows...</p>
  
  <p>PATH = C:\Program Files\Java\jre8\bin;C:\Users\XXX\AppData\Roaming\npm;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files\Java\jre7\bin;</p>
  
  <p>JAVA_HOME = C:\Program Files (x86)\Java\jdk1.8.0_05</p>
  
  <p><pre>
  JBossWeb/2.0.1.GA - Error report <h1>HTTP Status 500 - </h1><p><b>type</b> Exception report</p><p><b>message</b> </p><p><b>description</b> The server encountered an internal error () that prevented it from fulfilling this request.</p><p><b>exception</b> org.apache.jasper.JasperException: Unable to compile class for JSP: </p>
  
  <p>An error occurred at line: 151 in the jsp file: /inspectMBean.jsp
  The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
  148:             else if (String.valueOf(attrValue).indexOf(sep) == -1)
  149:             {
  150: %&gt;
  151:             &lt;input type=&quot;text&quot; name=&quot;&lt;%= attrName %&gt;&quot; value=&quot;&lt;%= attrValue.replace(&quot;\&quot;&quot;,&quot;&amp;quot;&quot;) %&gt;&quot; &lt;%= readonly %&gt;&gt;
  152: &lt;%
  153:             }
  154:             else</p>
  
  <p>An error occurred at line: 151 in the jsp file: /inspectMBean.jsp
  The method replace(char, char) in the type String is not applicable for the arguments (String, String)
  148:             else if (String.valueOf(attrValue).indexOf(sep) == -1)
  149:             {
  150: %&gt;
  151:             &lt;input type=&quot;text&quot; name=&quot;&lt;%= attrName %&gt;&quot; value=&quot;&lt;%= attrValue.replace(&quot;\&quot;&quot;,&quot;&amp;quot;&quot;) %&gt;&quot; &lt;%= readonly %&gt;&gt;
  152: &lt;%
  153:             }
  154:             else</p>
  
  <p>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:308)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.inspectMBean(HtmlAdaptorServlet.java:220)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:96)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:77)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  </p><p><b>note</b> The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs.</p><h3>JBossWeb/2.0.1.GA</h3></pre></p>