Unexpected end of ZLIB input stream in tFileUnarchive

Hi,
I am getting following error in my job.
Exception in component tFileUnarchive_1
java.io.EOFException: Unexpected end of ZLIB input stream
    at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240)
    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
    at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:116)
This job downloads file from FTP which are compressed in .tar.gz format. Extracts data, loads data. It is done for multiple files at once.
Issue is, whole process runs properly from start to end. Generates output as required. But after job ends, it gives following error.
Can someone help me??
6 REPLIES
Four Stars

Re: Unexpected end of ZLIB input stream in tFileUnarchive

This is unarchiving exception... For which file you are facing this issue.. it may be that respective file is currupt... Try removing that file and execute the job for rest of the files... Also try unarchiving using some other tool.. Some times the tool may not work properly for unzipping process.
Vaibhav

Re: Unexpected end of ZLIB input stream in tFileUnarchive

The files I'm unzipping are proper. No issues with them.
Other tools as in, which tools are you referring to?
Four Stars

Re: Unexpected end of ZLIB input stream in tFileUnarchive

- Windows tool
- 7z utility
-  etc

Re: Unexpected end of ZLIB input stream in tFileUnarchive

ok, but I want to automate the file extraction process along with ETL process. The tFileUnarchive I use is part of whole process, tFTPExist ==> tFTPGet ==> tFileUnarchive and so on. So how do we integrate 7z and Windows tool with the whole process?
Four Stars

Re: Unexpected end of ZLIB input stream in tFileUnarchive

If you want to invoke 7z in talend, then you can do it using tSystem component and execute commands for unarchiving. 7z as well as other tools support this feature..
Vaibhav

Re: Unexpected end of ZLIB input stream in tFileUnarchive

I am running the job on server and I can't install 7z there.
Any other suggestions?
Since Talend is giving error, it means I am missing out something in my whole setup....