Sunday, October 9, 2011

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. &nbsp;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. &nbsp;The variable are the events....
>
> -- Sent from my Palm Pixi
> On Oct 9, 2011 5:25 PM, .Mark &lt;ward.m...@gmail.com&gt; 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&nbsp;am, ".Mark" &lt;ward.m...@gmail.com&gt; wrote:
>
> &gt; I have a problem that I can not figure out. &nbsp;I have some classes
>
> &gt; extending the JavaScriptObject class. &nbsp;None of these classes reference
>
> &gt; each other or reference itself. &nbsp;I only access them in my java code
>
> &gt; and use the JSON to store these data structures.
>
> &gt;
>
> &gt; I get an error of "(TypeError): Converting circular structure to
>
> &gt; JSON".
>
> &gt;
>
> &gt; Each class's unit test works on the stringify calls.
>
> &gt; The program works if I put debug lines to stringify each class before
>
> &gt; the natural flow of the program.
>
> &gt;
>
> &gt; What happens during run time is I fire events when data is written to
>
> &gt; the jnsi objects. &nbsp;A listener to the event is taking these objects and
>
> &gt; serializing them to save. &nbsp;It is during that call when triggered by
>
> &gt; the events that I get the circular error. &nbsp;But it works if I put a
>
> &gt; debug call to stringify each object before it's chane event is fired.
>
> &gt;
>
> &gt; 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


Real Estate