From Thursday, July, 9, 3:00 PM Pacific,
our Community site will be in
read-only mode
through Sunday, July 12th.
Thank you for your patience.

Exception in component tJasperOutput Caused by: java.io.FileNotFoundEx

Highlighted
One Star

Exception in component tJasperOutput Caused by: java.io.FileNotFoundEx

Hi!
I have a problem on TOS 6.2.1 with tJasperOutput component. 
With JasperETL 5.6 it works fine.

Here is a error message:
Exception in component tJasperOutput_1
net.sf.jasperreports.engine.JRException: Error loading byte data: D:\DISTR\TalendETL_new\TOS_DI-20160704_1411-V6.2.1\BlockTime_1471576720520_286800.class.
at net.sf.jasperreports.engine.util.JRLoader.loadBytes(JRLoader.java:378)
at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileUnits(JRAbstractClassCompiler.java:80)
at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:212)
at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:357)
at net.sf.jasperreports.engine.JasperCompileManager.compileToFile(JasperCompileManager.java:273)
at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:566)
at project.test_0_1.test.tJasperOutputExec_1Process(test.java:475)
at project.test_0_1.test.runJobInTOS(test.java:3516)
at project.test_0_1.test.main(test.java:3362)
Caused by: java.io.FileNotFoundException: D:\DISTR\TalendETL_new\TOS_DI-20160704_1411-V6.2.1\BlockTime_1471576720520_286800.class
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at net.sf.jasperreports.engine.util.JRLoader.loadBytes(JRLoader.java:364)
... 8 more

Same error occurs in tJasperOutputExec.
There is a config of tJasperOutputExec (same for tJasperOutput (without .csv):

Kind regards, Roman
Highlighted
Moderator

Re: Exception in component tJasperOutput Caused by: java.io.FileNotFoundEx

Hi,
Can you click "lanch" button to run iReport successfully in iReport field?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
One Star

Re: Exception in component tJasperOutput Caused by: java.io.FileNotFoundEx

If i click launch button to run iReport with this cmd ("cmd /c \"start /D \"__IREPORT_PATH__\" iReport\"") it's failed, cause it's cannot find iReport.
If i set the path to ireport it opens, but job still will not working..

P.S. iReport version is 5.5.0. Do i need to update this?
Kind regards, Roman

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog