[Red5] timestamp branch

Michael Hollenbeck bigdaddyexlax at gmail.com
Fri Nov 6 16:18:33 PST 2009


Sorry, should have been more specific. The casting is being done in
org.red5.server.net.remoting.codec.RemotingProtocolEncoder, line 85.
Red5.getConnectionLocal() is returning an RTMPMinaConnection and not a
RemotingConnection for some reason. I'm using RemotingClient in both post-
and
pre-r3895.


On Fri, Nov 6, 2009 at 4:04 PM, Mondain <mondain at gmail.com> wrote:

> Michael,
> Your issue is due to a change that I made to the encoder/decoder classes,
> they all used to implement some common interfaces / classes but now are more
> compact and specific. If youre in the servlet and using an RTMPConnection,
> dont cast it, just use it as is or extend it.
>
> Paul
>
>
> On Fri, Nov 6, 2009 at 1:51 PM, Michael Hollenbeck <
> bigdaddyexlax at gmail.com> wrote:
>
>>
>> There is a bit of weirdness to it, though. I've been using the AMF servlet
>> for inter-application communication with no significant problems. Trying out
>> the trunk post-r3895,  it throws this error:
>>
>> java.lang.ClassCastException: org.red5.server.net.rtmp.RTMPMinaConnection
>> cannot be cast to org.red5.server.api.remoting.IRemotingConnection
>>     at
>> org.red5.server.net.remoting.codec.RemotingProtocolEncoder.encode(RemotingProtocolEncoder.java:85)
>> [red5.jar:na]
>>     at
>> org.red5.server.net.servlet.AMFGatewayServlet.sendResponse(AMFGatewayServlet.java:266)
>> [red5.jar:na]
>>     at
>> org.red5.server.net.servlet.AMFGatewayServlet.serviceAMF(AMFGatewayServlet.java:183)
>> [red5.jar:na]
>>     at
>> org.red5.server.net.servlet.AMFGatewayServlet.service(AMFGatewayServlet.java:119)
>> [red5.jar:na]
>>
>>
>> The culprit being this:
>>
>> IRemotingConnection conn = (IRemotingConnection)
>> Red5.getConnectionLocal();
>>
>> Which works as expected pre-r3895. I wouldn't say it was significant, but
>> it is a trifle weird.
>>
>>
>> On Fri, Nov 6, 2009 at 12:24 PM, Mondain <mondain at gmail.com> wrote:
>>
>>> Yes, it has and is part of the 0.9.0 RC2 release (3 Nov 09). If there are
>>> no significant errors in the next couple days, there will be a 0.9.0 Final
>>> released.
>>>
>>> Paul
>>>
>>>
>>> On Fri, Nov 6, 2009 at 11:14 AM, Sales Department <sales at interalab.com>wrote:
>>>
>>>> Hello again,
>>>>
>>>> Finally had a chance to deploy the timestamp branch from Art Clarke a
>>>> while ago.  Been using it for several weeks without any bad things happening
>>>> :-)
>>>>
>>>> Has the branch been merged into the trunk yet?
>>>> Thanks,
>>>> Bill
>>>>
>>>> _______________________________________________
>>>> Red5 mailing list
>>>> Red5 at osflash.org
>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>
>>>
>>>
>>>
>>> --
>>> http://gregoire.org/
>>> http://code.google.com/p/red5/
>>> http://code.google.com/p/blue5/
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
>
> --
> http://gregoire.org/
> http://code.google.com/p/red5/
> http://code.google.com/p/blue5/
>
> _______________________________________________
> 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/20091106/7bddb00a/attachment.html>


More information about the Red5 mailing list