Restlet/Jackson works differently when object implements Serializable

Posted by ravyoli on Stack Overflow See other posts from Stack Overflow or by ravyoli
Published on 2012-06-03T19:53:21Z Indexed on 2012/06/04 16:41 UTC
Read the original article Hit count: 340

Filed under:
|
|

I am sending an object with some primitive fields using Restlet with Jackson converter. Up until now it worked great. But then I needed my object to implement Serializable, because I need to store it in memcache of GAE. For some reason - when the class implements Serializable, things stop working.

Restlet sends a different string representation from before, and I can't even print that string in the server. I tried printing its byte value, char-by-char and the first numbers are:

0xfffd 0xfffd 0x0000 0x0005 0x0073 0x0072

Thanks a lot!

© Stack Overflow or respective owner

Related posts about java

Related posts about jackson