error on zipfile decompression (on method closeEntry)

At 7/27/01 10:01 AM, ericdev wrote:

>Hi,

>

> I am trying to unzip a file of images to be later processed by JAI. When

>I Do a CloseEntry() method on a zip Entry it throws this exception. Any

>ideas? Are the files too big? I would think that java can handle any size

>zip file. Also, what kind of checksum does java use, is it the same as Winzip's? I choose to ignore (catch) checksum errors during unzipping. Could this also be messing things up?

>

>java.io.IOException: Push back buffer is full

>at java.io.PushbackInputStream.unread(PushbackInputStream.java:207)

>at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:341)

>at java.util.zip.ZipInputStream.read(ZipInputStream.java:144)

>at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:93)

>at Zip.decompressToVector(Zip.java:155)

>at uploadFile.doPost(uploadFile.java:105)

>at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

>at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

>at org.apache.tomcat.core.Handler.service(Handler.java:286)

>at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372

>

>Eric Dunn

>ericdev@zbe.com

>Software Engineer

>ZBE, Incorporated

>

[1504 byte] By [ericjee] at [2007-9-26 2:39:07]
# 1
Just a wild hair, but did you call flush() on the stream before you called CloseEntry? flush() is supposed to clear out the buffer so maybe it will help.-Phil
terrarealm at 2007-6-29 10:11:11 > top of Java-index,Desktop,Deploying...