jsp页面跑不出来,报空指针错误
严重:Servlet.service()forservletdefaultthrewexceptionjava.lang.NullPointerExceptionator...
严重: Servlet.service() for servlet default threw exception
java.lang.NullPointerException
at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:746)
at org.apache.struts2.components.UIBean.end(UIBean.java:481)
at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTa
gSupport.java:43)
at org.apache.jsp.WEB_002dINF.dealer.internetInfoReg_jsp._jspx_meth_s_00
5fhidden_005f0(internetInfoReg_jsp.java:495)
at org.apache.jsp.WEB_002dINF.dealer.internetInfoReg_jsp._jspx_meth_s_00
5fform_005f0(internetInfoReg_jsp.java:367)
at org.apache.jsp.WEB_002dINF.dealer.internetInfoReg_jsp._jspService(int
ernetInfoReg_jsp.java:172)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
37)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
下面还有,有字数限制写不下了,各位高手帮忙看看啊,多谢 展开
java.lang.NullPointerException
at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:746)
at org.apache.struts2.components.UIBean.end(UIBean.java:481)
at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTa
gSupport.java:43)
at org.apache.jsp.WEB_002dINF.dealer.internetInfoReg_jsp._jspx_meth_s_00
5fhidden_005f0(internetInfoReg_jsp.java:495)
at org.apache.jsp.WEB_002dINF.dealer.internetInfoReg_jsp._jspx_meth_s_00
5fform_005f0(internetInfoReg_jsp.java:367)
at org.apache.jsp.WEB_002dINF.dealer.internetInfoReg_jsp._jspService(int
ernetInfoReg_jsp.java:172)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
37)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
下面还有,有字数限制写不下了,各位高手帮忙看看啊,多谢 展开
4个回答
展开全部
你可以在这个jsp页面加个断点,看看具体是哪行出现的错误
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你jsp页面在取值的时候,某个变量一定是空值!在一个测试最好用IE
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
删除work文件后看看主要你变量没有初始化这个问题好找
追问
我的页面上没有变量啊
追答
你传给jsp页面的值也可能是没有初始话的,你看看你都传了什么样的值和页面都得到了什么样的值,一个个注释排查就ok了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询