Re: [Openamf-user] Bugs?
Lorenzo Benvenuti <[email protected]> Fri, 15 Jun 2007 10:14:21 +0200
| Newsgroups | gmane.comp.java.openamf.devel,gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Todd, I'm sorry to answer your email so lately: thank you for your email. Actually Flash doesn't lock up using circular references. I'm serializing and deserializing a tree whose nodes have both a "parent" and a "children" property, so that a parent node points to its children and every children points to its parent... and, if I disable openamf logging, everything works (probably because I patched AMFDeserializer.java as I said in the previous email?). A bit of investigation (that actually has been done by a colleague) led to the conclusion that is the ASObject.toString() that causes the trouble. Thank you, lorenzo Todd Hivnor wrote: > 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/ > _______________________________________________ > Openamf-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openamf-developer > -- Lorenzo Benvenuti Senior Programmer Tagetik Software Via Farnesi, 141 55100 Lucca Tel. (+39)058396811 Fax. (+39)058391199 [email protected] http://www.tagetik.com Questo messaggio puo' contenere informazioni di carattere estremamente riservato e confidenziale. Qualora non foste i destinatari, vogliate immediatamente informarci con lo stesso mezzo ed eliminare il messaggio, con gli eventuali allegati, senza trattenerne copia. Qualsivoglia utilizzo non autorizzato del contenuto di questo messaggio costituisce violazione dell'obbligo di non prendere cognizione della corrispondenza tra altri soggetti, salvo piu' grave illecito, ed espone il responsabile alle relative conseguenze civili e penali. http://www.tagetik.it/azienda/privacy_form per cancellare o modificare il profilo. Nel rispetto della vostra privacy http://www.tagetik.it/azienda/privacy-policy-1 per visionare la nostra policy. This message is being sent from Tagetik and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties, and may constitute a more serious offense. http://www.tagetik.com/company/privacy_form?set_language=en to unsubscribe or modify your profile. We respect your right to privacy - http://www.tagetik.com/company/privacy-policy?set_language=en to view our policy. ------------------------------------------------------------------------- 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/