This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Serialization of Java Objects to XML Problem

 
Greg Pata
Ranch Hand
Posts: 31
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
It seems I am not able to serialize an ArrayList<NonTrivialObject>() to xml...
Here is the debug code:



The output is:


I do not know how to correct this.

Thank you for your help.
 
Tony Docherty
Saloon Keeper
Posts: 3145
74
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ZRow class needs to have a public no args constructor.
 
Greg Pata
Ranch Hand
Posts: 31
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tony Docherty wrote:The ZRow class needs to have a public no args constructor.

Indeed, thank you Tony.
 
Tony Docherty
Saloon Keeper
Posts: 3145
74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My pleasure.
 
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!