Here is a patch that has to be confirmed by the community:
— C:\develop\instango\openfire_src\mina\mina-1.1.7\filter-compression\src\main\ja va\org\apache\mina\filter\support\Zlib.java.orig Sat Apr 19 14:32:28 2008 UTC
+++ C:\develop\instango\openfire_src\mina\mina-1.1.7\filter-compression\src\main\ja va\org\apache\mina\filter\support\Zlib.java Tue Oct 14 18:38:08 2008 UTC
@@ -152,7 +152,7 @@
- released manually.
- @throws IOException if the compression of teh buffer failed for some reason
*/
- public ByteBuffer deflate(ByteBuffer inBuffer) throws IOException {
+ synchronized public ByteBuffer deflate(ByteBuffer inBuffer) throws IOException {
if (mode == MODE_INFLATER) {
throw new IllegalStateException("not initialized as DEFLATER");
}
see also http://www.igniterealtime.org/community/thread/33000