Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8034565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:03:40+00:00 2026-06-05T02:03:40+00:00

I am sending an object with some primitive fields using Restlet with Jackson converter.

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T02:03:43+00:00Added an answer on June 5, 2026 at 2:03 am

    What’s happening is that you are getting the result of applying DefaultConverter to the returned value rather than the JacksonConverter. DefaultConverter converts Serializable objects to ObjectRepresentation, which is a binary representation (the serialized form of the object). In the absence of a specific media type being requested, the converter logic sees a Serializable as being equally convertible to an ObjectRepresentation or a JacksonRepresentation, and due to the way converters are ordered, it chooses the former.

    There are several ways to deal with this. The simplest is to specify the desired media type explicitly (MediaType.APPLICATION_JSON) in the request.

    A more robust solution is to replace the JacksonConverter with your own custom version that scores the null Variant higher than the current value of 0.5. You’ll want to do this anyway if you want to override the current JacksonRepresentation behavior of creating a new ObjectMapper for each conversion, or if you want to use Jackson 2.0. Search the restlet-discuss list for my posts about how to accomplish this. (tpeierls)

    It’s quite possible that this behavior has been fixed in more recent releases, and I know that work is in progress on issues related to this, so do search the issue tracker for JacksonConverter before committing to any course of action.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am sending password text to the http service request object.like <request><password>pass.text</password></request> now this
sending mail along with embedded image using asp.net I have already used following but
I have the object var dataformdata={key1:value1,key2:value2}; then I add some more values with the
I'm sending a notification using: [[NSNotificationCenter defaultCenter] postNotificationName:@historyLoaded object:jsonReturn]; And receiving the notification using:
I'm using C# to POST some data to a webserver running PHP. I'm sending
I am using LCDS and Flex. When I am sending an object from java
Well, I have been scratching my head for some time now. But failed to
I am making an application in Android, which requires sending bitmap object from one
I'm getting an NSObjectInaccessibleException when sending NSManagedObject as object with NSNotification. The notification is
In Objective-C I see [object retain]; What does sending a retain message to an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.