I am going to work on building an example that I can push up to a public repository. My program only modifies the objects via the JSNI class. I do this to allow the classes to be managed with the javascript JSON class. I do not know if gwt has a java class for JSON serialization. I don't have any javascript code accessing my JSNI classes directly.
On Sun, Oct 9, 2011 at 9:31 PM, alexandroid <kamot...@gmail.com> wrote: > Any code examples? Is it possible that java script objects (not your > java class) reference each other or something? > > On Oct 9, 3:54 pm, "ward.m...@gmail.com" <ward.m...@gmail.com> wrote: > > The next discover is when stepping through the code to see if I can look > at the data structure in memory before the call to json it does not throw > the error. I am going to have to put a try catch when the error > happens to look at the data structure. > > > > I am working with a unit test where the data and the code path are the > same each run. The variable are the events.... > > > > -- Sent from my Palm Pixi > > On Oct 9, 2011 5:25 PM, .Mark <ward.m...@gmail.com> wrote: > > > > I am seriously thinking gwt is messing with my classes. It works > > > > sometimes then other times it does not. How come I am getting this > > > > error when I do not have a circular relation in my data model? > > > > On Oct 8, 7:26 am, ".Mark" <ward.m...@gmail.com> wrote: > > > > > I have a problem that I can not figure out. I have some > classes > > > > > extending the JavaScriptObject class. None of these classes > reference > > > > > each other or reference itself. I only access them in my java > code > > > > > and use the JSON to store these data structures. > > > > > > > > > > I get an error of "(TypeError): Converting circular structure to > > > > > JSON". > > > > > > > > > > Each class's unit test works on the stringify calls. > > > > > The program works if I put debug lines to stringify each class > before > > > > > the natural flow of the program. > > > > > > > > > > What happens during run time is I fire events when data is written > to > > > > > the jnsi objects. A listener to the event is taking these > objects and > > > > > serializing them to save. It is during that call when > triggered by > > > > > the events that I get the circular error. But it works if I > put a > > > > > debug call to stringify each object before it's chane event is > fired. > > > > > > > > > > I am lost in finding out what is going on or why this happens. > > > > -- > > > > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > > > > To post to this group, send email to google-web-toolkit@googlegroups.com > . > > > > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > > > > For more options, visit this group athttp:// > groups.google.com/group/google-web-toolkit?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.