[Red5] Problems with AMF3 types in RED5 (ByteArray)
Stanislaw Fiedor
stfurca at wp.pl
Thu Aug 30 02:39:57 PDT 2007
Hi Joachim,
wow that was fast ;)
but as I understand I the server function should look like that:
public ByteArray lolek(ByteArray byteArr) {
return byteArr;
}
Unfortunatelly I still get some errors:
[ERROR] 2007-08-30 11:30:36,765 pool-3-thread-5:(
org.red5.server.service.ServiceInvoker.invoke ) Error executing call:
Service: null Method: lolek Num Params: 10: ??
[ERROR] 2007-08-30 11:30:36,781 pool-3-thread-5:(
org.red5.server.service.ServiceInvoker.invoke ) Service invocation error
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:184)
at org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:118)
at org.red5.server.net.rtmp.RTMPHandler.invokeCall(RTMPHandler.java:163)
at org.red5.server.net.rtmp.RTMPHandler.onInvoke(RTMPHandler.java:431)
at
org.red5.server.net.rtmp.BaseRTMPHandler.messageReceived(BaseRTMPHandler.java:143)
at
org.red5.server.net.rtmp.RTMPMinaIoHandler.messageReceived(RTMPMinaIoHandler.java:120)
at
org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:570)
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.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:220)
at
org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:264)
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.NullPointerException
at org.apache.mina.common.ByteBuffer.get(ByteBuffer.java:498)
at org.red5.io.amf3.DataInput.readBytes(DataInput.java:81)
at org.red5.io.amf3.ByteArray.readBytes(ByteArray.java:206)
at pl.fiedor.Application.lolek(Application.java:63)
... 19 more
the ?? signs are the "hello" bytes from the test app
Any idea what's the problem?
----- Original Message -----
From: "Joachim Bauch" <jojo at struktur.de>
To: <red5 at osflash.org>
Sent: Wednesday, August 29, 2007 11:33 PM
Subject: Re: [Red5] Problems with AMF3 types in RED5 (ByteArray)
> Hi Stanislaw,
>
> Stanislaw Fiedor schrieb:
>> you can find the issue and a source file under:
>> http://jira.red5.org/browse/APPSERVER-189
>
> thanks, initial support for "ByteArray" objects is available in r2260.
> Should be pretty much feature complete, including compression and
> decompression. Objects are deserialized as instances of the class
> "org.red5.io.amf3.ByteArray". Please let me know if something is missing.
>
> Have fun ;)
>
> Joachim
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
More information about the Red5
mailing list