Re: Bugs?

Todd Hivnor <[email protected]> Wed, 06 Jun 2007 13:04:53 -0700
Newsgroups gmane.comp.java.openamf.user,gmane.comp.java.openamf.devel
Message-ID <[email protected]>
I pass objects from Flash to Java and vice-versa. When sending an object
from Java to Flash, I am able to create "complex" object collections,
where there are looped references. But when sending objects from
Flash to Java, my experience has been that Flash locks up when
trying to send an object with looped references. That is,
if I have an object A which references B which references A,
and I try to send Object A to Java, Flash just gets stuck.

I've implemented a validation function in Flash, which checks
for these looped references, and prevents them from being sent.

This is a long-winded way of asking "how is are you creating
the ASObject instances with looped references?" I haven't been able
to do that. So I've never had problems deserializing such a beast!


Lorenzo Benvenuti wrote:
> Hi,
>
> I'm using openamf-1.0RC12 in a project and I think I found a couple of 
> bugs. I had some issues serializing object referenced more than once. I 
> gave a look to the openamf source code and I tried to play with the 
> AMFDeserializer class (actually I didn't spend much time with that): I 
> found that changing the index the class use to retrieve a previously 
> serialized object solves the problem:
>
> 291c291
> <         return storedObjects.get(index);
> ---
>  >         return storedObjects.get(index + 1);
>
> More than this, I discovered that the ASObject.toString() method causes 
> a stack overflow when dealing with looping references.
>
> Did anyone face similar issues?
>
> Regards,
>
> Lorenzo Benvenuti
>
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/