John Moose wrote:
Anyone know what this means?? How can I change the pre-configured STRICT
strategy :
net.sf.json.util.CycleDetectionStrategy$StrictCycleDetectionStrategy to
LENIENT ?? and will that even help me here?
Using Hibernate 3.1 with Struts 2.1.3 and the REST plugin. XML serializaion
works fine after changing Hiberbate lazy loading to FALSE...
Stacktraces *net.sf.json.JSONException: There is a cycle in the hierarchy!*
It means you have a bidirectional association between two of your
entities (common).
Change the CycleDetectionStrategy discussed at jsonlib
http://json-lib.sourceforge.net/usage.html
In struts2, substitute the default JSON ContentTypeHandler with one that
uses jsonlib with your customized settings.
Hope that helps.
Jeromy Evans
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]