Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have install the tFileOutputPDF component from exchange.talend.com and it work great.
But when I try to open the pdf file at the end of my process, I have an error message like this one:
Starting job LaunchAPP at 10:22 09/09/2015.
[statistics] connecting to socket on port 3711
[statistics] connected
Exception in component tJava_1
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at lar_test.launchapp_0_1.LaunchAPP.tJava_1Process(LaunchAPP.java:1683)
at lar_test.launchapp_0_1.LaunchAPP.tMsgBox_1Process(LaunchAPP.java:1599)
at lar_test.launchapp_0_1.LaunchAPP.tRowGenerator_1Process(LaunchAPP.java:1447)
at lar_test.launchapp_0_1.LaunchAPP.runJobInTOS(LaunchAPP.java:1944)
at lar_test.launchapp_0_1.LaunchAPP.main(LaunchAPP.java:1796)
[statistics] disconnected
Job LaunchAPP ended at 10:22 09/09/2015. [exit code=1]
In the tJava
try {
Desktop.getDesktop().open(new File(((String)globalMap.get("tFileOutputPDF_1_FILE_NAME"))));
} catch (IOException e) {e.printStackTrace();}
advanced settings
import java.awt.Desktop;
import java.io.File;
If I try with just the XLS file it works without problem.
LAR_TEST.zip.zip
try {
Desktop.getDesktop().open(new File(context.OutputFile));
} catch (IOException e) {e.printStackTrace();}
try {
Desktop.getDesktop().open(new File(((String)globalMap.get(tFileOutputDelimited_1_FILE_NAME"))));
} catch (IOException e) {e.printStackTrace();}
try {
Desktop.getDesktop().open(new File(context.OutputFile));
} catch (IOException e) {e.printStackTrace();}
try {
Desktop.getDesktop().open(new File(((String)globalMap.get(tFileOutputDelimited_1_FILE_NAME"))));
} catch (IOException e) {e.printStackTrace();}