pentaho - PDI pentaho 报告输出不使用参数
问题描述
我在转换中使用 pentaho Data integrator 8.1 和 pentaho 报告输出组件。该报告包含一个简单的整数参数 ${batchno},它可以与报告设计器一起正常工作。但是在运行 PDI 转换时,它无法替换报告中的参数值。这是我收到的详细错误消息。我的数据源是 Mysql - JDBC 连接。
2018/09/18 17:49:21 - 生成 Reports.0 - 错误(版本 8.1.0.0-365,buildguy 于 2018-04-30 09.42.24 构建 8.1.0.0-365):意外错误
2018/09/18 17:49:21 - 生成 Reports.0 - 错误(版本 8.1.0.0-365,buildguy 于 2018-04-30 09.42.24 构建 8.1.0.0-365):org.pentaho.di。 core.exception.KettleException:
2018/09/18 17:49:21 - 生成 Reports.0 - 出现意外错误处理报告“D:.....\testreport.prpt”以生成文件“D:...\testreport.pdf”带处理器:PDF。
2018/09/18 17:49:21 - 生成 Reports.0 - 查询失败:从 pdi_channel_log 中选择 id_batch、object_name
其中 id_batch = ${batchno}
2018/09/18 17:49:21 - 生成 Reports.0 -
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.processReport(PentahoReportingOutput.java:418)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.processRow(PentahoReportingOutput.java:143)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 java.lang.Thread.run(Thread.java:748)
2018/09/18 17:49:21 - 生成 Reports.0 - 原因:org.pentaho.reporting.engine.classic.core.ReportDataFactoryException:查询失败:从 pdi_channel_log 中选择 id_batch、object_name
其中 id_batch = ${batchno}
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.SimpleSQLReportDataFactory.queryData(SimpleSQLReportDataFactory.java:184)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.SQLReportDataFactory.queryData(SQLReportDataFactory.java:142)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryStaticInternal(CompoundDataFactory.java:172)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryStatic(CompoundDataFactory.java:154)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.cache.CachingDataFactory.queryInternal(CachingDataFactory.java:408)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.cache.CachingDataFactory.queryStatic(CachingDataFactory.java:151)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryStaticInternal(CompoundDataFactory.java:168)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryStatic(CompoundDataFactory.java:154)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryData(CompoundDataFactory.java:67)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.states.datarow.DefaultFlowController.performQueryData(DefaultFlowController.java:256)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.states.datarow.DefaultFlowController.performQuery(DefaultFlowController.java:192)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.states.process.ProcessState.initializeForMasterReport(ProcessState.java:318)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:442)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.processReport(AbstractReportProcessor.java:1433)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.di.trans.steps.pentahoreporting.ReportExportTask.execute(ReportExportTask.java:89)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.di.trans.steps.pentahoreporting.ReportExportTask.run(ReportExportTask.java:76)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.processReport(PentahoReportingOutput.java:399)
2018/09/18 17:49:21 - 生成 Reports.0 - ... 还有 3 个
2018/09/18 17:49:21 - 生成 Reports.0 - 原因:java.sql.SQLException:参数元数据不适用于给定语句
2018/09/18 17:49:21 - 生成 Reports.0 - 在 com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1078)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 com.mysql.jdbc.MysqlParameterMetadata.checkAvailable(MysqlParameterMetadata.java:70)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 com.mysql.jdbc.MysqlParameterMetadata.getParameterClassName(MysqlParameterMetadata.java:143)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.SimpleSQLReportDataFactory.parametrize(SimpleSQLReportDataFactory.java:356)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.SimpleSQLReportDataFactory.parametrizeAndQuery(SimpleSQLReportDataFactory.java:277)
2018/09/18 17:49:21 - 生成 Reports.0 - 在 org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.SimpleSQLReportDataFactory.queryData(SimpleSQLReportDataFactory.java:179)
2018/09/18 17:49:21 - 生成 Reports.0 - ... 19 更多
2018/09/18 17:49:21 - 生成 Reports.0 - 子索引 = 1,记录对象:org.pentaho.di.core.logging.LoggingObject@b66df16 父=1cfddaa4-866d-4b08-9efb-c2a8842102e1
2018/09/18 17:49:21 - 生成 Reports.0 - 完成处理 (I=0, O=0, R=1, W=0, U=0, E=1)
解决方案
推荐阅读
- python - 如何重命名字典键以遵循顺序?
- rundeck - Rundeck API:通过 API 调用编辑工作描述?
- php - Laravel 8 不更新数据库中的信息
- oauth - 每个设备是否应该让 Keycloak 中的用户通过资源所有者密码凭据进行身份验证
- reactjs - 服务工作者:添加一个在本地主机上而不是在服务器上工作的离线页面
- c# - 我的 LINQ 查询似乎可以识别符合条件的条目,但这些条目不会返回到变量中?
- sql-server - SQL Server 意外的 ROUND 结果
- sql-server - 将三个带有 where 子句的 select 查询合并到一个数据表中
- linux - sudo:aws:找不到命令
- leaflet - PIXI.js 在创建许多字体纹理时内存不足