求助!!! : 产生数据工厂: api.ModelServiceDataSet 失败 (数据集名称): 生产数量 错误来源:api.ModelServiceDataSet
: 产生数据工厂: api.ModelServiceDataSet 失败 (数据集名称): 生产数量 错误来源:api.ModelServiceDataSet
at com.raqsoft.report.usermodel.Engine.calcDataSet(Engine.java:177)
at com.raqsoft.report.usermodel.Engine.calcDataSet(Engine.java:143)
at com.raqsoft.report.usermodel.Engine.calc(Engine.java:94)
at com.raqsoft.report.cache.LocalReportCache.getReport(LocalReportCache.java:137)
at com.raqsoft.report.cache.ReportCache.getReport(ReportCache.java:177)
at com.raqsoft.report.tag.HtmlTag.generateHtmlString(HtmlTag.java:1483)
at com.raqsoft.report.tag.HtmlTag.doStartTag(HtmlTag.java:258)
at org.apache.jsp.reportJsp.preview_jsp._jspService(preview_jsp.java:240)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.raqsoft.report.webutil.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:44)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: api.ModelServiceDataSet
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.raqsoft.report.usermodel.Engine.calcDataSet(Engine.java:158)
… 35 more
用的自定义数据集?
编译后的 class 文件放到对应目录了吗?按照你的这个,应该是应用的 WEB-INF classes api ModelServiceDataSet.class, 放过去后要重启应用。
再者检查下自定义数据集程序是否有异常,这个可以先拿自带的 demo 跑下看看,在设计器安装后的 doc 的程序员参考里有对应例子代码,可以先试下
是不是有这个原因:demo 数据源连接错误 connection exception: connection failure: org.hsqldb.HsqlException: connection exception
哪里用到 demo 数据源了? 这个错是连接报表自带的那个 demo 数据源错误,看下哪里设置数据源连接了,然后找到数据源是否正确。 如果获取数据源没有指定数据源名,那么默认会找 demo