Jasper报告,即使在通过数据源测试后,在编译jrxml文件时也会收到错误消息/空报告

时间:2016-03-03 08:44:34

标签: jasper-reports jasperserver

我正在使用JasperStudio和Jasper server 6.2 windows版本。在本地环境中,我首先测试了数据源,postgreSQL JDBC连接,成功连接,我创建了一个域并链接了数据源。我拿了需要输入字符串的工作jrxml文件。我在视图中创建了报告> repository> create> jasperReport,在配置报告时,我已经提供了生产服务器中的jrxml文件,并将输入字段设置为必填项。到目前为止一切都很好但是当我点击报告时它要求输入值,当给出输入值并且单击应用时,它显示以下错误消息:

Error Message
Error filling report
Error Trace

com.jaspersoft.jasperserver.api.JSException: Error filling report Arguments: at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$FillResultListener.reportFillError(EngineServiceImpl.java:1294) at net.sf.jasperreports.engine.fill.BaseFillHandle.notifyError(BaseFillHandle.java:210) at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:134) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$SynchronousExecutor.execute(EngineServiceImpl.java:922) at net.sf.jasperreports.engine.fill.BaseFillHandle.startFill(BaseFillHandle.java:164) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$AsynchronousReportFiller.fillReport(EngineServiceImpl.java:878) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:1774) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runWithDataSource(EngineServiceImpl.java:1118) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runReport(EngineServiceImpl.java:1047) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportRunnable.run(EngineServiceImpl.java:944) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.DiagnosticLoggingContextCompatibleExecutorService$1.run(DiagnosticLoggingContextCompatibleExecutorService.java:61) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: net.sf.jasperreports.engine.JRException: java.lang.RuntimeException: exception initting subfilters at com.jaspersoft.ji.adhoc.strategy.StrategyAwareDomainQueryExecuter.createDatasource(StrategyAwareDomainQueryExecuter.java:165) at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:1129) at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:696) at net.sf.jasperreports.engine.fill.BaseReportFiller.setParameters(BaseReportFiller.java:437) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:526) at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:119) ... 11 more Caused by: java.lang.RuntimeException: exception initting subfilters at com.jaspersoft.ji.adhoc.strategy.DomainDataStrategy.getInitialSubFilterList(DomainDataStrategy.java:629) at com.jaspersoft.ji.adhoc.strategy.BaseDataStrategy.initSubFilterList(BaseDataStrategy.java:424) at com.jaspersoft.ji.adhoc.strategy.DomainDataStrategy.getBaseQueryDataSet(DomainDataStrategy.java:145) at com.jaspersoft.ji.adhoc.strategy.DomainQueryDataStrategy.getBaseQueryDataSet(DomainQueryDataStrategy.java:38) at com.jaspersoft.ji.adhoc.strategy.CommonDomainDataStrategy.createQuery(CommonDomainDataStrategy.java:736) at com.jaspersoft.ji.adhoc.strategy.CommonDomainDataStrategy.getQuery(CommonDomainDataStrategy.java:681) at com.jaspersoft.ji.adhoc.strategy.CommonDomainDataStrategy.getWorkingDataSet(CommonDomainDataStrategy.java:1232) at com.jaspersoft.ji.adhoc.strategy.CommonDomainDataStrategy.getWorkingDataSet(CommonDomainDataStrategy.java:1220) at com.jaspersoft.ji.adhoc.strategy.StrategyAwareDomainQueryExecuter.createDatasource(StrategyAwareDomainQueryExecuter.java:156) ... 16 more Caused by: java.lang.NullPointerException at com.jaspersoft.commons.dataset.expr.DataSetExpressionParser.varRef(DataSetExpressionParser.java:1703) at com.jaspersoft.commons.dataset.expr.DataSetExpressionParser.term(DataSetExpressionParser.java:1349) at com.jaspersoft.commons.dataset.expr.DataSetExpressionParser.multDivExpr(DataSetExpressionParser.java:1003) at com.jaspersoft.commons.dataset.expr.DataSetExpressionParser.addSubExpr(DataSetExpressionParser.java:888) at com.jaspersoft.commons.dataset.expr.DataSetExpressionParser.comparisonExpr(DataSetExpressionParser.java:601) at com.jaspersoft.commons.dataset.expr.DataSetExpressionParser.notExpr(DataSetExpressionParser.java:499) at com.jaspersoft.commons.dataset.expr.DataSetExpressionParser.andExpr(DataSetExpressionParser.java:423) at com.jaspersoft.commons.dataset.expr.DataSetExpressionParser.orExpr(DataSetExpressionParser.java:353) at com.jaspersoft.commons.dataset.expr.DataSetExpressionParser.booleanExpr(DataSetExpressionParser.java:298) at 

当我尝试在JasperStudio中编译相同的jrxml时,它会给我一个带有设计的空报表,但是当选择空数据适配器时它没有数据,并且在选择数据源时它会提供完整的空文档。

0 个答案:

没有答案