DX Application Performance Management

  • 1.  ATC/WebView issue: PWC6033: Unable to compile class for JSP PWC6197:

    Posted Apr 18, 2017 11:52 AM
      |   view attached

    Hi,

     

    do you have any idea how to solve the next error, that we got after upgrading APM to APM10.5.1 and trying to start ATC/WV.

     

    we get the next error message in ATC/WV in the browser:

     

     

    and the next error logs in WV.log file:

     

    4/18/17 05:44:12.175 PM CEST [INFO] [WebView] Starting Introscope WebView...
    4/18/17 05:44:12.276 PM CEST [INFO] [WebView] Introscope WebView started.
    4/18/17 05:44:12.770 PM CEST [INFO] [WebView.Login] Successfully logged in user "WilyWebView"
    4/18/17 05:44:13.036 PM CEST [INFO] [WebServer] Web Application Server started
    4/18/17 05:44:16.053 PM CEST [WARN] [WebView] Failure due to validate XSRF token.
    4/18/17 05:44:21.022 PM CEST [WARN] [WebView] Failure due to validate XSRF token.
    4/18/17 05:44:26.022 PM CEST [WARN] [WebView] Failure due to validate XSRF token.
    4/18/17 05:44:31.023 PM CEST [WARN] [WebView] Failure due to validate XSRF token.
    4/18/17 05:44:32.316 PM CEST [WARN] [org.mortbay.log] /ApmServer/
    org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP

    PWC6197: An error occurred at line: 59 in the jsp file: /ApmServer/index.jsp
    PWC6199: Generated servlet error:
    The type java.nio.CharBuffer cannot be resolved. It is indirectly referenced from required .class files


    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:123)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:296)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:376)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:360)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
    at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:503)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    at com.wily.introscope.webapps.common.filter.DisableCacheFilter.doFilter(DisableCacheFilter.java:41)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.wily.webserver.filter.RequestLocaleFilter.doFilter(RequestLocaleFilter.java:46)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.wily.introscope.webapps.common.filter.XSSFilter.doFilter(XSSFilter.java:32)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.wily.introscope.webapps.common.filter.ClickJackFilter.doFilter(ClickJackFilter.java:52)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.wily.introscope.webapps.common.filter.WebViewSSOFilter.doFilter(WebViewSSOFilter.java:184)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.wily.introscope.webapps.common.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:176)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.wily.introscope.webview.server.IntroscopeWebView$ConnectionFilter.doFilter(IntroscopeWebView.java:540)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
    at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
    at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:680)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)

     

    thank you, stefan



  • 2.  Re: ATC/WebView issue: PWC6033: Unable to compile class for JSP PWC6197:

    Broadcom Employee
    Posted Apr 18, 2017 12:47 PM

    Hi Stefan:

      Googling this error, it occurs on other products as well. It appears to be related to Java release.(especially 1.8) Please see if an earlier supported Java release helps remedy the situation. You can also ask on teh internal forums as well.

     

    Thanks

    Hal German



  • 3.  Re: ATC/WebView issue: PWC6033: Unable to compile class for JSP PWC6197:

    Posted Apr 18, 2017 12:54 PM

    https://issues.apache.org/jira/browse/AMQ-5356 

    It does seem so per this link and other ones...specific to Java 1.8 and seemingly not affecting Java 1.7.

     

    Francis



  • 4.  Re: ATC/WebView issue: PWC6033: Unable to compile class for JSP PWC6197:

    Posted Apr 18, 2017 04:21 PM

    Hi Francis, Hal,

    we've tried JDK1.7 and 1.8 as well, but unfortunately both had the same result = error described above.

    would you have any other recommendation?

    thank you, stefan



  • 5.  Re: ATC/WebView issue: PWC6033: Unable to compile class for JSP PWC6197:

    Posted Apr 18, 2017 04:31 PM

    Hi Stefan,

     

    Would you please take the following steps?

    1 - stop the EM / WV servers
    2 - delete the contents of the work directory.
    3 - delete the folders in the following directories (please do NOT delete the config.ini)

    product\webview\configuration

    product\enterprisemanager\configuration
    product\workstation\configuration
    please do NOT delete the config.ini
    4 - Start the EM / WV servers

     

    Francis



  • 6.  Re: ATC/WebView issue: PWC6033: Unable to compile class for JSP PWC6197:

    Posted Apr 19, 2017 04:45 AM

    Hi Francis, Hal,

     

     

    thank you for your effort and tips!, the issue was solved as i described it above.

     

    stefan



  • 7.  Re: ATC/WebView issue: PWC6033: Unable to compile class for JSP PWC6197:
    Best Answer

    Posted Apr 19, 2017 04:44 AM

    Hi, just in case anybody else makes the same typo as we did, then FYI our root cause was the missing -Dorg.osgi.framework.bootdelegation=org.apache.xpath from the java arguments in the Introscope_WebView.lax file. we accidentally removed it while increasing the heapsize there.

     

    this is the incorrect version that we had

    lax.nl.java.option.additional=-Xms4096m -Xmx6144m -Djava.awt.headless=true -Dorg.owasp.esapi.resources=./config/esapi -Dsun.java2d.noddraw=true -XX:PermSize=128m -XX:MaxPermSize=256m

     

    and this is the the correct version:

    lax.nl.java.option.additional=-Xms4096m -Xmx6144m -Djava.awt.headless=true -Dorg.owasp.esapi.resources=./config/esapi -Dsun.java2d.noddraw=true -Dorg.osgi.framework.bootdelegation=org.apache.xpath -XX:PermSize=128m -XX:MaxPermSize=256m

     

    after adding it back, everything works fine.

     

    stefan



  • 8.  Re: ATC/WebView issue: PWC6033: Unable to compile class for JSP PWC6197:

    Posted Apr 19, 2017 01:59 PM

    Stefan, thanks for taking the time and letting us know!  Glad that the issue is resolved.

     

    Francis



  • 9.  Re: ATC/WebView issue: PWC6033: Unable to compile class for JSP PWC6197:

    Broadcom Employee
    Posted Apr 19, 2017 09:18 AM

    Thanks for sharing Stefan. This will help someone else in the future.