使用 PDI 的 Pentaho 报告输出组件出现错误

Pentaho Reporting Ouput component using PDI is giving an error

我正在尝试通过使用 pentaho 报告输出组件将参数传递给 prpt 来使用 PDI 生成 pdf 文件。

然而,当我尝试 运行 转换时,出现如下错误。
请帮我解决这个问题。

2018/09/25 13:48:01 - Pentaho Reporting Output.0 - ERROR (version 8.0.0.0-28, build 8.0.0.0-28 from 2017-11-05 07.27.50 by buildguy) : Unexpected error
2018/09/25 13:48:01 - Pentaho Reporting Output.0 - ERROR (version 8.0.0.0-28, build 8.0.0.0-28 from 2017-11-05 07.27.50 by buildguy) : org.pentaho.di.core.exception.KettleException: 
2018/09/25 13:48:01 - Pentaho Reporting Output.0 - There was an unexpected error processing report 'C:\Users\ramcharan.gottipati\Desktop\Task' to produce file 'C:\Users\ramcharan.gottipati\Task.CSV' with processor: CSV.
2018/09/25 13:48:01 - Pentaho Reporting Output.0 - Failed to open URL connection
2018/09/25 13:48:01 - Pentaho Reporting Output.0 - 
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.processReport(PentahoReportingOutput.java:317)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.processRow(PentahoReportingOutput.java:126)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at java.lang.Thread.run(Unknown Source)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 - Caused by: org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException: Failed to open URL connection
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.reporting.libraries.resourceloader.loader.URLResourceData.getResourceAsStream(URLResourceData.java:153)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.reporting.libraries.resourceloader.loader.AbstractResourceData.getResource(AbstractResourceData.java:83)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.reporting.libraries.docbundle.bundleloader.ZipResourceBundleLoader.loadBundle(ZipResourceBundleLoader.java:71)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend.loadResourceBundle(DefaultResourceManagerBackend.java:321)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.reporting.libraries.resourceloader.ResourceManager.loadResourceBundle(ResourceManager.java:248)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.reporting.libraries.resourceloader.ResourceManager.load(ResourceManager.java:264)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.reporting.libraries.resourceloader.ResourceManager.create(ResourceManager.java:362)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.reporting.libraries.resourceloader.ResourceManager.create(ResourceManager.java:334)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.reporting.libraries.resourceloader.ResourceManager.createDirectly(ResourceManager.java:200)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.loadMasterReport(PentahoReportingOutput.java:164)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.processReport(PentahoReportingOutput.java:176)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  ... 3 more
2018/09/25 13:48:01 - Pentaho Reporting Output.0 - Caused by: java.io.FileNotFoundException: C:\Users\ramcharan.gottipati\Desktop\Task (The system cannot find the file specified)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at java.io.FileInputStream.open0(Native Method)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at java.io.FileInputStream.open(Unknown Source)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at java.io.FileInputStream.<init>(Unknown Source)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at java.io.FileInputStream.<init>(Unknown Source)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  at org.pentaho.reporting.libraries.resourceloader.loader.URLResourceData.getResourceAsStream(URLResourceData.java:147)
2018/09/25 13:48:01 - Pentaho Reporting Output.0 -  ... 13 more
2018/09/25 13:48:01 - Pentaho Reporting Output.0 - Finished processing (I=0, O=0, R=1, W=0, U=0, E=1)
2018/09/25 13:48:01 - tr_Pentaho_reporting_output_8.0 - ERROR (version 8.0.0.0-28, build 8.0.0.0-28 from 2017-11-05 07.27.50 by buildguy) : Errors detected!
2018/09/25 13:48:01 - Spoon - The transformation has finished!!
2018/09/25 13:48:01 - tr_Pentaho_reporting_output_8.0 - ERROR (version 8.0.0.0-28, build 8.0.0.0-28 from 2017-11-05 07.27.50 by buildguy) : Errors detected!
2018/09/25 13:48:02 - tr_Pentaho_reporting_output_8.0 - ERROR (version 8.0.0.0-28, build 8.0.0.0-28 from 2017-11-05 07.27.50 by buildguy) : Errors detected!
2018/09/25 13:48:02 - tr_Pentaho_reporting_output_8.0 - Transformation detected one or more steps with errors.
2018/09/25 13:48:02 - tr_Pentaho_reporting_output_8.0 - Transformation is killing the other steps!
2018/09/25 13:48:56 - Spoon - Save as...
2018/09/25 13:49:08 - Spoon - Using legacy execution engine
2018/09/25 13:49:08 - Spoon - Transformation opened.
2018/09/25 13:49:08 - Spoon - Launching transformation [tr_PRO]...
2018/09/25 13:49:08 - Spoon - Started the transformation execution.
2018/09/25 13:49:09 - Spoon - The transformation has finished!!

我尝试使用 PDI V8.0 和 PR V8.0。如果我需要添加任何插件或进行任何修改,请告诉我

您已配置将 'C:\Users\ramcharan.gottipati\Desktop\Task' 作为文件打开,而我认为您应该提供一个文件名。

here 字段是 'Report definition file' 应该是这样的 "C:\Users\ramcharan.gottipati\Desktop\Task.prpt" 如果您必须指定字段 'Output file' 结果 pdf 的路径,例如: "C:\Users\ramcharan.gottipati\Desktop\Task.pdf"

执行过程中发生了什么? PDI 将为 pentaho 报表处理器使用输入数据流。报告 (prpt) 已经应该配置为使用与水壶输入流中的字段名称匹配的正确输入字段。名称和数据类型必须匹配,否则处理报告时可能会出错。 如果一切正常,使用这一步类似于运行 pentaho reporting engine using kettle input。任何可以 运行 pentaho 报告引擎甚至根本没有水壶。

希望对您有所帮助。