Thanks Roberto, I tried your sample and it worked. Now that
I see the error message again I know what the issue is.... you don't have a
reference to mx.collections.ArrayCollection so this class definition isn't
linked into the SWF during compilation...
Typically if a typed object's class isn't found the player
just creates an anonymous Object, however mx.collections.ArrayCollection
implements flash.net.IExternalizable, which means it controls its own
serialization and can't be skipped by the player... so we end up (unfortunately)
with this generic error.
In your MXML add a line in Script like
this:
import mx.collections.ArrayCollection;
private var dep:ArrayCollection;
That should be enough to force a dependency on this class
so that it is linked into the SWF.
We fixed this after Beta 3 to always have a dependency on
this class when using RPC services.
Pete
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Farland Sent: Tuesday, June 20, 2006 9:44 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Converting Java objects to ActionScript
Roberto, in flex-enterprise-services.xml, can you go to the
logging section, set the level to Debug and then make sure the only logging
pattern is Endpoint.*. Restart the server and then rerun your application and
look on the console (if you started the server using the command line) or in the
app server's std err/out logs and see if you can provide more
information?
Otherwise, you can send me a zip offlist (remember to
rename the .zip extension to something else, like .z so that the email filter
doesn't discard it) of the server code so I can take a closer
look.
Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hans73it Sent: Tuesday, June 20, 2006 4:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Converting Java objects to ActionScript I'm trying to call a remote object that returns a List of
String. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|