| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 719 人关注过本帖
标题:tomcat 500 错误 烦请高手指点
只看楼主 加入收藏
hellokenshin
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2010-5-21
结帖率:0
收藏
已结贴  问题点数:20 回复次数:1 
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.


--------------------------------------------------------------------------------
搜索更多相关主题的帖子: tomcat 烦请 
2010-05-21 15:35
HeiN
Rank: 3Rank: 3
等 级:论坛游侠
帖 子:53
专家分:193
注 册:2010-3-30
收藏
得分:20 
500错误是 运行服务器代码 有错,NullPointerException报空指针,你调试下ArrayList<Auto> autos = AutoDAO.getAutos();的getAutos();方法试下,应该是这个方法返回的数据为null,所以在页面显示时从Null中取东西才报错吧!!!!!
2010-05-21 22:16
快速回复:tomcat 500 错误 烦请高手指点
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015030 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved