org.apache.jasper.JasperException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • tomcat 6 HTTP authentication
    via Stack Overflow by Ryk76
    ,
  • HTTP Status 500 error
    via Stack Overflow by user1659213
    ,
    • org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 52 in the jsp file: /passport/account/common/codefile/interface.inc.jsp The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files 49:    else 50:    { 51:      tmpstr = conf.jt.itake("api." + tid + "-logined", "tpl"); 52:      tmpstr = tmpstr.replace("{$username}", encode.htmlencode(account.nusername)); 53:      tmpstr = conf.jt.creplace(tmpstr); 54:    } 55:    tmpstr = conf.ajaxPreContent + tmpstr; An error occurred at line: 52 in the jsp file: /passport/account/common/codefile/interface.inc.jsp The method replace(char, char) in the type String is not applicable for the arguments (String, String) 49:    else 50:    { 51:      tmpstr = conf.jt.itake("api." + tid + "-logined", "tpl"); 52:      tmpstr = tmpstr.replace("{$username}", encode.htmlencode(account.nusername)); 53:      tmpstr = conf.jt.creplace(tmpstr); 54:    } 55:    tmpstr = conf.ajaxPreContent + tmpstr; Stacktrace: at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:745)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    72 more bugmates