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" <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to