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:

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via jtbc.cn by Unknown author, 1 year ago
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
via Stack Overflow by mantelinga r
, 2 months ago
Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files Stacktrace:
via Stack Overflow by Skibrit
, 7 months ago
Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files Stacktrace:
via google.com by Unknown author, 2 years ago
Unable to compile class for JSP: An error occurred at line: 53 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory Stacktrace:
via Coderanch by tayo balogun, 11 months ago
Unable to compile class for JSP: An error occurred at line: 135 in the jsp file: /CalculateRatios.jsp The method getInsuranceType(String, String) in the type RatioService is not applicable for the arguments () 132: <% selected_insurtype = insur_id
via Stack Overflow by Xuanzi Han
, 2 years ago
Unable to compile class for JSP: An error occurred at line: 22 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory Stacktrace:
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 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.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
75 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.