Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

issue while JAXB processing

 
Amitosh Mishra
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

i am having one issue in jaxb processing.
this is happening when i am trying to write object directly to console

please find below the code block



Response




please let me know what could be the issue??

regards
Amitosh
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What were you expecting to happen?

Bill
 
Amitosh Mishra
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to know why extra  character is coming in first xml.
when i am unmarshalling the xml and marshalling back the object again to string writer why it is not coming.

regards
Amitosh
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's because you're writing your XML to the console as UTF-8, but the console isn't expecting UTF-8 because it isn't configured that way.

I assume your real application isn't going to be writing XML to the console? In which case you shouldn't spend any time trying to reconfigure the console to support UTF-8. Just ignore this and move on with your real application.
 
Amitosh Mishra
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paul..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic