JSON Error - Hibernate Entities

2011-02-13 Thread CRANFORD, CHRIS
I am trying to return a list of hibernate entities to my AJAX call; however, I get the following error message when JSONWriter tries to serialize the objects. Can anyone explain why I am getting this error and if there is something I can do to avoid it so I can pass my objects back via a JSON call

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
Here is the portion from the struts configuration: struts-warranty.xml itemsList The ajax action class looks like this: public class WarrantyAssignmentItemAjaxAction extends BaseAction { private List itemsList; public List getItemsList() { Return itemsList; } // othe