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:

jtbc.cn | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    新人 求前辈指点 前台页面不能点击其他内容,后台没有内容显示 - JAVA版本 - 在线论坛 - JTBC(CMS) 开源与免费的网站内容管理系统 官方站

    jtbc.cn | 7 months ago
    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:
  2. 0

    tomcat 6 HTTP authentication

    Stack Overflow | 6 years ago | Ryk76
    org.apache.jasper.JasperException: Unable to compile class for JSP: Stacktrace:
  3. 0

    Can't run Jsp file on Tomcat, Unsupported encoding :

    Stack Overflow | 3 years ago | Hossam Oukli
    org.apache.jasper.JasperException: Unsupported encoding:
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The value for the useBean class attribute bean.LoginBean is invalid

    Stack Overflow | 2 years ago | Rakesh
    org.apache.jasper.JasperException: /loginprocess.jsp(3,0) The value for the useBean class attribute bean.LoginBean is invalid.
  6. 0

    Unknown attribute type (Object) for attribute data

    Stack Overflow | 4 years ago | einverne
    org.apache.jasper.JasperException: /index.jsp(32,1) Unknown attribute type (Object) for attribute data.

  1. treefolk 6 times, last 3 months ago
  2. Andreas Häber 1 times, last 6 months ago
  3. Justin 2 times, last 9 months ago
  4. abrazeneb 4 times, last 10 months ago
  5. andyglick 12 times, last 8 months ago
1 more registered users
72 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. GWT dev
    JspServlet.service
    1. org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    2. org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    3. org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
    4. org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
    5. org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
    6. org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
    7. org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
    8. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    9. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    10. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    10 frames
  3. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  4. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    8 frames
  5. Grizzly HTTP
    JIoEndpoint$Worker.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    3 frames
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame