type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: /zwgk/Cont_zwgk_zsdw.jsp(30,2) Invalid byte 2 of 2-byte UTF-8 sequence.
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:339)
org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.4 logs.

解决方案 »

  1.   

    lz到%CATALINA%\work目录下找到workCont_zwgk_zsdw_jsp.java文件检查第30行代码:
    zwgk/Cont_zwgk_zsdw.jsp(30,2) Invalid byte 2 of 2-byte UTF-8 sequence.
      

  2.   

    JSP文件中有不规范的字符,仔细检查下
      

  3.   

    <%@page contentType="text/html;charset=GBK"%>
    <%@page import="com.ldj.tool.*"%>
    <html>
    <head>
    <title><%=Message.COMPANY_NAME%></title>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="0">
    <meta http-equiv="Content-Type" content="text/html; charset=GBK">
    <%@ include file="../main/Conn_Top.jsp"%>
    </head>
    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
    <%@ include file="../main/Content_Top.jsp"%>
    <table width="760" height="100%" border="1" cellspacing="0" cellpadding="0" align="center" bgcolor="#f4f1e8" bordercolordark="#0099FF" bordercolorlight="#FFFFFF">
      <tr> 
        <td width="180" valign="top"> 
          <%@ include file="../main/Content_Left.jsp"%>
        </td>
        <td valign="top">
          <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
                    <td colspan="2" background="<%=strSkinImage%>/about_r4_c2.gif" class="ContText"><img src="<%=strSkinImage%>/about_r4_c1.jpg" width="217" height="46"></td>
            </tr>
            <tr>
    <td height="22"><%@ include file="../main/dqwz.jsp"%></td>
            </tr>
            <tr>
              <td height="100%" valign="top"  class="font1">
        <br>
    <%@ include file="../upload/zwgk_zsdw.htm"%>
                <br>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    <%@ include file="../main/Content_Bottom.jsp"%>
    </body>
    <%@ include file="../main/Conn_Bottom.jsp"%>
    </html>
    ________________________________________________________________
    谢谢楼上的两位朋友解答,我把Cont_zwgk_zsdw.jsp文件源码帖出来了,我先检查看Conn_Bottom.jsp
      

  4.   

    帖出Conn_Bottom.jsp文件的代码:
    <%
    }
        else {
            out.println(userClass.getMessage());
            out.println("<Script Language='javaScript'>");
            out.println("alert('"+ userClass.getMessage() +"!');");
            out.println("</Script>");
        }
    try {
            if (dataConn != null) {
                dataConn.close();
            }
        }
        catch(Exception e) {}
    %>
      

  5.   

    我把<%@ include file=""%>和<%=%>中的内容换掉后页面可以显示。
    应该是包含的页面有问题。
      

  6.   

    javaboy2006(喝着coffee学java) 
    好的,我按这个方法试了,问题虽然没得到解决,谢谢你的宝贵意见!!