[jdev] [ANN] Jive Messenger is now Wildfire Server

Tijl Houtbeckers thoutbeckers at splendo.com
Sun Dec 18 13:59:01 CST 2005


On Sun, 18 Dec 2005 20:07:54 +0100, Jakob Schroeter <js at camaya.net> wrote:

> Indeed, debug.log contains the following:
>
>  ...
>  java.util.zip.ZipException: no current ZIP entry
>  at java.util.zip.ZipOutputStream.write(Unknown Source)
> ...

Now, I haven't been looking at the Wildfire source or anything, but it's  
highly unlikely you can write a zlib compatible (as specified in the  
stream compression JEP) output with a ZipOutputStream, since that writes  
output specific to the ZIP file format. For "pure" ZLIB you can use  
DeflaterOutputStream and InflaterInputStream. (ZipOutputStream and  
ZipInputStream actually extend these). However AFAIK these still do not  
give you the ability to do "partial flushes" on your output which is  
needed to get good compression for XMPP.

Thankfully, there is a lib available to do this:  
http://www.jcraft.com/jzlib/index.html (also explains the problem with the  
Sun implementation a bit more). It's also pure Java so you won't be  
vonurable to any ZLIB exploits.



More information about the JDev mailing list