当前位置: 代码迷 >> J2SE >> jsp程序,进入网页中。注册一个新用户时,报错,哪位帮忙看一下?多谢
  详细解决方案

jsp程序,进入网页中。注册一个新用户时,报错,哪位帮忙看一下?多谢

热度:38   发布时间:2016-04-24 13:01:46.0
jsp程序,进入网页中。注册一个新用户时,报错,哪位帮忙看一下???谢谢

jsp注册新用户时,报错,哪位帮忙看一下???
type Exception report

message 

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

exception 

org.apache.jasper.JasperException: java.lang.IllegalStateException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:532)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:420)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause 

java.lang.IllegalStateException
org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
org.apache.jsp.WebContent.register_005fnew_005fuser_jsp._jspService(register_005fnew_005fuser_jsp.java:116)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.10 logs.



------解决方案--------------------
org.apache.jsp.WebContent.register_005fnew_005fuser_jsp._jspService(register_005fnew_005fuser_jsp.java:116) 

去 tomcat/work 
子目录下面找到这个register_005fnew_005fuser_jsp.java

看看第116行为何为null
------解决方案--------------------
//注册成功即意味着登录成功,迁移到游戏选择画面 
response.sendRedirect("entry.jsp");

out.write('\r');
out.write('\n');


红色部分有问题吧,你都跳转页面了还输出,试一下,是不是这里有问题????
------解决方案--------------------
探讨
把页面缓存改大些试试,应该是 sendRedirect 时响应已经被提交了(响应数据已经开始向客户端发送了)。

------解决方案--------------------
探讨
sf
难道是有字段类型不匹配?

代码迷推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.daimami.com/search?q=317
  相关解决方案