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 9223505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:05:46+00:00 2026-06-18T04:05:46+00:00

I am relatively new to Wink and trying to debug a defect in which

  • 0

I am relatively new to Wink and trying to debug a defect in which a POJO that contains a byte array is [I think] being improperly serialized into json for the response. By improperly I mean that I have unicode characters stored as a blob that have been extracted into the byte array and when the byte array is serialized into json, it is being decoded as something other than the UTF-8 characters the unicode bytes should represent.

In trying to trace this problem, I’ve validated that the bytes look as I expect them to up to the point where they are returned from my request resource. My @GET request resource method returns a List. I understand from reading the guide that

  1. RequestHandler chain is executed and ultimately invokes my resource
    method…
  2. The return from the resource method (@GET in this case) is
    supposed to go into the messagecontext which is passed to the
    ResponseHandler chain, I think…

My concern is that the contents of the pojo returned by my resource method, which contains a byte[], is not being serialized correctly and is producing invalid json content which is being sent to the user. How does my returned List get into the messageContext?

I am unable to attach a debugger to the machine running this application.

  • 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-18T04:05:47+00:00Added an answer on June 18, 2026 at 4:05 am

    I partially answered my question. The object returned from a resource method is attached to the MessageContext object’s responseEntity property. I assume messageContext.setResponseEntity() is invoked by org.apache.wink.server.handlers.RequestHandler.InvokeMethodHandler but haven’t verified this.

    I still have to figure out why, when my byte[] is serialized into json that it is not assuming the UTF-8 encoding (and subsequently mangling my special characters)

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

Sidebar

Related Questions

Being relatively new to programming--think Programming in Objective-C by Kochan, Chapter 15--I'm wondering if
I'm relatively new javascript, but I am comfortable in other languages. I'm trying to
I'm relatively new to Java and I'm still trying to understand the fundamentals. I
Relatively new to JQuery. I've got some code that does a banner swap with
I am relatively new to Ajax and I am still trying to grasp all
Relatively new to python. I recently posted a question in regards to validating that
Being relatively new to Python 2, I'm uncertain how best to organise my class
Being relatively new to the software industry I have come across a question of
Being relatively new to mongo, I read in the mongo manual about Optimizing Object
Being relatively new with jQuery I hope someone could point me in the right

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.