He diseñado un job en Spoon que envía informes diseñados con Report Designer por email a los destinatarios como archivo adjunto, para lo que uso el componente Pentaho Reporting Output (output processor PDF) y el componente SendMail. El job funciona bien en la instalación en Windows 7.


Tengo que hacer la misma instalación en un servidor Unix basado en Debian y he instalado la misma versión de Pentaho Data Integration 6.0.1 apuntando al repositorio donde está el job con el .kettle/repositories.xml. Al lanzar el job con kitchen.sh...

./kitchen.sh -rep:"Etl_DataCRM" -dir:"Principal" -job:"JobEnvioCorreo" -user:admin -pass:admin

me da el siguiente error:


ERROR [AbstractReportProcessor] 1363067431: Report processing failed.
org.pentaho.reporting.engine.classic.core.InvalidReportStateException: Failed to fire report event for sub-layout-process
at org.pentaho.reporting.engine.classic.core.states.InitialLayoutProcess.fireReportEvent(InitialLayoutProcess.java:181)
at org.pentaho.reporting.engine.classic.core.states.SubLayoutProcess.fireReportEvent(SubLayoutProcess.java:173)
at org.pentaho.reporting.engine.classic.core.states.process.ProcessState.firePageStartedEvent(ProcessState.java:1083)
at org.pentaho.reporting.engine.classic.core.layout.output.DefaultOutputFunction.reportInitialized(DefaultOutputFunction.java:130)
at org.pentaho.reporting.engine.classic.core.states.datarow.ExpressionEventHelper.fireReportInitializedEvent(ExpressionEventHelper.java:501)
at org.pentaho.reporting.engine.classic.core.states.datarow.ExpressionEventHelper.fireReportEvent(ExpressionEventHelper.java:52)
at org.pentaho.reporting.engine.classic.core.states.InitialLayoutProcess.fireReportEvent(InitialLayoutProcess.java:176)
at org.pentaho.reporting.engine.classic.core.states.SubLayoutProcess.fireReportEvent(SubLayoutProcess.java:173)
at org.pentaho.reporting.engine.classic.core.states.process.ProcessState.fireReportEvent(ProcessState.java:1105)
at org.pentaho.reporting.engine.classic.core.states.process.BeginReportHandler.advance(BeginReportHandler.java:50)
at org.pentaho.reporting.engine.classic.core.states.process.ProcessState.advance(ProcessState.java:933)
at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.processPaginationLevel(AbstractReportProcessor.java:651)
at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:478)
at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.processReport(AbstractReportProcessor.java:1424)
at org.pentaho.reporting.engine.classic.core.modules.gui.pdf.PdfExportTask.run(PdfExportTask.java:115)
at org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.processReport(PentahoReportingOutput.java:273)
at org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.processRow(PentahoReportingOutput.java:118)
at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1182)
at java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1172)
at org.pentaho.reporting.libraries.base.util.WaitingImageObserver.waitImageLoaded(WaitingImageObserver.java:154)
at org.pentaho.reporting.engine.classic.core.DefaultImageReference.<init>(DefaultImageReference.java:121)
at org.pentaho.reporting.engine.classic.core.filter.types.ContentType.filter(ContentType.java:181)
at org.pentaho.reporting.engine.classic.core.filter.types.ContentType.getValue(ContentType.java:84)
at org.pentaho.reporting.engine.classic.core.layout.build.DefaultLayoutBuilderStrategy.computeValue(DefaultLayoutBuilderStrategy.java:221)
at org.pentaho.reporting.engine.classic.core.layout.build.DefaultLayoutBuilderStrategy.processContent(DefaultLayoutBuilderStrategy.java:170)
at org.pentaho.reporting.engine.classic.core.layout.build.DefaultLayoutBuilderStrategy.addBandInternal(DefaultLayoutBuilderStrategy.java:115)
at org.pentaho.reporting.engine.classic.core.layout.build.DefaultLayoutBuilderStrategy.add(DefaultLayoutBuilderStrategy.java:78)
at org.pentaho.reporting.engine.classic.core.layout.build.ReportRenderModelBuilder.add(ReportRenderModelBuilder.java:204)
at org.pentaho.reporting.engine.classic.core.layout.AbstractRenderer.add(AbstractRenderer.java:342)
at org.pentaho.reporting.engine.classic.core.layout.output.DefaultOutputFunction.print(DefaultOutputFunction.java:1150)
at org.pentaho.reporting.engine.classic.core.layout.output.DefaultOutputFunction.updatePageHeader(DefaultOutputFunction.java:613)
at org.pentaho.reporting.engine.classic.core.layout.output.DefaultOutputFunction.updateHeaderArea(DefaultOutputFunction.java:558)
at org.pentaho.reporting.engine.classic.core.layout.output.DefaultOutputFunction.pageStarted(DefaultOutputFunction.java:515)
at org.pentaho.reporting.engine.classic.core.states.datarow.ExpressionEventHelper.firePageStartedEvent(ExpressionEventHelper.java:545)
at org.pentaho.reporting.engine.classic.core.states.datarow.ExpressionEventHelper.fireReportEvent(ExpressionEventHelper.java:38)
at org.pentaho.reporting.engine.classic.core.states.InitialLayoutProcess.fireReportEvent(InitialLayoutProcess.java:176)


¿Alguna idea de qué me falta? Los reportes ahora los envía vacíos... (no sé si es problema de librerías...tendré que instalar el Report Designer en el nuevo servidor también?)


Gracias por vuestra ayuda