If message contains multibyte characters parsing can adds null characters to the random place of resulting stanza. For example next simple test will fail:
can these result in a never ending stanza exception?
i sometimes get this error (with a connection manager running) - what results in drops of 1 MB of correct stanzas. i already started to put in some debugging code and decreased the size. but i have always have to restart the server (what i only can to on late night ant not every day) and the error occurs pherhaps twice a week.
Tim’s patch has been applied to Openfire 3.3.3 as shown in JM-1127. Are you sure you are seeing the same problem? Could you give us more information about the problem you are seeing and how we can reproduce it?
The problem is not entirely reproducible. It occurs randomly but often enough to be annoyed with. To be more quantitative, it think it happen more than once in every 1000 characters. To reproduce this problem, you can just keep sending utf-8 string (for me Thai) to your friend. Once in a while it will be turned in to �� or ��� (depending on where the buffer chop off the bytestream, i guess).
I was suspecting that it’s sun’s java’s bug. So, I change the java version from 6 to 1.5. But the problem is still there.
My System is Ubuntu 7.10 , sun’s java6 , openfire3.3.0.