[Red5] Calling a function with string parameter fails

CaioToOn! red5.caiotoon at gmail.com
Fri Jun 27 16:33:46 PDT 2008


Could you send the Java class you're referring?

2008/6/27 Prabhu Tamilarasan <ptamilarasan at omnovia.com>:

> Good question, it is using the default and I'm not quite sure.  I believe
> it is AMF3 but I will confirm
>
> Sent via BlackBerry by AT&T
>
> -----Original Message-----
> From: CaioToOn! <red5.caiotoon at gmail.com>
>
> Date: Fri, 27 Jun 2008 19:32:51
> To:red5 at osflash.org <To%3Ared5 at osflash.org>
> Subject: Re: [Red5] Calling a function with string parameter fails
>
>
> Hi, Prabhu!
>
> Are you using AMF0 or AMF3?
>
> CaioToOn!
>
>
> 2008/6/27 Prabhu Tamilarasan (omNovia) <ptamilarasan at omnovia.com <mailto:
> ptamilarasan at omnovia.com> >:
>
>
>
> I am trying to call a function on Red5 passing a string as a parameter.
> Seems decoding errors out on the server and disconnects the client.
> Changing the paremeter to a number causes the call to not error out, however
> I obviously get an error saying no method exists with these parameters.
> This started happening as soon as I upgraded to rev 2854.  Any ideas?
>
> The function I am trying to call:
> application.imageServer.call("startPlaying", application.res, "775954410");
>
> The error:
> [DEBUG] [SocketAcceptorIoProcessor-1.0] org.red5.io.object.Deserializer -
> Type: 4
> [DEBUG] [SocketAcceptorIoProcessor-1.0] org.red5.io.object.Deserializer -
> Datatype: String
> [DEBUG] [SocketAcceptorIoProcessor-1.0]
> org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Action startPlaying
> [DEBUG] [SocketAcceptorIoProcessor-1.0] org.red5.io.object.Deserializer -
> Type: 3
> [DEBUG] [SocketAcceptorIoProcessor-1.0] org.red5.io.object.Deserializer -
> Datatype: Number
> [DEBUG] [SocketAcceptorIoProcessor-1.0] org.red5.io.amf3.Input - Current
> data type: 5
> [DEBUG] [SocketAcceptorIoProcessor-1.0] org.red5.io.object.Deserializer -
> Type: 1
> [DEBUG] [SocketAcceptorIoProcessor-1.0] org.red5.io.object.Deserializer -
> Datatype: null
> [DEBUG] [SocketAcceptorIoProcessor-1.0] org.red5.io.amf3.Input - Current
> data type: 2
> [DEBUG] [SocketAcceptorIoProcessor-1.0] org.red5.io.object.Deserializer -
> Type: 4
> [DEBUG] [SocketAcceptorIoProcessor-1.0] org.red5.io.object.Deserializer -
> Datatype: String
> [DEBUG] [SocketAcceptorIoProcessor-1.0] org.red5.io.amf3.Input - readString
> - length: 0
> [DEBUG] [SocketAcceptorIoProcessor-1.0] org.red5.io.amf3.Input - String
> reference list is empty
> [ERROR] [SocketAcceptorIoProcessor-1.0]
> org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Error decoding buffer
> org.red5.server.net.protocol.ProtocolException: Error during decoding
>         at
> org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decode(RTMPProtocolDecoder.java:218)
>         at
> org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decodeBuffer(RTMPProtocolDecoder.java:121)
>         at
> org.red5.server.net.rtmp.codec.RTMPMinaProtocolDecoder.decode(RTMPMinaProtocolDecoder.java:60)
>         at
> org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:158)
>         at
> org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
>         at
> org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
>         at
> org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
>         at
> org.apache.mina.common.support.AbstractIoFilterChain$HeadFilter.messageReceived(AbstractIoFilterChain.java:499)
>         at
> org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
>         at
> org.apache.mina.common.support.AbstractIoFilterChain.fireMessageReceived(AbstractIoFilterChain.java:293)
>         at
> org.apache.mina.transport.socket.nio.SocketIoProcessor.read(SocketIoProcessor.java:228)
>         at
> org.apache.mina.transport.socket.nio.SocketIoProcessor.process(SocketIoProcessor.java:198)
>         at
> org.apache.mina.transport.socket.nio.SocketIoProcessor.access$400(SocketIoProcessor.java:45)
>         at
> org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProcessor.java:485)
>         at
> org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>         at java.util.ArrayList.RangeCheck(Unknown Source)
>         at java.util.ArrayList.get(Unknown Source)
>         at org.red5.io.amf3.Input.readString(Input.java:318)
>         at
> org.red5.io.object.Deserializer.deserialize(Deserializer.java:69)
>         at
> org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decodeNotifyOrInvoke(RTMPProtocolDecoder.java:852)
>         at
> org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decodeInvoke(RTMPProtocolDecoder.java:759)
>         at
> org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decodeMessage(RTMPProtocolDecoder.java:530)
>         at
> org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decodePacket(RTMPProtocolDecoder.java:417)
>         at
> org.red5.server.net.rtmp.codec.RTMPProtocolDecoder.decode(RTMPProtocolDecoder.java:204)
>         ... 17 common frames omitted
> [WARN] [SocketAcceptorIoProcessor-1.0]
> org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Closing connection
> because decoding failed: RTMPMinaConnection from 74.55.65.36 <
> http://74.55.65.36>  : 44765 to 70.84.159.126:443 <
> http://70.84.159.126:443>  (in: 3534 out 3302 )
>
>
>
> ----------------
>
>
>
>
>  next generation web conferencing
>
> Prabhu Tamilarasan
>  Senior Software Engineer
> 675 Bering Drive, Suite 290
>  Houston, TX 77057 USA
>  www.omnovia.com <http://www.omnovia.com>
>
> ptamilarasan at omnovia.com <mailto:ptamilarasan at omnovia.com>
> T +1.281.500.4065 x 731
>
>
> ----------------
>
>
> _______________________________________________
>  Red5 mailing list
>  Red5 at osflash.org <mailto:Red5 at osflash.org>
>  http://osflash.org/mailman/listinfo/red5_osflash.org <
> http://osflash.org/mailman/listinfo/red5_osflash.org>
>
>
>  _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080627/af9fe515/attachment-0001.html 


More information about the Red5 mailing list