Win a copy of Design for the Mind this week in the Design 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: 13058
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
Pie
Posts: 20945
31
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..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic