Search the web
Sign In
New User? Sign Up
graniteds · Granite Data Services
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Trouble serializing when using optional collections   Message List  
Reply | Forward Message #4172 of 5339 |
My object graph has a TopLevel object with an ArrayList of child objects
attached to it. Those child objects may sometimes exist, and sometimes won't
exist. If I don't set anything for the child objects (leave it null), I'm able
to send it to the server side and save it just fine to the datastore. When my
code returns me an instance of what I've just saved, it has trouble reading it
back in. Does the generated actionscript code take into account optional list
parameters?

It keeps dying in the readExternal() method with this error and exception.

faultCode:Server.Acknowledge.Failed faultString:'Didn't receive an acknowledge
message' faultDetail:'Was expecting mx.messaging.messages.AcknowledgeMessage,
but received null'

ArgumentError: Error #2173: Unable to read object in stream. The class
org.granite.messaging.persistence.ExternalizablePersistentList does not
implement flash.utils.IExternalizable but is aliased to an externalizable class.
at ObjectInput/readObject()
at
com.sli.nitroswc.store.data::SWCBase/readExternal()[C:\Development\fb4beta\TestP\
roject1\src\com\sli\nitroswc\store\data\SWCBase.as:161]
at ObjectInput/readObject()
at
mx.collections::ArrayList/readExternal()[E:\dev\beta1\frameworks\projects\framew\
ork\src\mx\collections\ArrayList.as:547]
at
mx.collections::ArrayCollection/readExternal()[E:\dev\beta1\frameworks\projects\\
framework\src\mx\collections\ArrayCollection.as:147]
at ObjectInput/readObject()
at
mx.collections::ArrayList/readExternal()[E:\dev\beta1\frameworks\projects\framew\
ork\src\mx\collections\ArrayList.as:547]
at
mx.collections::ArrayCollection/readExternal()[E:\dev\beta1\frameworks\projects\\
framework\src\mx\collections\ArrayCollection.as:147]




Fri Jul 3, 2009 8:17 pm

andrewwestberg
Online Now Online Now
Send Email Send Email

Forward
Message #4172 of 5339 |
Expand Messages Author Sort by Date

My object graph has a TopLevel object with an ArrayList of child objects attached to it. Those child objects may sometimes exist, and sometimes won't exist....
andrewwestberg
Online Now Send Email
Jul 3, 2009
8:17 pm

Use the compiler option -include-libraries granite-essentials.swc to link the library. Otherwise some GDS internal classes are not included in the swf....
williamdrai
Offline Send Email
Jul 6, 2009
8:11 am

This took care of the issue. Thanks. I guess I should have RTFM first....
andrewwestberg
Online Now Send Email
Jul 6, 2009
1:55 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help