You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we use [org.red5.server.so.SharedObject.sendMessage()」function to send data of ByteArray to client in the red5 server,
sometimes it shows [ERROR o.r.s.n.r.codec.RTMPProtocolEncoder - Error encoding object: java.lang.IllegalArgumentException: null] in red5.log file
Could you please help check how to solve this problem?
Environment
[] Operating system and version: Red Hat Enterprise Linux5
[] Java version: jdk1.6.0_30
[] Red5 version: Red5 Server 1.0.1 $Rev: 4450 $
[] Client Version: ActionScript 4.0
[] AMF Version: AMF3
Code
public void setBackgroundImage(ByteArray backgroudImage, int width, int height) {
// call flash function
List<Object> arguments = new ArrayList<Object>();
arguments.add(backgroudImage);
arguments.add(width);
arguments.add(height);
whiteBoardSO.sendMessage("setBackgroundImage", arguments);
}
Logs
[SharedObjectThread-2] ERROR o.r.s.n.r.codec.RTMPProtocolEncoder - Error encoding object:
java.lang.IllegalArgumentException: null
at java.nio.Buffer.position(Buffer.java:216) ~[na:1.6.0_30]
at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:129) ~[na:1.6.0_30]
at org.apache.mina.core.buffer.AbstractIoBuffer.get(AbstractIoBuffer.java:615) ~[mina-core-2.0.7.jar:na]
at org.apache.mina.core.buffer.AbstractIoBuffer.get(AbstractIoBuffer.java:1321) ~[mina-core-2.0.7.jar:na]
at org.red5.io.amf3.Output.writeByteArray(Output.java:534) ~[red5-server-1.0.jar:na]
at org.red5.io.object.Serializer.serialize(Serializer.java:80) ~[red5-server-1.0.jar:na]
at org.red5.io.object.Serializer.serialize(Serializer.java:60) ~[red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.doEncodeSharedObject(RTMPProtocolEncoder.java:691) ~[red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.encodeFlexSharedObject(RTMPProtocolEncoder.java:597) ~[red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.encodeMessage(RTMPProtocolEncoder.java:543) ~[red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.encodePacket(RTMPProtocolEncoder.java:147) ~[red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.encode(RTMPProtocolEncoder.java:119) ~[red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.codec.RTMPMinaProtocolEncoder.encode(RTMPMinaProtocolEncoder.java:48) [red5-server-1.0.jar:na]
at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:308) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:482) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1400(DefaultIoFilterChain.java:47) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:775) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:705) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:482) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:475) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:494) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:439) [mina-core-2.0.7.jar:na]
at org.red5.server.net.rtmp.RTMPMinaConnection.write(RTMPMinaConnection.java:308) [red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.Channel.write(Channel.java:136) [red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.Channel.write(Channel.java:105) [red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.RTMPConnection.sendSharedObjectMessage(RTMPConnection.java:983) [red5-server-1.0.jar:na]
at org.red5.server.so.SharedObject$1.run(SharedObject.java:332) [red5-server-1.0.jar:na]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_30]
at java.lang.Thread.run(Thread.java:662) [na:1.6.0_30]
The text was updated successfully, but these errors were encountered:
Issue
Short description
When we use [org.red5.server.so.SharedObject.sendMessage()」function to send data of ByteArray to client in the red5 server,
sometimes it shows [ERROR o.r.s.n.r.codec.RTMPProtocolEncoder - Error encoding object: java.lang.IllegalArgumentException: null] in red5.log file
Could you please help check how to solve this problem?
Environment
[] Operating system and version: Red Hat Enterprise Linux5$Rev: 4450 $
[] Java version: jdk1.6.0_30
[] Red5 version: Red5 Server 1.0.1
[] Client Version: ActionScript 4.0
[] AMF Version: AMF3
Code
Logs
[SharedObjectThread-2] ERROR o.r.s.n.r.codec.RTMPProtocolEncoder - Error encoding object:
java.lang.IllegalArgumentException: null
at java.nio.Buffer.position(Buffer.java:216) ~[na:1.6.0_30]
at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:129) ~[na:1.6.0_30]
at org.apache.mina.core.buffer.AbstractIoBuffer.get(AbstractIoBuffer.java:615) ~[mina-core-2.0.7.jar:na]
at org.apache.mina.core.buffer.AbstractIoBuffer.get(AbstractIoBuffer.java:1321) ~[mina-core-2.0.7.jar:na]
at org.red5.io.amf3.Output.writeByteArray(Output.java:534) ~[red5-server-1.0.jar:na]
at org.red5.io.object.Serializer.serialize(Serializer.java:80) ~[red5-server-1.0.jar:na]
at org.red5.io.object.Serializer.serialize(Serializer.java:60) ~[red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.doEncodeSharedObject(RTMPProtocolEncoder.java:691) ~[red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.encodeFlexSharedObject(RTMPProtocolEncoder.java:597) ~[red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.encodeMessage(RTMPProtocolEncoder.java:543) ~[red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.encodePacket(RTMPProtocolEncoder.java:147) ~[red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.encode(RTMPProtocolEncoder.java:119) ~[red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.codec.RTMPMinaProtocolEncoder.encode(RTMPMinaProtocolEncoder.java:48) [red5-server-1.0.jar:na]
at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:308) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:482) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1400(DefaultIoFilterChain.java:47) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:775) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:705) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:482) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:475) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:494) [mina-core-2.0.7.jar:na]
at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:439) [mina-core-2.0.7.jar:na]
at org.red5.server.net.rtmp.RTMPMinaConnection.write(RTMPMinaConnection.java:308) [red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.Channel.write(Channel.java:136) [red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.Channel.write(Channel.java:105) [red5-server-1.0.jar:na]
at org.red5.server.net.rtmp.RTMPConnection.sendSharedObjectMessage(RTMPConnection.java:983) [red5-server-1.0.jar:na]
at org.red5.server.so.SharedObject$1.run(SharedObject.java:332) [red5-server-1.0.jar:na]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_30]
at java.lang.Thread.run(Thread.java:662) [na:1.6.0_30]
The text was updated successfully, but these errors were encountered: