Type Exception Report
Message Unable to compile class for JSP:
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [17] in the jsp file: [/WEB-INF/tags/core/wcm_cms_news/鏂伴椈鍒楄〃.tag] Duplicate local variable par 14: year = Common.filterHtml(Common.getString( request.getParameter("year"))); 15: month = Common.filterHtml(Common.getString( request.getParameter("mon"))); 16: //瀛樺€肩敤 17: List par=new ArrayList(); 18: if(keys!=null&&!keys.equals("")){ 19: condition+=" and (title like ? or content like ? )"; 20: //鍒ゆ柇杩涘叆杩欎釜if锛屽氨鎶婂搴旓紵鐨勫€煎瓨杩涘幓 Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:392) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:594) org.apache.jasper.compiler.Compiler.compile(Compiler.java:400) org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) org.apache.jasper.compiler.Compiler.compile(Compiler.java:354) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:660) org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:270) org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:574) org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:49) org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:651) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1553) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2444) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2450) org.apache.jasper.compiler.Node$Root.accept(Node.java:474) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2444) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2468) org.apache.jasper.compiler.Node$IncludeDirective.accept(Node.java:653) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2444) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2450) org.apache.jasper.compiler.Node$Root.accept(Node.java:474) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392) org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:669) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:235) org.apache.jasper.compiler.Compiler.compile(Compiler.java:394) org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) org.apache.jasper.compiler.Compiler.compile(Compiler.java:354) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:660) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:400) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) com.jerei.website.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:84)
Note The full stack trace of the root cause is available in the server logs.