Getting java.util.zip.ZipException: oversubscribed dynamic bit lengths tre
posted 10 years ago
For the high performance and optimized caching mechanism, we're cashing java objects in-memory.
Following are the code snippets which I wrote to do in-memory compression / decompression of the java objects.
I'm compressing java objects in-memory and storing compressed data in bytes array, whenever it's required to use, I just uncompress it in memory and use it and then again dump (garbage) it when use is finished.
Instead of keeping real objects, I'm keeping compressed object bytes in memory to save huge memory.
I'm getting deadly java error while decompressing data, the error is as under,