Re: RE: JSON Error - Hibernate Entities

2011-02-14 Thread Maurizio Cucchiara
O. All of the properties in the POJO are serializable :=/. > >> -Original Message- >> From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] >> Sent: Monday, February 14, 2011 2:40 AM >> To: Struts Users Mailing List >> Subject: Re: JSON Error - Hibernate Enti

RE: JSON Error - Hibernate Entities

2011-02-14 Thread CRANFORD, CHRIS
Struts Users Mailing List > Subject: Re: JSON Error - Hibernate Entities > > Your Item class is a simple POJO [1], isn't it? > Have you tried to use a DTO [2] object and see what happens? > > [1] http://en.wikipedia.org/wiki/Plain_Old_Java_Object >

Re: JSON Error - Hibernate Entities

2011-02-14 Thread Maurizio Cucchiara
t that before it > finally puked so I'm not sure if because my object graph has these > circular references if that is creating problems for it or not. > >> -Original Message- >> From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] >> Sent: Monday, F

RE: JSON Error - Hibernate Entities

2011-02-13 Thread CRANFORD, CHRIS
.@gmail.com] > Sent: Monday, February 14, 2011 1:12 AM > To: Struts Users Mailing List > Subject: Re: JSON Error - Hibernate Entities > > Could you post your struts.xml and the action which you're trying to > serialize? > I'm pretty sure that your action class contains a re

Re: JSON Error - Hibernate Entities

2011-02-13 Thread Maurizio Cucchiara
Could you post your struts.xml and the action which you're trying to serialize? I'm pretty sure that your action class contains a reference to a connection object and the json plugin is trying to serialize it. If I'm right you could simply change your root parameter via action configuration inside