Re: it is not a circular structure
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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home