报错信息1:
产生数据工厂: com.runqian.report4.dataset.SQLDataSetFactory 失败
错误来源:: 数据集ds1中,SQL语句SELECT DB2 SQL error: SQLCODE: -206, SQLSTATE: 42703, SQLERRMC: ENTERPRISE.TEMP1执行错误,SQL参数异常或者SQL语句语法错误
at com.runqian.report4.model.CalcReport.calcDataSet(Unknown Source:326)
at com.runqian.report4.model.CalcReport.calcDataSet(Unknown Source:298)
at com.runqian.report4.usermodel.Engine.calc(Unknown Source:117)
at com.runqian.report4.cache.lIlIIIIlIIIIlIlI.getReport(Unknown Source:137)
at com.runqian.report4.cache.ReportCache.getReport(Unknown Source:173)
at com.runqian.report4.tag.HtmlTag.doStartTag(Unknown Source:355)
at org.apache.jsp.reportJsp.showEnterpriseReport_jsp._jspService(showEnterpriseReport_jsp.java:197)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:600)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1703)
at java.lang.Thread.run(Thread.java:595)
Caused by: : 数据集ds1中,SQL语句.DB2 SQL error: SQLCODE: -206, SQLSTATE: 42703, SQLERRMC: ENTERPRISE.TEMP1执行错误,SQL参数异常或者SQL语句语法错误
at com.runqian.report4.dataset.SQLDataSetFactory.createDataSet(Unknown Source:180)
at com.runqian.report4.model.CalcReport.calcDataSet(Unknown Source:314)
错误原因:数据集中缺少数据库字段
如果在数据库表中新增了某一个字段,而在设计器的数据集中没有更新字段。就会出现如下的错误。
解决:在设计器的数据集中,把数据集字段全部移走,然后把左边的再全部移进来。之后会发现设计器右下角的ds1又能点了就行了。
之后在使用这个新增数据的单元格填写表达式或者设置更新属性即可。
报错信息2:
产生数据工厂: com.runqian.report4.dataset.SQLDataSetFactory 失败
错误来源:: 数据集中,数据集 ds1 中未设定数据源名称,且无默认数据源,请检查数据源设定。
错误原因:
1)没有连接数据库
没有在设计器连接数据源
数据库系统没有激活
2)连接数据库过程错误
数据源配置错误
无报表配置文件或配置出错