Тема: Ошибка вывода файла отчета Pentaho "Неожиданная ошибка" - PullRequest
1 голос
/ 01 мая 2019

У меня есть отчет с преобразованием, импортированным в отчет, из которого установлены мои подключения к данным для нескольких плоских файлов.Я могу выполнить и запустить отчет из PRD без проблем.Тем не менее, при попытке инициировать отчет из PDI vi на шаге вывода файла отчетов Pentaho я получаю следующую ошибку. Когда я пытался запустить отчет из 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.
...