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
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
. 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
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
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
5 matches
Mail list logo