[resolved] Does tFileUnarchive support 7z files ? [Negative seek offset] Error

One Star

[resolved] Does tFileUnarchive support 7z files ? [Negative seek offset] Error

Hi,
Dunno if it's worth oppening a "bugtracker" but i have an issue with using the tFileUnarchive component with 7z file.
When trying to unzip in TIS here is what i got :
 connecting to socket on port 3438
connected
Processing archive d:/file.7z, please wait...
Exception in component tFileUnarchive_1
java.io.IOException: Negative seek offset
at java.io.RandomAccessFile.seek(Native Method)
at org.apache.tools.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:365)
at org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:243)
at org.apache.tools.zip.ZipFile.<init>(ZipFile.java:142)
at org.apache.tools.zip.ZipFile.<init>(ZipFile.java:113)
at informix_exapaq.ftp_0_1.ftp.tFileUnarchive_1Process(ftp.java:476)
at informix_exapaq.ftp_0_1.ftp.runJobInTOS(ftp.java:741)
at informix_exapaq.ftp_0_1.ftp.main(ftp.java:615)
disconnected

I can unzip the file in windows with winrar without problem. I had no trouble with ZIP files with this procedure.
Any idea ?
Rude

Accepted Solutions
Community Manager

Re: [resolved] Does tFileUnarchive support 7z files ? [Negative seek offset] Error

hi,
for a project, we have to get an archive file by ftp.
this archive was zipped by 7z and had the extension ".7z".
do you have any idea for how to unzip it thanks to talend EE 4.2.2?
we cannot zip it with ".zip". we can just exploite the file.
regards
fred

Hi
Yes, it is possible, you have to install 7-zip on the machine and use tSystem component to call the command to unzip the archive file. for example:
"cmd /c 7z e d:/file/in.7z oc:/file/"
d:file/in.7z the path of archive file
c:/file/ the path of target directory.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

All Replies
Community Manager

Re: [resolved] Does tFileUnarchive support 7z files ? [Negative seek offset] Error

Hi
Which version of TIS/TOS are you using? You are using tFileUnarchive to unzip a archive file zipped by 7z, right?
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Does tFileUnarchive support 7z files ? [Negative seek offset] Error

I do.
TIS 4.2.2
Community Manager

Re: [resolved] Does tFileUnarchive support 7z files ? [Negative seek offset] Error

Hi
It does not support the extension ".7z", you need to zip the file with ".zip" and it should be ok.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Does tFileUnarchive support 7z files ? [Negative seek offset] Error

Oh ok.
Because the french tooltip is saying : "Extract data from a file of any type" So i thought 7z was supported.
Thank you.
One Star

Re: [resolved] Does tFileUnarchive support 7z files ? [Negative seek offset] Error

hi,
for a project, we have to get an archive file by ftp.
this archive was zipped by 7z and had the extension ".7z".
do you have any idea for how to unzip it thanks to talend EE 4.2.2?
we cannot zip it with ".zip". we can just exploite the file.
regards
fred
Community Manager

Re: [resolved] Does tFileUnarchive support 7z files ? [Negative seek offset] Error

hi,
for a project, we have to get an archive file by ftp.
this archive was zipped by 7z and had the extension ".7z".
do you have any idea for how to unzip it thanks to talend EE 4.2.2?
we cannot zip it with ".zip". we can just exploite the file.
regards
fred

Hi
Yes, it is possible, you have to install 7-zip on the machine and use tSystem component to call the command to unzip the archive file. for example:
"cmd /c 7z e d:/file/in.7z oc:/file/"
d:file/in.7z the path of archive file
c:/file/ the path of target directory.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business