[Red5] Error passing object to red5 from flex
Curt Bererton
curt at zipzapplay.com
Fri Nov 2 21:15:17 PDT 2007
Hello red5
Has anyone run into problems passing a class between flex and red5? I
had some code working and then I changed my object a little bit and I
got the following:
[ERROR] 2007-11-02 21:05:02,484 SocketAcceptorIoProcessor-0.0:(
org.red5.io.amf.Input.newInstance ) Error loading class:
com.myCompany.network.ClientGameVO
java.lang.ClassNotFoundException: com.myCompany.network.ClientGameVO
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
The odd thing is that the class its looking for doesn't exist on the
server. It only exists under that name on the client side. The only
thing in the class is a few strings and a long int.
I thought I could pass a ClientGameVO object as a parameter from flex
using something like
netConnection.call("myfunction", myClientGameVO);
And receive it on the server side with
public void saveGame( Object cgvoIn) {
//cgvoIn is received as NULL, and I get the above error.
}
1. Is there documentation on how to pass custom objects from flex/as3
to red5? I couldn't find any. So if someone could point me in the
right direction that would help a lot.
2. Do I need to define the custom class somewhere on the red5 side?
Should I cast the client side object to "Object" before I send it?
Any help would be appreciated.
~Curt
More information about the Red5
mailing list