线程:Pentaho报告文件输出问题“意外的错误”

时间:2019-05-01 09:37:40

标签: pentaho pentaho-spoon pentaho-data-integration pdi pentaho-report-designer

我有一个带有转换的报告,该转换导入到该报告中,通过该转换我与多个平面文件的数据连接得以建立。我能够从PRD执行和运行报告而不会出现问题。但是,当尝试从PDI vi Pentaho Reporting文件输出步骤启动报告时,当我尝试从pdi-7.0运行报告时出现以下错误。 有时它工作得很完美,但有时我主要收到以下错误 无法处理查询。

2019/05/01 14:44:24 - Spoon - Starting job...
2019/05/01 14:44:24 - CUSTOMER_REPORT_MAIN - Start of job execution
2019/05/01 14:44:24 - CUSTOMER_REPORT_MAIN - Starting entry [get_requested_report_data]
2019/05/01 14:44:24 - get_requested_report_data - Loading transformation from XML file [file:///E:/value_iq _pentaho/Customer Report/get_requested_report_data.ktr]
2019/05/01 14:44:24 - get_requested_report_data - Using run configuration [Pentaho local]
2019/05/01 14:44:24 - get_requested_report_data - Using legacy execution engine
2019/05/01 14:44:24 - get_requested_report_data - Dispatching started for transformation [get_requested_report_data]
2019/05/01 14:44:24 - Get report_id.0 - Finished reading query, closing connection.
2019/05/01 14:44:24 - Get report_id.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
2019/05/01 14:44:24 - Set Variables.0 - Setting environment variables...
2019/05/01 14:44:24 - Set Variables.0 - Set variable SYS_TIME to value [2019-05-01 14:44:24]
2019/05/01 14:44:24 - Get System Info.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
2019/05/01 14:44:24 - Select values.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
2019/05/01 14:44:24 - insert into reports table.0 - Finished reading query, closing connection.
2019/05/01 14:44:24 - insert into reports table.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
2019/05/01 14:44:24 - Set Variables.0 - Finished after 1 rows.
2019/05/01 14:44:24 - Set Variables.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
2019/05/01 14:44:24 - CUSTOMER_REPORT_MAIN - Starting entry [set_reports_data]
2019/05/01 14:44:24 - set_reports_data - Loading transformation from XML file [file:///E:/value_iq _pentaho/Customer Report/set_reports_data.ktr]
2019/05/01 14:44:24 - set_reports_data - Using run configuration [Pentaho local]
2019/05/01 14:44:24 - set_reports_data - Using legacy execution engine
2019/05/01 14:44:24 - set_reports_data - Dispatching started for transformation [set_reports_data]
2019/05/01 14:44:24 - Get reports_id.0 - Finished reading query, closing connection.
2019/05/01 14:44:24 - Get reports_id.0 - Finished processing (I=1, O=0, R=0, W=1, U=0, E=0)
2019/05/01 14:44:24 - Write to log.0 - 
2019/05/01 14:44:24 - Write to log.0 - ------------> Linenr 1------------------------------
2019/05/01 14:44:24 - Write to log.0 - REPORTS_REPORT_ID


2019/05/01 14:44:24 - Write to log.0 - 
2019/05/01 14:44:24 - Write to log.0 - reports_report_id = 106
2019/05/01 14:44:24 - Write to log.0 - 
2019/05/01 14:44:24 - Write to log.0 - ====================
2019/05/01 14:44:24 - Set Variables.0 - Setting environment variables...
2019/05/01 14:44:24 - Set Variables.0 - Set variable REPORTS_REPORT_ID to value [106]
2019/05/01 14:44:24 - Set Variables.0 - Set variable REPORT_NAME to value [Kundenstrukturreport]
2019/05/01 14:44:24 - Write to log.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
2019/05/01 14:44:24 - Set Variables.0 - Finished after 1 rows.
2019/05/01 14:44:24 - Set Variables.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
2019/05/01 14:44:24 - CUSTOMER_REPORT_MAIN - Starting entry [Create a folder]
2019/05/01 14:44:24 - CUSTOMER_REPORT_MAIN - Starting entry [Delete files]
2019/05/01 14:44:24 - CUSTOMER_REPORT_MAIN - Starting entry [Evaluate rows number in a table]
2019/05/01 14:44:24 - CUSTOMER_REPORT_MAIN - Starting entry [Simple evaluation]
2019/05/01 14:44:24 - CUSTOMER_REPORT_MAIN - Starting entry [run_report]
2019/05/01 14:44:24 - run_report - Loading transformation from XML file [file:///E:/value_iq _pentaho/Customer Report/run_reports.ktr]
2019/05/01 14:44:24 - run_report - Using run configuration [Pentaho local]
2019/05/01 14:44:24 - run_report - Using legacy execution engine
2019/05/01 14:44:24 - run_reports - Dispatching started for transformation [run_reports]
2019/05/01 14:44:24 - Get Variables.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
2019/05/01 14:44:24 - set reports data.0 - Optimization level set to 9.
2019/05/01 14:44:24 - Write to log.0 - 
2019/05/01 14:44:24 - Write to log.0 - ------------> Linenr 1------------------------------
2019/05/01 14:44:24 - Write to log.0 - Report_Template = /E:/value_iq _pentaho/Customer Report/CUSTOMER_REPORT.prpt
2019/05/01 14:44:24 - Write to log.0 - HTML_Output = E:/value_iq _pentaho/Customer Report/CustomerReport_output/106_CUSTOMER_REPORT.html
2019/05/01 14:44:24 - Write to log.0 - PDF_Output = E:/value_iq _pentaho/Customer Report/CustomerReport_output/106_CUSTOMER_REPORT.pdf
2019/05/01 14:44:24 - Write to log.0 - 
2019/05/01 14:44:24 - Write to log.0 - ====================
2019/05/01 14:44:24 - set reports data.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
2019/05/01 14:44:24 - Replace in string.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
2019/05/01 14:44:24 - Write to log.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
2019/05/01 14:45:56 - HTML REPORT.0 - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : Unexpected error
2019/05/01 14:45:56 - HTML REPORT.0 - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : org.pentaho.di.core.exception.KettleException: 
2019/05/01 14:45:56 - HTML REPORT.0 - There was an unexpected error processing report '/E:/value_iq _pentaho/Customer Report/CUSTOMER_REPORT.prpt' to produce file 'E:/value_iq _pentaho/Customer Report/CustomerReport_output/106_CUSTOMER_REPORT.html' with processor: Paged HTML.
2019/05/01 14:45:56 - HTML REPORT.0 - Failed at query: # B2 sheet



select * from customer where t_id=${t_id} and t_domain=${t_domain};


2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.SimpleSQLReportDataFactory.queryData(SimpleSQLReportDataFactory.java:183)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.SQLReportDataFactory.queryData(SQLReportDataFactory.java:142)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryStaticInternal(CompoundDataFactory.java:172)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryStatic(CompoundDataFactory.java:154)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.cache.CachingDataFactory.queryInternal(CachingDataFactory.java:408)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.cache.CachingDataFactory.queryStatic(CachingDataFactory.java:151)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryStaticInternal(CompoundDataFactory.java:168)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryStatic(CompoundDataFactory.java:154)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryStaticInternal(CompoundDataFactory.java:168)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryStatic(CompoundDataFactory.java:154)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryStaticInternal(CompoundDataFactory.java:168)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryStatic(CompoundDataFactory.java:154)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryData(CompoundDataFactory.java:67)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.states.datarow.DefaultFlowController.performQueryData(DefaultFlowController.java:251)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.states.datarow.DefaultFlowController.performSubReportQuery(DefaultFlowController.java:311)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.states.process.ProcessState.initializeForSubreport(ProcessState.java:560)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.states.process.EndSubReportHandler.commit(EndSubReportHandler.java:52)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.states.process.ProcessState.commit(ProcessState.java:946)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.states.process.InlineSubreportProcessor.processInline(InlineSubreportProcessor.java:78)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.states.process.ReportHeaderHandler.advance(ReportHeaderHandler.java:44)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.states.process.ProcessState.advance(ProcessState.java:942)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.states.process.InlineSubreportProcessor.processInline(InlineSubreportProcessor.java:74)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.states.process.BeginGroupHandler.advance(BeginGroupHandler.java:52)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.states.process.ProcessState.advance(ProcessState.java:942)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.processPaginationLevel(AbstractReportProcessor.java:673)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:502)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.processReport(AbstractReportProcessor.java:1433)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.modules.output.table.html.HtmlReportUtil.createDirectoryHTML(HtmlReportUtil.java:163)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.processReport(PentahoReportingOutput.java:273)
2019/05/01 14:45:56 - HTML REPORT.0 -   ... 3 more
2019/05/01 14:45:56 - HTML REPORT.0 - Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The driver was unable to create a connection due to an inability to establish the client portion of a socket.

This is usually caused by a limit on the number of sockets imposed by the operating system. This limit is usually configurable. 

For Unix-based platforms, see the manual page for the 'ulimit' command. Kernel or system reconfiguration may also be required.

For Windows-based platforms, see Microsoft Knowledge Base Article 196271 (Q196271).
2019/05/01 14:45:56 - HTML REPORT.0 -   at sun.reflect.GeneratedConstructorAccessor437.newInstance(Unknown Source)
2019/05/01 14:45:56 - HTML REPORT.0 -   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
2019/05/01 14:45:56 - HTML REPORT.0 -   at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
2019/05/01 14:45:56 - HTML REPORT.0 -   at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
2019/05/01 14:45:56 - HTML REPORT.0 -   at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2104)
2019/05/01 14:45:56 - HTML REPORT.0 -   at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:729)
2019/05/01 14:45:56 - HTML REPORT.0 -   at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
2019/05/01 14:45:56 - HTML REPORT.0 -   at sun.reflect.GeneratedConstructorAccessor109.newInstance(Unknown Source)
2019/05/01 14:45:56 - HTML REPORT.0 -   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
2019/05/01 14:45:56 - HTML REPORT.0 -   at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
2019/05/01 14:45:56 - HTML REPORT.0 -   at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
2019/05/01 14:45:56 - HTML REPORT.0 -   at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:283)
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.sql.DriverManager.getConnection(DriverManager.java:664)
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.sql.DriverManager.getConnection(DriverManager.java:247)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.osjava.sj.loader.SJDataSource.getConnection(SJDataSource.java:101)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.osjava.sj.loader.SJDataSource.getConnection(SJDataSource.java:81)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.JndiConnectionProvider.createConnection(JndiConnectionProvider.java:112)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.SimpleSQLReportDataFactory.getConnection(SimpleSQLReportDataFactory.java:124)
2019/05/01 14:45:56 - HTML REPORT.0 -   at org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.SimpleSQLReportDataFactory.queryData(SimpleSQLReportDataFactory.java:168)
2019/05/01 14:45:56 - HTML REPORT.0 -   ... 31 more
2019/05/01 14:45:56 - HTML REPORT.0 - Caused by: java.net.BindException: Address already in use: connect
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.net.DualStackPlainSocketImpl.connect0(Native Method)
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.net.Socket.connect(Socket.java:589)
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.net.Socket.connect(Socket.java:538)
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.net.Socket.<init>(Socket.java:434)
2019/05/01 14:45:56 - HTML REPORT.0 -   at java.net.Socket.<init>(Socket.java:244)
2019/05/01 14:45:56 - HTML REPORT.0 -   at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
2019/05/01 14:45:56 - HTML REPORT.0 -   at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)
2019/05/01 14:45:56 - HTML REPORT.0 -   at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2027)
2019/05/01 14:45:56 - HTML REPORT.0 -   ... 46 more
2019/05/01 14:45:56 - HTML REPORT.0 - Finished processing (I=0, O=0, R=1, W=0, U=0, E=1)
2019/05/01 14:45:56 - run_reports - Transformation detected one or more steps with errors.
2019/05/01 14:45:56 - run_reports - Transformation is killing the other steps!
2019/05/01 14:45:56 - run_reports - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : Errors detected!
2019/05/01 14:45:56 - CUSTOMER_REPORT_MAIN - Finished job entry [run_report] (result=[false])
2019/05/01 14:45:56 - CUSTOMER_REPORT_MAIN - Finished job entry [Simple evaluation] (result=[false])
2019/05/01 14:45:56 - CUSTOMER_REPORT_MAIN - Finished job entry [Evaluate rows number in a table] (result=[false])
2019/05/01 14:45:56 - CUSTOMER_REPORT_MAIN - Finished job entry [Delete files] (result=[false])
2019/05/01 14:45:56 - CUSTOMER_REPORT_MAIN - Finished job entry [Create a folder] (result=[false])
2019/05/01 14:45:56 - CUSTOMER_REPORT_MAIN - Finished job entry [set_reports_data] (result=[false])
2019/05/01 14:45:56 - CUSTOMER_REPORT_MAIN - Finished job entry [get_requested_report_data] (result=[false])
2019/05/01 14:45:56 - CUSTOMER_REPORT_MAIN - Job execution finished
2019/05/01 14:45:56 - Spoon - Job has ended.

0 个答案:

没有答案