java.util.zip.ZipException: invalid entry size error -- help required

Hi all

I am sure this error would have been posted many number of times, but I would really appreciate if someone could help me with my problem. I am working on reading data from a .zip file, which in it has ~5GB data. All I am performing is a read operation through the piece of code specified below. I am using RHE and not using WinZip. This code worked well for .zip files handling till ~2.5GB

FileInputStream fis =new FileInputStream(filename);

BufferedInputStream bis =new BufferedInputStream(fis);

ZipInputStream zis =new ZipInputStream(bis);

StreamTokenizer tok =new StreamTokenizer( zis );

ZipEntry entry;

while((entry = zis.getNextEntry()) !=null)

{

\\read from the zip file through the streamTokenizer

}

I just print what I read through the program, on the console.

But the error I get is

java.util.zip.ZipException: invalid entry size (expected 4294967295 but got 2117536490 bytes)

at java.util.zip.ZipInputStream.readEnd(Unknown Source)

at java.util.zip.ZipInputStream.read(Unknown Source)

at java.util.zip.InflaterInputStream.read(Unknown Source)[/code]

at java.io.StreamTokenizer.read(Unknown Source)

at java.io.StreamTokenizer.nextToken(Unknown Source)

at ZipFileStreams.getMessages(ZipFileStreams.java:677)

at ZipFileStreams.main(ZipFileStreams.java:814)

Could anybody give me hints as to what am I missing and where am i going wrong. Any help would be appreciated.

Thanks

[1782 byte] By [rajanvijaya] at [2007-10-2 11:03:33]
# 1
You could try [url=https://truezip.dev.java.net/]TrueZip[/url] instead of the Java ZIP API. It has lots of other "bugfixes" compared to the Java API.
MartinHilperta at 2007-7-13 3:36:17 > top of Java-index,Other Topics,Patterns & OO Design...
# 2
Thank you very much. TrueZip works great and importantly, solved my particular exception. I am wondering why Sun does not fix their 'bugs' using TrueZip?
rajanvijaya at 2007-7-13 3:36:17 > top of Java-index,Other Topics,Patterns & OO Design...
# 3

> You could try

> [url=https://truezip.dev.java.net/]TrueZip[/url]

> instead of the Java ZIP API. It has lots of other

> "bugfixes" compared to the Java API.

Hey, Martin!!! Thank you very much, too!!! I was searching for other solution for a long time!!! The Java API for zip/unzip has really and incredibly a lot of bugs. I hope this truezip save me.

Marcelo9a at 2007-7-13 3:36:17 > top of Java-index,Other Topics,Patterns & OO Design...