首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Exception >

在struts环境中使用validation框架出现java.lang.NullPointerException的问题。

2014-01-26 
服务器是resin3.0.8,在显示页面表单的时候报错。页面报错信息:500 Servlet Exceptionjavax.servlet.jsp.JspE

服务器是resin3.0.8,在显示页面表单的时候报错。
 
  页面报错信息:
  500 Servlet Exception
  javax.servlet.jsp.JspException: ServletException in '/phoneRecord/uploadRecords.jsp':
  null
  at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:921)
  at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
  at _jsp._common._layouts._classiclayout__jsp._jspService(/common/layouts/classicLayout.jsp:29)
  at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
  at com.caucho.jsp.Page.pageservice(Page.java:571)
  at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155)
  at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:129)
  at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
  at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:272)
  at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:112)
  at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
  at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261)
  at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:237)
  at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:300)
  at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
  at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
  at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
  at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:113)
  at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:211)
  at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)
  at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
  at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
  at com.caucho.server.port.TcpConnection.run(TcpConnection.java:331)
  at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:464)
  at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
  at java.lang.Thread.run(Thread.java:534)
 
  控制台信息:
  [17:47:28.336] ServletException in '/phoneRecord/uploadRecords.jsp': null
  [17:47:28.336] java.lang.NullPointerException
  [17:47:28.336] at com.caucho.jsp.PageContextImpl.handlePageException(PageContextImpl.java:957)
  [17:47:28.336] at _jsp._phonerecord._uploadrecords__jsp._jspService(_uploadrecords__jsp.java:147)
  [17:47:28.336] at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
  [17:47:28.336] at com.caucho.jsp.Page.pageservice(Page.java:571)
  [17:47:28.336] at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155)
  [17:47:28.336] at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:12
  9)
  [17:47:28.336] at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:211)
  [17:47:28.336] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
  [17:47:28.336] at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java
  :476)
  [17:47:28.336] at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java
  :345)
  [17:47:28.336] at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:807)
  [17:47:28.336] at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:762)         

热点排行