powered by Jive Software

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: é/  û÷ Ë
java.net.SocketException: Connection closed by remote host
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1269)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:43)
    at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
    at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
    at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
    at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
    at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
    at java.io.BufferedWriter.flush(BufferedWriter.java:236)
    at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:274)
    at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40)
    at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:87)
java.io.EOFException: 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(MXParser.java:3035)
    at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
    at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144)
    at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
    at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:368)
    at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
    at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)
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?

Thanks