This looks like a bug..? Create a new ticket on http://jira.red5.org
If it's not a bug I guess it would be a good enhancement to be able  
to force Red5 to use AMF3 through some xml file or something?

Thijs


On Aug 17, 2007, at 12:28 PM, Dominik Willers wrote:

> Dear all,
>
> I'm new to Red5, so at first congrats to this amazing product!
>
> While syncing an array stored in a SharedObject after a client-side  
> update
> I get the following exception:
>
> ...
> [java] Caused by: java.lang.IllegalArgumentException
> [java]     at java.nio.Buffer.limit(Buffer.java:249)
> [java]     at org.red5.io.amf.Input.getString(Input.java:247)
> [java]     at org.red5.io.amf.Input.readPropertyName(Input.java :514)
> [java]     at org.red5.io.amf.Input.readKeyValues(Input.java:305)
> [java]     at org.red5.io.amf.Input.readSimpleObject(Input.java:448)
> [java]     at org.red5.io.amf.Input.readObject(Input.java:484)
> [java]     at org.red5.io.object.Deserializer.deserialize 
> (Deserializer.java:83)
> [java]     at  
> org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.doDecodeSharedObjec 
> t(RTMPProtocolDecoder.java:660)
> [java]     at  
> org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decodeFlexSharedObj 
> ect (RTMPProtocolDecoder.java:597)
> ...
>
>
> By altering Input class to use AMF3:
>
>      final Input input = new org.red5.io.amf.Input(in); -->  final  
> Input input = new org.red5.io.amf3.Input(in);
>
>      in '...public ISharedObjectMessage decodeFlexSharedObject 
> (ByteBuffer in, RTMP rtmp)...'
>      in RTMPProtocolDecoder.java
>
> ... everything works fine!
>
> Now my question:
> Is it meant to change the server code like this or is there another  
> way to force Red5 to use AMF3 ?
>
>
> Thanks in advance for your help!
> Dominik
>
> My configuration:
>
> - Red5 Standalone (latest version from the svn-trunk)
> - Flex Builder 3 beta 1 (Eclipse plugin)
> - Firefox Flash Plugin (9,0,60,120)
>
>
>
>
>
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to