Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
ffwrude
Contributor III

[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
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

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

View solution in original post

6 Replies
Anonymous
Not applicable

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
ffwrude
Contributor III
Author

I do.
TIS 4.2.2
Anonymous
Not applicable

Hi
It does not support the extension ".7z", you need to zip the file with ".zip" and it should be ok.
Best regards
Shong
ffwrude
Contributor III
Author

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

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
Anonymous
Not applicable

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