Re: JSON Error - Hibernate Entities

2011-02-14 Thread Maurizio Cucchiara
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, February 14, 2011 1:12 AM To: Struts Users Mailing List Subject: Re: JSON Error

RE: JSON Error - Hibernate Entities

2011-02-14 Thread CRANFORD, CHRIS
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 [2] http://martinfowler.com/eaaCatalog/dataTransferObject.html On 14

Re: RE: JSON Error - Hibernate Entities

2011-02-14 Thread Maurizio Cucchiara
. 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 Entities Your Item class is a simple

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

RE: JSON Error - Hibernate Entities

2011-02-13 Thread CRANFORD, CHRIS
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, February 14, 2011 1:12 AM To: Struts Users Mailing List Subject: Re: JSON Error - Hibernate Entities