Hi Team,
I am getting error while I am writing csv file to FTP server but using same FTP server i am able to send the files manually. I think i am facing issue with ETL universal data writer.
Please help to handle this.
Please find the below error message:
16:11:58,014 INFO [WatchDog_11] ---------------------------------** End of Log **--------------------------------
16:11:58,234 ERROR [WatchDog_11] Component [Write Sucess Log:WRITE_SUCESS_LOG] finished with status ERROR. (In0: 0 recs)
Component pre-execute initialization failed.
connection is closed by foreign host
16:11:58,236 ERROR [WatchDog_11] Error details:
org.jetel.exception.JetelRuntimeException: Component [Write Sucess Log:WRITE_SUCESS_LOG] finished with status ERROR. (In0: 0 recs)
at org.jetel.graph.Node.createNodeException(Node.java:631)
at org.jetel.graph.Node.run(Node.java:599)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: Element [WRITE_SUCESS_LOG:Write Sucess Log]-Component pre-execute initialization failed.
at org.jetel.graph.Node.run(Node.java:554)
… 3 more
Caused by: [attribute = fileURL]-java.io.IOException: com.jcraft.jsch.JSchException: connection is closed by foreign host
at org.jetel.util.MultiFileWriter.prepareTargets(MultiFileWriter.java:220)
at org.jetel.util.MultiFileWriter.init(MultiFileWriter.java:167)
at org.jetel.component.DataWriter.prepareWriter(DataWriter.java:298)
at org.jetel.component.DataWriter.preExecute(DataWriter.java:292)
at org.jetel.graph.Node.run(Node.java:552)
… 3 more
Caused by: java.io.IOException: com.jcraft.jsch.JSchException: connection is closed by foreign host
at org.jetel.component.fileoperation.pool.PooledSFTPConnection.getSession(PooledSFTPConnection.java:316)
at org.jetel.component.fileoperation.pool.PooledSFTPConnection.getSession(PooledSFTPConnection.java:252)
at org.jetel.component.fileoperation.pool.PooledSFTPConnection.connect(PooledSFTPConnection.java:271)
at org.jetel.component.fileoperation.pool.SFTPConnectionFactory.makeObject(SFTPConnectionFactory.java:30)
at org.jetel.component.fileoperation.pool.SFTPConnectionFactory.makeObject(SFTPConnectionFactory.java:21)
at org.jetel.component.fileoperation.pool.DefaultConnectionFactory.makeObject(DefaultConnectionFactory.java:39)
at org.jetel.component.fileoperation.pool.DefaultConnectionFactory.makeObject(DefaultConnectionFactory.java:26)
at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220)
at org.jetel.component.fileoperation.pool.ConnectionPool.borrowObject(ConnectionPool.java:91)
at org.jetel.util.protocols.AbstractURLConnection.connect(AbstractURLConnection.java:77)
at org.jetel.util.protocols.sftp.SFTPConnection.connect(SFTPConnection.java:97)
at org.jetel.util.protocols.sftp.SFTPConnection.getOutputStream(SFTPConnection.java:132)
at org.jetel.util.file.FileUtils.getOutputStream(FileUtils.java:1537)
at org.jetel.util.TargetFile.setOutput(TargetFile.java:642)
at org.jetel.util.TargetFile.setNextOutput(TargetFile.java:370)
at org.jetel.util.TargetFile.initOutput(TargetFile.java:554)
at org.jetel.util.TargetFile.init(TargetFile.java:169)
at org.jetel.util.MultiFileWriter.prepareSingleTarget(MultiFileWriter.java:236)
at org.jetel.util.MultiFileWriter.prepareTargets(MultiFileWriter.java:217)
… 7 more
Caused by: com.jcraft.jsch.JSchException: connection is closed by foreign host
at com.jcraft.jsch.Session.connect(Session.java:269)
at com.jcraft.jsch.Session.connect(Session.java:183)
at org.jetel.component.fileoperation.pool.PooledSFTPConnection.getSession(PooledSFTPConnection.java:301)
… 25 more
16:11:58,351 INFO [WatchDog_11] Execution of phase [1] finished with error - elapsed time(sec): 5
16:11:58,351 ERROR [WatchDog_11] !!! Phase finished with error - stopping graph run !!!
16:11:58,351 INFO [WatchDog_11] Final dictionary content:
16:11:58,351 INFO [WatchDog_11] DictEntry:ARLineFileName:string:{value=Invoice_Lines201610131810.csv}
16:11:58,351 INFO [WatchDog_11] DictEntry:ARDistFileName:string:{value=Invoice_Distribution201610131810.csv}
16:11:58,352 INFO [WatchDog_11] -----------------------** Summary of Phases execution **---------------------
16:11:58,352 INFO [WatchDog_11] Phase# Finished Status RunTime(sec) MemoryAllocation(KB)
16:11:58,352 INFO [WatchDog_11] 0 FINISHED_OK 2 135259
16:11:58,352 INFO [WatchDog_11] 1 ERROR 2 140910
16:11:58,353 INFO [WatchDog_11] ------------------------------** End of Summary **---------------------------
16:11:58,353 INFO [WatchDog_11] WatchDog thread finished - total execution time: 5 (sec)
16:11:58,353 INFO [JobFinalizer_11] Finalization
16:11:58,355 INFO [JobFinalizer_11] RunTime: 5 secs
16:11:58,355 ERROR [JobFinalizer_11]
------------------------------------ Error details --------------------------------------
Component [Write Sucess Log:WRITE_SUCESS_LOG] finished with status ERROR. (In0: 0 recs)
Component pre-execute initialization failed.
connection is closed by foreign host
-----------------------------------------------------------------------------------------
16:11:58,356 INFO [JobFinalizer_11] Finished Status: ERROR
Thanks,
Jagan.