[jboss-user] [JBossCache] - Re: [TreeCacheMarshaller140] Unknown Magic Number 49

clebert.suconic@jboss.com do-not-reply at jboss.com
Tue Sep 19 13:28:03 EDT 2006


anonymous wrote : 
  | The fix to this problem would be NOT to use writeUTF() but to serialize the Strings themselves onto the stream, but this is less efficient. 

I don't think this would change the performance at al.

Strings as specially treated on Java Serialization. The routine for serializing strings is basically the same as writeUTF, but considering also long buffers.

I just had to support the same thing on JBoss Serialization. 

I had a bug which I'm fixing right now. I'm writing a short, and reading back the same short but instead of using readUnsignedShort I was using readShort what would truncate the size of any string between 0xefff and 0xffff bytes (because of the sign bit)


Clebert 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972675#3972675

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972675



More information about the jboss-user mailing list