tomcat http 500问题

问题描述

各位兄弟,小弟初学jsp,请帮帮忙看看哪里出错了,该怎么处理,谢谢!从主页面登陆后显示错误信息:typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.exceptionjavax.servlet.ServletExceptionorg.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)javax.servlet.http.HttpServlet.service(HttpServlet.java:627)javax.servlet.http.HttpServlet.service(HttpServlet.java:729)org.mmxbb.exam.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:56)rootcausejava.lang.NullPointerExceptionorg.mmxbb.exam.dao.ExamineeDAO.isAdminUser(ExamineeDAO.java:716)org.mmxbb.exam.business.AdminLogonAction.execute(AdminLogonAction.java:20)org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)javax.servlet.http.HttpServlet.service(HttpServlet.java:627)javax.servlet.http.HttpServlet.service(HttpServlet.java:729)org.mmxbb.exam.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:56)noteThefullstacktraceoftherootcauseisavailableintheApacheTomcat/5.5.28logs.

解决方案

解决方案二:
java.lang.NullPointerExceptionorg.mmxbb.exam.dao.ExamineeDAO.isAdminUser(ExamineeDAO.java:716)从这儿可以看出是ExamineeDAO类的isAdminUser方法716行出现空指针错误
解决方案三:
就是你的程序有问题了呗

时间: 2025-01-20 20:11:35

tomcat http 500问题的相关文章

Tomcat 404 500错误页面上的版本号隐藏或修改

 代码如下 复制代码 cd /home/tomcat/lib mkdir -p org/apache/catalina/util cd org/apache/catalina/util $ vi ServerInfo.properties server.info=Apache Tomcat Version X cd $CATALINA_HOME/bin ./catalina.sh stop ./catalina.sh start 如果你还想看Tomcat的真实版本,可以这样  代码如下 复制代码

分布式服务框架 dubbo/dubbox 入门示例(转)

dubbo是一个分布式的服务架构,可直接用于生产环境作为SOA服务框架. 官网首页:http://dubbo.io/ ,官方用户指南 http://dubbo.io/User+Guide-zh.htm上面的几张图画得不错,完全可以当做SOA架构的学习资料 淘宝将这个项目开源出来以后,得到了不少同行的支持,包括: 当当网的扩展版本dubbox :https://github.com/dangdangdotcom/dubbox 京东的扩展版本jd-hydra: http://www.oschina.

jsp代码在tomcat部署提示错误500

问题描述 jsp代码在tomcat部署提示错误500 HTTP Status 500 - type Exception report message description The server encountered an internal error that prevented it from fulfilling this request. exception java.lang.NullPointerException cn.edu.jstu.jsjxy.fbh.dao.impl.Us

部署到websphere6.1,自定义500页面输出的异常信息与tomcat不同?

问题描述 环境是spring3.2.4,分别部署在tomcat6和websphere6.1500.jsp,打印异常堆栈内容代码如下:Java代码 收藏代码<div>错误堆栈信息:<br/><c:forEach var="trace" items="${pageContext.exception.stackTrace}"><p>${trace}</p></c:forEach></div>

Tomcat报错:HTTP Status 500 (Wrapper cannot find servlet class)解决办法_java

Tomcat报错:HTTP Status 500 - Wrapper cannot find servlet class HTTP Status 500 - Wrapper cannot find servlet class com.servlet.servlet.RegServlet or a class it depends on type Exception report message Wrapper cannot find servlet class com.servlet.servl

hibernate-有关tomcat报错500的问题

问题描述 有关tomcat报错500的问题 description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.bean

tomcat运行一段时间后页面报HTTP Status 500

问题描述 web网页在运行一段时间后就出现HTTPStatus500错误,重新启动Tomcat后又正常.出现信息:typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.exceptionorg.apache.jasper.JasperExceptionorg.apache.jasper.servlet.JspServlet

哪位高手帮帮忙? JSP+TOMCAT 报错HTTP Status 500

问题描述 HTTPStatus500---------------------------------------------------------------------------------typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.exceptionjava.lang.NullPointerExcept

tomcat与nginx的整合&amp;amp;nginx 配置https

一.安装Tomcat和jdk   1.安装jdk # tar xvf jdk1.6.0_11.tar # mv jdk1.6.0_11 /usr/local/ 配置环境变量 # vim /etc/profile 添加 JAVA_HOME=/usr/local/jdk1.6.0_11 export JAVA_HOME CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar export CLASSPATH PATH=$JAVA_HOME