tomcat 500 错误 烦请高手指点
我tomcat已经运行,mysql什么都加载好了但是运行war文件后,就出现500错误,如下,
请高手指点!
谢谢
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 4
1: <%@ page language="java" contentType="text ml; charset=UTF-8"
2: pageEncoding="UTF-8"%>
3: <%
4: ArrayList<Auto> autos = AutoDAO.getAutos();
5: ArrayList<Series> seriesArray = SeriesDAO.getSeries();
6: %>
7: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.carshop.util.EncodingFilter.doFilter(EncodingFilter.java:37)
com.carshop.web.LoginFilter.doFilter(LoginFilter.java:53)
root cause
java.lang.NullPointerException
com.carshop.dao.AutoDAO.getAutos(AutoDAO.java:47)
org.apache.jsp.index_jsp._jspService(index_jsp.java:63)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.carshop.util.EncodingFilter.doFilter(EncodingFilter.java:37)
com.carshop.web.LoginFilter.doFilter(LoginFilter.java:53)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.
--------------------------------------------------------------------------------