[Red5] org.red5.server.net.rtmp.codec.RTMPProtocolEncoder - Error encoding object (AS3 cam test with fitcDemo Java sided)

Sascha Sauren sascha.sauren at googlemail.com
Wed Oct 1 16:34:27 PDT 2008


well thats a bug


this is the codesnippet ur talking about:
<code>
    public ByteBuffer encode(ProtocolState state, Object message)
            throws Exception {
        Class<?> callingClassName2 =
sun.reflect.Reflection.getCallerClass(2);
        System.out.println("_____We have received state " + state + " and
Message " + message + " comming from "+ callingClassName2);
        log.info("the State , messave--> {} ", state, message);
        try {
            log.info("____TRY____ ");
            final RTMP rtmp = (RTMP) state;
            if (message instanceof ByteBuffer) {
                log.info("____IF____ ");
                return (ByteBuffer) message;
            } else {
                log.info("____ELSE____ {}", message);
                return encodePacket(rtmp, (Packet) message);
            }
        } catch (RuntimeException e) {
            log.error("Error encoding object: ", e);
        }
</code>


and thats the log output from teh significant part


<log>
_____We have received state org.red5.server.net.rtmp.codec.RTMP at 16d64c5 and
Message org.red5.server.net.rtmp.message.Packet at cc5436 comming from class
org.red5.server.net.rtmp.codec.RTMPMinaProtocolEncoder
[INFO] [pool-4-thread-7] org.red5.server.net.rtmp.codec.RTMPProtocolEncoder
- the State , messave--> org.red5.server.net.rtmp.codec.RTMP at 16d64c5
[INFO] [pool-4-thread-7] org.red5.server.net.rtmp.codec.RTMPProtocolEncoder
- ____TRY____
[INFO] [pool-4-thread-7] org.red5.server.net.rtmp.codec.RTMPProtocolEncoder
- ____ELSE____ org.red5.server.net.rtmp.message.Packet at cc5436
[INFO] [pool-4-thread-7] org.red5.server.net.rtmp.codec.RTMPProtocolEncoder
- ________xxx________This is a pending call, send request
[ERROR] [pool-4-thread-7] org.red5.server.net.rtmp.codec.RTMPProtocolEncoder
- Error encoding object:
java.lang.NullPointerException
</log>

watch the first line in log


state => org.red5.server.net.rtmp.codec.RTMP at 16d64c5

that is deffentive wrong;)

i´ll trigger that back and than post to Jira:)

greetz
Sascha





2008/10/1 Sebastian Wagner <seba.wagner at gmail.com>

> same pitfall for me *org.red5.server.net.rtmp.codec.RTMPProtocolEncoder -
> Error encoding object:  *
>
> are there new configuration files to change the rtmp-Encoding in 0.8.0 ?
>
>
> thanks & greetz
> sebastian
>
> 2008/9/28 Sascha Sauren <sascha.sauren at googlemail.com>
>
>> Hi i was just about testing a connection to fitcDemo webapp with a very
>> very simple AS3 b4 i updated 20 minutes ago from 3046 to 3110...
>> b4 the update the as3 client worked sometimes and sometimes not ? i was on
>> to find the reason why it sometimes work and why not, also thatfor was the
>> update...
>> well now after the update i receive a
>>
>> [ERROR] [pool-4-thread-7]
>> org.red5.server.net.rtmp.codec.RTMPProtocolEncoder - Error encoding object:
>>
>> full list of errormessage with a NOT SUCCESSfull try and a SUCCESSfull try
>> same client same server same computers unchanged code can be reviewed here
>> >> http://pastebin.com/m5deba27c
>>
>> with the original videoConference7 it works without the problem an as u
>> can see it sometimes get streamed also with this exception...
>>
>> I guessed that my client whasent streaming sometimes because i made a
>> log.info at clientbroadcast stream and the IEvent dident get received
>> there, the client get registered gots his setID...
>> and this lines indicates the client does stream:
>>
>> [DEBUG] [pool-4-thread-7] org.red5.demos.fitc.Application - stream
>> broadcast start: videoStream_0
>>
>>
>> to resolve the problem i upladed the source :
>>
>> 1) copy paste and save as "or5ConnectionExample2.as"
>> >> http://pastebin.com/m314f28c9
>>
>> 2) make folde "net" where u saved previous
>>
>> 3) copy paste and save as "or5NetConnection.as"
>> >> http://pastebin.com/m2bba745
>>
>> 4) open flash ide and save a blank fla to the same place where u saved
>> "or5ConnectionExample2.as"
>>
>> 5) in Flash set "or5ConnectionExample2.as" as document class for the fla,
>> save it again and test it... have a look at your server output
>>
>>
>> thank you for reading any idea where to look for the error would help...
>>
>> greetz
>>
>> Sascha
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>
>
> --
> Sebastian Wagner
> http://www.webbase-design.de
> http://openmeetings.googlecode.com
> http://www.laszlo-forum.de
> seba.wagner at gmail.com
>
> _______________________________________________
> 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/20081002/556e2f6e/attachment.html 


More information about the Red5 mailing list