powered by Jive Software

Properties system problem

After upgrading from 1.0.1 -> 1.1.0, something got broken in the Properties system. I’'m sending a byte[] through the setProperties method. The data comes out looking fine in the XMPP debug window. It looks like the parser might not be functioning right? Stack trace below:


message.setProperty(“encrypted”, encryptedMessage.getEncoded());


java.io.StreamCorruptedException: invalid stream header

at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737)

at java.io.ObjectInputStream.(ObjectInputStream.java:253)

at org.jivesoftware.smack.PacketReader.parseProperties(PacketReader.java:807)

at org.jivesoftware.smack.PacketReader.parseMessage(PacketReader.java:630)

at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:245)

at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:77)

at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:102)

Huh, strange. I’'ll test this scenario out and get back to you.



Urg, looks like I broke things in the Base64 encoding and decoding routines. I’‘ve now fixed the issue and the change is in CVS so it will be out in the next daily build. I’'ll do a 1.1.1 release next week to address this problem too.

Thanks for the bug report!