[Red5] Easy way to test IExternalizable classes with ByteArray?
Christopher Walzl
cwalzl at gmail.com
Thu Oct 16 16:58:50 PDT 2008
Tyler,
That may be because there is no data written to the ByteArray instance?
Also, are you trying to send the ByteArray over AMF3? That currently
isn't working...I created a ticket in jira to go along with the one
Prabhu T. had entered. (http://jira.red5.org/browse/APPSERVER-308 )
Chris Walzl
cwalzl at gmail.com
(972) 974-6728
Sent from my MacBook Pro
On Oct 16, 2008, at 6:47 PM, Tyler Kocheran wrote:
> Is there something I need to provide the ByteArray to make this work?
>
> On Thu, Oct 16, 2008 at 10:21 AM, Tyler Kocheran
> <rfkrocktk at gmail.com> wrote:
> I'm fooling around with externalizable classes again and I'm
> wondering if there's a simple way to test them without having to
> code the clientside equivalent, create a new Red5 project, fire up
> the server, and do it at runtime. I thought I'd be able to do
> something like this in a testing class (via the main() static method):
>
> JAVA:
> ByteArray byteArray = new ByteArray();
> IExternalizable externalInstance = new ExternalClassTest();
> try {
> externalInstance.writeExternal(byteArray);
> externalInstance.readExternal(byteArray);
> } catch (Exception e) {
> e.printStackTrace();
> }
>
> Every time I run this, I get a java.nio.BufferUnderflowException.
> Is there an easy way to do what I want without firing up the server?
>
> --
> And do this, knowing the time, that now it is high time to awake out
> of sleep;
> for now our salvation is nearer than when we first believed.
>
>
>
> --
> And do this, knowing the time, that now it is high time to awake out
> of sleep;
> for now our salvation is nearer than when we first believed.
> _______________________________________________
> 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/20081016/679472a9/attachment.html
More information about the Red5
mailing list