Donate Share

Retroweaver

Tracker: Bugs

5 java.util.zip.ZipException: invalid entry compressed size - ID: 1770111
Last Update: Comment added ( xlv )

Running Retroweaver on a jar file can cause the following stacktrace:

Exception in thread "main"
net.sourceforge.retroweaver.RetroWeaverException: Wea
ving failed
at net.sourceforge.retroweaver.Weaver.main(Weaver.java:173)
Caused by: java.util.zip.ZipException: invalid entry compressed size
(expected 6
92 but got 689 bytes)
at java.util.zip.ZipOutputStream.closeEntry(Unknown Source)
at java.util.zip.ZipOutputStream.putNextEntry(Unknown Source)
at java.util.jar.JarOutputStream.putNextEntry(Unknown Source)
at net.sourceforge.retroweaver.RetroWeaver.weaveJarFile(RetroWeaver.java
:216)
at net.sourceforge.retroweaver.Weaver.main(Weaver.java:170)


Toby Reyelts ( rreyelts ) - 2007-08-08 15:27

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2007-09-26 17:43
Sender: xlvProject AdminAccepting Donations


a new JarEntry is now created to avoid the problem.

Xavier



Date: 2007-08-08 15:30
Sender: rreyeltsProject AdminAccepting Donations


Apparently reusing a source ZipEntry in a call to
ZipOutputStream.putNextEntry can cause this failure. We just need to create
a new ZipEntry. Change Retroweaver.java:216 from

out.putNextEntry(entry);

to

out.putNextEntry(new ZipEntry(name));



Log in to comment.

Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2007-09-26 17:43 xlv
resolution_id None 2007-09-26 17:43 xlv
close_date - 2007-09-26 17:43 xlv