Re: Mapping objects
Martin Wood <[email protected]> Wed, 05 Jul 2006 15:27:55 +0200
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
hmm, definitely try using service capture and see what that says about the
object being sent to flash (i think you get a 30 day trial...i bought it because
its an invaluable tool for remoting development)
one other thing i noticed which you should be aware of is that the constructor
of the actionscript class gets called after de-serialization so you have to be
careful what you do in your constructors.
read this post for more information :
http://www.darronschall.com/weblog/archives/000186.cfm
anyway...back to the point..if you are getting a null that means that flash cant
do that cast, so i think that the object is being sent as the correct type from
java.
personally i would try these things (as well as using service capture)
1. Make both constructors parameter less
2. Remove the underscores from the properties
3. triple check the mapping configuration
4. Keep the Object.registerClass call as part of the initialization code in the
Smacklet class
class com.flashdb.domain.Smacklet
{
private var reg:Boolean =
Object.registerClass("com.flashdb.domain.Smacklet",com.flashdb.domain.Smacklet);
// Rest of class code
}
if it doesnt work after that then i try a liberal dose of swearing. :)
good luck.
Martin
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642