http-tomcat一直出这个问题HTTP Status 500

问题描述

tomcat一直出这个问题HTTP Status 500

HTTP Status 500 - java.lang.NullPointerException
type Exception report

message java.lang.NullPointerException

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:548)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:469)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause

java.lang.NullPointerException
org.apache.jsp.index_jsp._jspService(index_jsp.java:268)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:431)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.20 logs.

解决方案

你的程序有问题,有对象为null,仔细检查下。

解决方案二:

服务器响应错误,从异常信息来看是常见的空指针异常。请检查访问的JSP页面某个对象的值为空了导致的。

解决方案三:

在服务端程序中加log等分析,服务代码出现错误了。

解决方案四:

检查下index.jsp文件,可能里面写的java代码有问题。

时间: 2024-11-03 12:17:31

http-tomcat一直出这个问题HTTP Status 500的相关文章

status-系统网页出现这报错:HTTP Status 500,是访问JSP页面哪个地方出错了或者别的?

问题描述 系统网页出现这报错:HTTP Status 500,是访问JSP页面哪个地方出错了或者别的? 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: j

安卓应用开发-关于安卓开发,连接tomcat抛出exception

问题描述 关于安卓开发,连接tomcat抛出exception 初学者,自己写的安卓程序,用json连接tomcat,mysql数据库,结果运行时候抛出异常,求帮助! 下面是抛出的异常, 在控制台打印的结果显示除了方括号以外根本没有信息返回 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956

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

servlet-HTTP Status 500 - Servlet.init()

问题描述 HTTP Status 500 - Servlet.init() HTTP Status 500 - Servlet.init() for servlet springmvc threw exception type Exception report message Servlet.init() for servlet springmvc threw exception description The server encountered an internal error that

测试-HTTP Status 500 - For input string: "3.0"

问题描述 HTTP Status 500 - For input string: "3.0" 我在做一个增加数据功能的网页,测试时出现了错误提示如下(输入整型数据时不报错,但是输入浮点型数据时却报错): java.lang.NumberFormatException: For input string: "2.0" java.lang.NumberFormatException.forInputString(Unknown Source) java.lang.Int

tomcat-Tomcat部署HTTP Status 500

问题描述 Tomcat部署HTTP Status 500 解决方案 http://q.cnblogs.com/q/24097/ 解决方案二: http://elva1087penny.blog.163.com/blog/static/100456917201304113944244/ 解决方案三: tomcat7 HTTP Status 500 - java.lang.ClassCastExceptionTomcat 5.5.26 Administration Tool HTTP Status

loginaction-http Status 500 app.action.LoginAction.index()

问题描述 http Status 500 app.action.LoginAction.index() HTTP Status 500 - app.action.LoginAction.index() 错误信息是: type Exception report message app.action.LoginAction.index() description The server encountered an internal error that prevented it from fulfi

jsp-HTTP Status 500 - Unable to compile class for JSP

问题描述 HTTP Status 500 - Unable to compile class for JSP 求大牛求解!新手不了解 j点击Jsp页面出现的错误 type Exception report message Unable to compile class for JSP description The server encountered an internal error that prevented it from fulfilling this request. except

jsp web html-HTTP Status 500 - javax.servlet.ServletException

问题描述 HTTP Status 500 - javax.servlet.ServletException type Exception report message javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/lucene/search/Query description The server encountered an internal error that prevented it