Re: Struts2-json-plugin serialization issue with a Hibernate backed JPA entity

2011-09-07 Thread Ken McWilliams
I need the root object to be "list" so this isn't going to help. I'm pretty sure it is not trying to serialize the EJB service, the json plugin will only try to serialize properties which have getters. According the debugger there seems to be a public property directly in the entity called $JAVA

Re: Struts2-json-plugin serialization issue with a Hibernate backed JPA entity

2011-09-07 Thread Ken McWilliams
Solved! I've seen a number of posts relating to this issue but none with solutions... In searching for how $JAVASSIST_READ_WRITE_HANDLER came into existence we find: http://www.docjar.com/html/api/org/hibernate/tool/instrument/javassist/FieldTransformer.java.html There we can see the getter for

Re: Struts2-json-plugin serialization issue with a Hibernate backed JPA entity

2011-09-06 Thread Maurizio Cucchiara
You might take a look at [1], particoularly the section called "root object". That's because I'm afraid that json plugin is trying to serialize your EJB service. HTH [1] struts.apache.org/2.2.3/docs/json-plugin.html Maurizio Cucchiara Il giorno 07/set/2011 07.43, "Ken McWilliams" ha scritto: >

Struts2-json-plugin serialization issue with a Hibernate backed JPA entity

2011-09-06 Thread Ken McWilliams
I have a JPA entity, which hibernate is proxying. The following action works as it explicitly states the properties to include, however what I would much rather do is use excludeProperties to remove the problematic property. The problem property when serialized causes a "Positioned Update not su