java.lang.Exception: 单元格 G3 的下拉数据窗口指定的数据集 ds1 不存在! at com.runqian.report4.view.html.HtmlReport.getDataWinEditConfig(Unknown Source:1539) at com.runqian.report4.view.html.ParamForm.generateHtml(Unknown Source:281) at com.runqian.report4.tag.ParamTag.doStartTag(Unknown Source:243) at org.apache.jsp.CP_005fCOUNTTUOPAN2_jsp._jspx_meth_report_005fparam_005f0(CP_005fCOUNTTUOPAN2_jsp.java:217) at org.apache.jsp.CP_005fCOUNTTUOPAN2_jsp._jspService(CP_005fCOUNTTUOPAN2_jsp.java:158) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
java.lang.Exception: 单元格 G3 的下拉数据窗口指定的数据集 ds1 不存在! at com.runqian.report4.view.html.HtmlReport.getDataWinEditConfig(Unknown Source:1539) at com.runqian.report4.view.html.ParamForm.generateHtml(Unknown Source:281) at com.runqian.report4.tag.ParamTag.doStartTag(Unknown Source:243) at org.apache.jsp.CP_005fCOUNTTUOPAN2_jsp._jspx_meth_report_005fparam_005f0(CP_005fCOUNTTUOPAN2_jsp.java:217) at org.apache.jsp.CP_005fCOUNTTUOPAN2_jsp._jspService(CP_005fCOUNTTUOPAN2_jsp.java:158) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
详细报错麻烦贴一下
另外您那可以先尝试重启右上角的 Tomcat 服务看看
java.lang.Exception: 单元格 G3 的下拉数据窗口指定的数据集 ds1 不存在!
at com.runqian.report4.view.html.HtmlReport.getDataWinEditConfig(Unknown Source:1539)
at com.runqian.report4.view.html.ParamForm.generateHtml(Unknown Source:281)
at com.runqian.report4.tag.ParamTag.doStartTag(Unknown Source:243)
at org.apache.jsp.CP_005fCOUNTTUOPAN2_jsp._jspx_meth_report_005fparam_005f0(CP_005fCOUNTTUOPAN2_jsp.java:217)
at org.apache.jsp.CP_005fCOUNTTUOPAN2_jsp._jspService(CP_005fCOUNTTUOPAN2_jsp.java:158)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
java.lang.Exception: 单元格 G3 的下拉数据窗口指定的数据集 ds1 不存在!
at com.runqian.report4.view.html.HtmlReport.getDataWinEditConfig(Unknown Source:1539)
at com.runqian.report4.view.html.ParamForm.generateHtml(Unknown Source:281)
at com.runqian.report4.tag.ParamTag.doStartTag(Unknown Source:243)
at org.apache.jsp.CP_005fCOUNTTUOPAN2_jsp._jspx_meth_report_005fparam_005f0(CP_005fCOUNTTUOPAN2_jsp.java:217)
at org.apache.jsp.CP_005fCOUNTTUOPAN2_jsp._jspService(CP_005fCOUNTTUOPAN2_jsp.java:158)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
这类错误,一般是数据源访问有问题导致的,ds1 用的什么数据库 要确保 xml 里配置了这个数据源 并且应用下有对应的数据库驱动
配置–数据集那边的列表里有 ds1 这个名称吗?
截图下这个数据集列表我看下
CP_COUNTTUOPAN2txt
但是我在 jsp 文件配置中没有发现有关于数据库配置的信息
CP_COUNTTUOPAN2txt
这是 jsp 的文件
G3 单元格的编辑风格改为编辑框,看是否报错
如果不报错,那么 G3 单元格右击设置为下拉数据集,重新配置下下拉数据集看看
如果报错,吧报错信息贴一下
谢谢,是有问题的,已经更正了