我在做数据库查询显示时,对已经查询的数据进行排序,系统抛出 这样的excepion:
17:20:09,281 ERROR [debugjsp]:704 - Servlet.service() for servlet debugjsp threw exception
javax.servlet.jsp.JspException: TableTag Problem: javax.servlet.jsp.JspException: TableTag.doAfterBody() Problem: java.lang.NullPointerException
at org.extremecomponents.table.core.TableModelUtils.isSorted(TableModelUtils.java:110)
at org.extremecomponents.table.cell.HeaderCell.getHtmlDisplay(HeaderCell.java:49)
at org.extremecomponents.table.handler.ColumnHandler.getHeaderColumns(ColumnHandler.java:133)
at org.extremecomponents.table.view.html.TableBuilder.headerRow(TableBuilder.java:135)
at org.extremecomponents.table.view.HtmlView.beforeBodyInternal(HtmlView.java:36)
at org.extremecomponents.table.view.AbstractHtmlView.beforeBody(AbstractHtmlView.java:72)
at org.extremecomponents.table.handler.ViewHandler.setView(ViewHandler.java:61)
at org.extremecomponents.table.core.TableModelImpl.execute(TableModelImpl.java:253)
at org.extremecomponents.table.tag.TableTag.doAfterBody(TableTag.java:459)
at org.apache.jsp.dynareport.report.output_jsp._jspx_meth_ec_table_0(org.apache.jsp.dynareport.report.output_jsp:166)
at org.apache.jsp.dynareport.report.output_jsp._jspService(org.apache.jsp.dynareport.report.output_jsp:108)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.cavell.frameworkx.filter.LoginFilter.doFilter(LoginFilter.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.cavell.frameworkx.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
at org.extremecomponents.table.tag.TableTag.doAfterBody(TableTag.java:468)
at org.apache.jsp.dynareport.report.output_jsp._jspx_meth_ec_table_0(org.apache.jsp.dynareport.report.output_jsp:166)
at org.apache.jsp.dynareport.report.output_jsp._jspService(org.apache.jsp.dynareport.report.output_jsp:108)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.cavell.frameworkx.filter.LoginFilter.doFilter(LoginFilter.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.cavell.frameworkx.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
at org.extremecomponents.table.tag.TableTag.doCatch(TableTag.java:488)
at org.apache.jsp.dynareport.report.output_jsp._jspx_meth_ec_table_0(org.apache.jsp.dynareport.report.output_jsp:176)
at org.apache.jsp.dynareport.report.output_jsp._jspService(org.apache.jsp.dynareport.report.output_jsp:108)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.cavell.frameworkx.filter.LoginFilter.doFilter(LoginFilter.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.cavell.frameworkx.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
那你找到那些是设置值的时候,那些值有没有为空?相关的对象是不是空?
17:20:09,281 ERROR [debugjsp]:704 - Servlet.service() for servlet debugjsp threw exception
javax.servlet.jsp.JspException: TableTag Problem: javax.servlet.jsp.JspException: TableTag.doAfterBody() Problem: java.lang.NullPointerException
at org.extremecomponents.table.core.TableModelUtils.isSorted(TableModelUtils.java:110)
at org.extremecomponents.table.cell.HeaderCell.getHtmlDisplay(HeaderCell.java:49)
at org.extremecomponents.table.handler.ColumnHandler.getHeaderColumns(ColumnHandler.java:133)
at org.extremecomponents.table.view.html.TableBuilder.headerRow(TableBuilder.java:135)
at org.extremecomponents.table.view.HtmlView.beforeBodyInternal(HtmlView.java:36)
at org.extremecomponents.table.view.AbstractHtmlView.beforeBody(AbstractHtmlView.java:72)
at org.extremecomponents.table.handler.ViewHandler.setView(ViewHandler.java:61)
at org.extremecomponents.table.core.TableModelImpl.execute(TableModelImpl.java:253)
at org.extremecomponents.table.tag.TableTag.doAfterBody(TableTag.java:459)
at org.apache.jsp.dynareport.report.output_jsp._jspx_meth_ec_table_0(org.apache.jsp.dynareport.report.output_jsp:166)
at org.apache.jsp.dynareport.report.output_jsp._jspService(org.apache.jsp.dynareport.report.output_jsp:108)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.cavell.frameworkx.filter.LoginFilter.doFilter(LoginFilter.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.cavell.frameworkx.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
at org.extremecomponents.table.tag.TableTag.doAfterBody(TableTag.java:468)
at org.apache.jsp.dynareport.report.output_jsp._jspx_meth_ec_table_0(org.apache.jsp.dynareport.report.output_jsp:166)
at org.apache.jsp.dynareport.report.output_jsp._jspService(org.apache.jsp.dynareport.report.output_jsp:108)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.cavell.frameworkx.filter.LoginFilter.doFilter(LoginFilter.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.cavell.frameworkx.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
at org.extremecomponents.table.tag.TableTag.doCatch(TableTag.java:488)
at org.apache.jsp.dynareport.report.output_jsp._jspx_meth_ec_table_0(org.apache.jsp.dynareport.report.output_jsp:176)
at org.apache.jsp.dynareport.report.output_jsp._jspService(org.apache.jsp.dynareport.report.output_jsp:108)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.cavell.frameworkx.filter.LoginFilter.doFilter(LoginFilter.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.cavell.frameworkx.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
评论
7 楼
hgq0011
2007-05-11
hongnaiqin 写道
hgq0011 14 小时前
“javax.servlet.jsp.JspException: TableTag Problem: javax.servlet.jsp.JspException: TableTag.doAfterBody() Problem: java.lang.NullPointerException”检查一下为什么会有这个异常
我就是找不到为什么会出现这样的Exception!
“javax.servlet.jsp.JspException: TableTag Problem: javax.servlet.jsp.JspException: TableTag.doAfterBody() Problem: java.lang.NullPointerException”检查一下为什么会有这个异常
我就是找不到为什么会出现这样的Exception!
那你找到那些是设置值的时候,那些值有没有为空?相关的对象是不是空?
6 楼
hongnaiqin
2007-05-11
hgq0011 14 小时前
“javax.servlet.jsp.JspException: TableTag Problem: javax.servlet.jsp.JspException: TableTag.doAfterBody() Problem: java.lang.NullPointerException”检查一下为什么会有这个异常
我就是找不到为什么会出现这样的Exception!
“javax.servlet.jsp.JspException: TableTag Problem: javax.servlet.jsp.JspException: TableTag.doAfterBody() Problem: java.lang.NullPointerException”检查一下为什么会有这个异常
我就是找不到为什么会出现这样的Exception!
5 楼
hgq0011
2007-05-10
“javax.servlet.jsp.JspException: TableTag Problem: javax.servlet.jsp.JspException: TableTag.doAfterBody() Problem: java.lang.NullPointerException”检查一下为什么会有这个异常
4 楼
hongnaiqin
2007-05-10
这个是类处理代码:
ReportService serv = ReportService.getInstance();
UserInfoService uis = UserInfoService.getInstance();
Collection<DssReportColumn> columns = null;
Collection<DssReportCriteria> criterias = null;
String tableName = "";
String reportName = "";
if (request.getParameter("id") != null
&& !request.getParameter("id").equals("")) {
DssReport report = serv.retrieveById(Integer.parseInt(request.
getParameter("id")));
columns = report.getDssReportColumns();
criterias = report.getDssReportCriterias();
tableName = report.getTableName();
reportName = report.getReportName();
} else {
ReportForm rform = (ReportForm) form;
columns = new ArrayList<DssReportColumn>();
String[] sel = rform.getColumnSel();
for (String s : sel) {
DssReportColumn drc = new DssReportColumn();
drc.setColomn(s);
columns.add(drc);
}
criterias = new ArrayList<DssReportCriteria>();
List<CriteriaForm> l = rform.getColumns();
for (CriteriaForm o : l) {
DssReportCriteria drc = new DssReportCriteria();
drc.setColomn(o.getColumnName());
drc.setOperator(o.getOperator());
drc.setValue(o.getValue());
criterias.add(drc);
}
tableName = rform.getTableName();
reportName = rform.getReportName();
}
String sql = buildsql(columns, criterias, tableName);
if (sql == null || sql.equals("")) {
request.setAttribute("error","The report is not correct. Please redefine it.");
return mapping.findForward("error");
}
Limit limit = ExtremeTablePage.getLimit(request, 15);
boolean needFilter=false;
if("ec".equals(request.getParameter("ec_eti"))){
needFilter=true;
}
Page page = serv.findBySql(sql, ExtremeTablePage.getSort(limit)
, limit.getPage(), limit.getCurrentRowsDisplayed(),needFilter);
List<Map> reptList = (List<Map>) page.getResult();
request.setAttribute("totalRows", new Integer(page.getTotalCount()));
Table table = ReportConfig.getInstance().getTable(tableName);
Map viewMap = new LinkedHashMap();
for (DssReportColumn col : columns) {
viewMap.put(col.getColomn(),
table.findColumn(col.getColomn()).getAlias());
}
DssSysUser user = uis.retrieveById(new Integer((String) request.getSession().getAttribute("userId")));
Map detailMap = new HashMap();
if (page.getTotalCount() <= MAX_OUTPUT_SIZE) {
detailMap.put("results", page.getTotalCount() + " rows are exported");
} else {
detailMap.put("results", MAX_OUTPUT_SIZE +" rows are exported"
+ " there are still more in database.");
}
detailMap.put("sql", sql);
detailMap.put("author", user.getUserName());
detailMap.put("time",
DateFormatUtils.format(new Date(),
DateFormatUtils.
ISO_DATETIME_FORMAT.
getPattern()));
request.setAttribute("detail", detailMap);
request.setAttribute("reportName", reportName);
request.setAttribute("reportTitle",
"ReportName="
+ reportName
+ "<br/>"
+ "SQL=" + sql + "<br/>"
+ "Author="
+ user.getUserName()
+ "<br/>"
+ "CreateTime="
+ DateFormatUtils.format(new Date(),
DateFormatUtils.ISO_DATETIME_FORMAT.getPattern()));
request.setAttribute("columnName", viewMap);
request.setAttribute("columnValue", reptList);
return mapping.findForward("output");
}
ReportService serv = ReportService.getInstance();
UserInfoService uis = UserInfoService.getInstance();
Collection<DssReportColumn> columns = null;
Collection<DssReportCriteria> criterias = null;
String tableName = "";
String reportName = "";
if (request.getParameter("id") != null
&& !request.getParameter("id").equals("")) {
DssReport report = serv.retrieveById(Integer.parseInt(request.
getParameter("id")));
columns = report.getDssReportColumns();
criterias = report.getDssReportCriterias();
tableName = report.getTableName();
reportName = report.getReportName();
} else {
ReportForm rform = (ReportForm) form;
columns = new ArrayList<DssReportColumn>();
String[] sel = rform.getColumnSel();
for (String s : sel) {
DssReportColumn drc = new DssReportColumn();
drc.setColomn(s);
columns.add(drc);
}
criterias = new ArrayList<DssReportCriteria>();
List<CriteriaForm> l = rform.getColumns();
for (CriteriaForm o : l) {
DssReportCriteria drc = new DssReportCriteria();
drc.setColomn(o.getColumnName());
drc.setOperator(o.getOperator());
drc.setValue(o.getValue());
criterias.add(drc);
}
tableName = rform.getTableName();
reportName = rform.getReportName();
}
String sql = buildsql(columns, criterias, tableName);
if (sql == null || sql.equals("")) {
request.setAttribute("error","The report is not correct. Please redefine it.");
return mapping.findForward("error");
}
Limit limit = ExtremeTablePage.getLimit(request, 15);
boolean needFilter=false;
if("ec".equals(request.getParameter("ec_eti"))){
needFilter=true;
}
Page page = serv.findBySql(sql, ExtremeTablePage.getSort(limit)
, limit.getPage(), limit.getCurrentRowsDisplayed(),needFilter);
List<Map> reptList = (List<Map>) page.getResult();
request.setAttribute("totalRows", new Integer(page.getTotalCount()));
Table table = ReportConfig.getInstance().getTable(tableName);
Map viewMap = new LinkedHashMap();
for (DssReportColumn col : columns) {
viewMap.put(col.getColomn(),
table.findColumn(col.getColomn()).getAlias());
}
DssSysUser user = uis.retrieveById(new Integer((String) request.getSession().getAttribute("userId")));
Map detailMap = new HashMap();
if (page.getTotalCount() <= MAX_OUTPUT_SIZE) {
detailMap.put("results", page.getTotalCount() + " rows are exported");
} else {
detailMap.put("results", MAX_OUTPUT_SIZE +" rows are exported"
+ " there are still more in database.");
}
detailMap.put("sql", sql);
detailMap.put("author", user.getUserName());
detailMap.put("time",
DateFormatUtils.format(new Date(),
DateFormatUtils.
ISO_DATETIME_FORMAT.
getPattern()));
request.setAttribute("detail", detailMap);
request.setAttribute("reportName", reportName);
request.setAttribute("reportTitle",
"ReportName="
+ reportName
+ "<br/>"
+ "SQL=" + sql + "<br/>"
+ "Author="
+ user.getUserName()
+ "<br/>"
+ "CreateTime="
+ DateFormatUtils.format(new Date(),
DateFormatUtils.ISO_DATETIME_FORMAT.getPattern()));
request.setAttribute("columnName", viewMap);
request.setAttribute("columnValue", reptList);
return mapping.findForward("output");
}
3 楼
hongnaiqin
2007-05-10
这个是 页面代码:
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../../common/global.jsp"%>
<%@ taglib uri="/tld/extremecomponents" prefix="ec" %>
<html>
<head>
<title>CCN</title>
<jsp:include page="../../common/header.jsp" flush="true"/>
</head>
<link rel="stylesheet" href="<%=cp%>/dynareport/report/extremecomponents.css"
type="text/css">
<body>
<%
System.out.println("run it");
%>
<jsp:include page="../../common/sub_header.jsp" flush="true"/>
<div class="pageHeader">My Report
<div align="right"> </div>
</div>
<div class="content">
<ec:table
items="columnValue"
title="${reportTitle}"
action="${pageContext.request.contextPath}/dynareport/report/ReportSettingAction.do"
imagePath="${pageContext.request.contextPath}/images/table/*.gif"
width="80%"
filterable="false"
sortable="true"
retrieveRowsCallback="limit"
sortRowsCallback="limit"
filterRowsCallback="limit"
>
<ec:exportXls
view="xls"
fileName="output.xls"
tooltip="Export Excel"
viewResolver="com.cavell.dynareport.reportconf.XlsViewResolver"/>
<ec:row>
<ec:columns autoGenerateColumns="com.cavell.dynareport.reportconf.EditGenerateColumnsImpl">
</ec:columns>
</ec:row>
</ec:table>
</div>
<jsp:include page="../../common/footer.jsp" flush="true"/>
</body>
</html>
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../../common/global.jsp"%>
<%@ taglib uri="/tld/extremecomponents" prefix="ec" %>
<html>
<head>
<title>CCN</title>
<jsp:include page="../../common/header.jsp" flush="true"/>
</head>
<link rel="stylesheet" href="<%=cp%>/dynareport/report/extremecomponents.css"
type="text/css">
<body>
<%
System.out.println("run it");
%>
<jsp:include page="../../common/sub_header.jsp" flush="true"/>
<div class="pageHeader">My Report
<div align="right"> </div>
</div>
<div class="content">
<ec:table
items="columnValue"
title="${reportTitle}"
action="${pageContext.request.contextPath}/dynareport/report/ReportSettingAction.do"
imagePath="${pageContext.request.contextPath}/images/table/*.gif"
width="80%"
filterable="false"
sortable="true"
retrieveRowsCallback="limit"
sortRowsCallback="limit"
filterRowsCallback="limit"
>
<ec:exportXls
view="xls"
fileName="output.xls"
tooltip="Export Excel"
viewResolver="com.cavell.dynareport.reportconf.XlsViewResolver"/>
<ec:row>
<ec:columns autoGenerateColumns="com.cavell.dynareport.reportconf.EditGenerateColumnsImpl">
</ec:columns>
</ec:row>
</ec:table>
</div>
<jsp:include page="../../common/footer.jsp" flush="true"/>
</body>
</html>
2 楼
Sphinx_yong
2007-05-10
把你代码贴出来看看
1 楼
hongnaiqin
2007-05-10
寻找中。。。。
相关推荐
**eXtremeTable中文文档** eXtremeTable是一个高性能、可扩展的表格存储系统,主要用于处理大规模数据。这个系统的设计目标是提供快速的数据访问和处理能力,以适应大数据时代的挑战。它融合了数据库管理和分布式...
根据提供的文档部分内容,我们可以推断出这是一篇关于 eXtremeTable 的中文文档,主要涉及该工具或系统的使用、配置以及相关技术细节。虽然原始文本包含大量的特殊字符和不可读部分,但仍然可以从其中提取出一些关键...
eXtremeTable文档 eXtremeTable文档 eXtremeTable文档 eXtremeTable文档 eXtremeTable文档 eXtremeTable文档
博文链接:https://xinzhiz.iteye.com/blog/198102
**eXtremeTable** 是一个专为Java Web开发设计的高效、易用的表格控件,它在处理大量数据时表现出色,尤其在数据分页和导出方面。在这个完整的例子中,我们将会深入探讨如何利用eXtremeTable实现数据的分页以及多种...
我也刚开始看,感觉是个好东东,大家多多交流
- **其他贡献者**: 包括Paul Horn、Dave Goodin、Brad Parks等人。 #### 三、主要特点 **extremeTable**具有以下几个显著的特点: 1. **Excel/PDF导出无需额外JSP**: 相比于`valueList`等工具,使用**...
《eXtremeTable参考文档》是针对eXtremeComponents中的一款核心组件——eXtremeTable的详细指南。eXtremeComponents是一个开源项目,它为JavaServer Pages (JSP) 开发者提供了丰富的定制标签库,使得在Web应用开发中...
本教程将详细讲解如何使用Hibernate ORM框架结合ExtremeTable实现高效的分页查询。 Hibernate是一个强大的对象关系映射(ORM)框架,它允许开发者以面向对象的方式处理数据库操作,避免了直接编写SQL语句的繁琐。而...
《eXtremeTable教程详解》 eXtremeTable是一款强大的开源JSP定制标签库,主要用于在Web应用中以表格形式展示数据。本教程详细介绍了eXtremeTable的配置、使用方法以及各种标签的功能,旨在帮助开发者充分利用其功能...
**eXtremeTable** 是一个高性能、轻量级的表格处理库,它为Java开发者提供了强大而灵活的表格数据管理能力。这个压缩包“eXtremeTable的使用方法.rar”显然包含了关于如何有效利用eXtremeTable的相关指南,特别是...
displayTag,extremeTable相关文章
### eXtremeTable使用指南:深入理解与配置 #### 引言 eXtremeTable作为eXtremeComponents系列中的核心组件之一,专为高级数据展示而设计,尤其适用于表格形式的数据呈现。该开源项目由Jeff Johnston领导的ECCN...
Spring MVC、Hibernate 和 ExtremeTable 是三个在Web开发中常见的技术框架,它们分别负责不同的职责,协同工作以实现高效的数据管理。下面将详细解释这三个技术及其在数据库增删改查中的应用。 Spring MVC 是一个...
eXtremeTable分页控件完整例子包括了数据的分页、数据的Excel格式导出、数据的pdf电子书格式导出、数据的文本文件格式导出等功能,里面的源代码写得非常详细,好好看一下.... 功能强大,易于扩展的extremetable就是个...
**eXtremeTable 使用手册概述** eXtremeTable 是 eXtremeComponents 系列中的一个开源 JSP 定制标签库,专门用于以表格形式展示数据。该库致力于提供高效、灵活的表格展示功能,使得开发者可以轻松配置和定制表格。...