Openfire doesn't support encryption?

Hi, I’m making a messenger using smack API. I don’t know whether to post this in smack section or openfire section, so if this is wrong section please move it.

I can send message fine if I don’t encrypt the message, I printed the original message, encrypted message, thread name on the console as you can see at the quote below.

original message: test 1
encrypted message: é/  û÷ Ë Connection closed by remote host
    at sun.nio.cs.StreamEncoder.writeBytes(
    at sun.nio.cs.StreamEncoder.implFlushBuffer(
    at sun.nio.cs.StreamEncoder.implFlush(
    at sun.nio.cs.StreamEncoder.flush(
    at org.jivesoftware.smack.PacketWriter.writePackets(
    at org.jivesoftware.smack.PacketWriter.access$000(
    at org.jivesoftware.smack.PacketWriter$ no more data available - expected end tag </stream:stream> to close start tag <stream:stream> from line 1, parser stopped on END_TAG seen ...</ADR>\n</vCard></iq>... @87:14
    at org.xmlpull.mxp1.MXParser.fillBuf(
    at org.xmlpull.mxp1.MXParser.more(
    at org.xmlpull.mxp1.MXParser.nextImpl(
    at org.jivesoftware.smack.PacketReader.parsePackets(
    at org.jivesoftware.smack.PacketReader.access$000(
    at org.jivesoftware.smack.PacketReader$
error on thread : Smack Packet Reader (0)

I don’t modify any vcard, but it shows vcard error? I just simply send message using sendPacket function.

I encrypted the message using blowfish algorithm, without encryption I can send and receive message just fine.

After I press enter to send the message, I got kicked by the openfire server but the message successfully received by the other client.

So my question is:

  1. does openfire support sending encrypted message? I can send japanese characters fine…

  2. Is there a way to solve this? Is openfire not compatible with blowfish?