umair-khokhar / red5-screenshare

Automatically exported from code.google.com/p/red5-screenshare
1 stars 0 forks source link

Red5 Exception on Publish #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When i start broadcast with red5-screenshare.
I get this errors from red5;

[INFO] [NioProcessor-1] org.red5.server.net.rtmp.RTMPHandler - Connecting to: 
[WebScope@1ab7626 Depth = 1, Path = '/default', Name = 'oflaDemo']
[INFO] [NioProcessor-1] org.red5.server.stream.ClientBroadcastStream - Provider 
connect
[WARN] [NioProcessor-1] org.red5.server.stream.StreamService - Exception on 
publish
java.lang.NullPointerException: null
        at org.red5.server.stream.ClientBroadcastStream.sendPublishStartNotify(ClientBroadcastStream.java:649) [red5.jar:na]
        at org.red5.server.stream.ClientBroadcastStream.sendStartNotifications(ClientBroadcastStream.java:743) [red5.jar:na]
        at org.red5.server.stream.ClientBroadcastStream.startPublishing(ClientBroadcastStream.java:792) [red5.jar:na]
        at org.red5.server.stream.StreamService.publish(StreamService.java:451) [red5.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_19]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_19]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_19]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_19]
        at org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:200) [red5.jar:na]
        at org.red5.server.net.rtmp.RTMPHandler.invokeCall(RTMPHandler.java:186) [red5.jar:na]
        at org.red5.server.net.rtmp.RTMPHandler.onInvoke(RTMPHandler.java:395) [red5.jar:na]
        at org.red5.server.net.rtmp.BaseRTMPHandler.messageReceived(BaseRTMPHandler.java:138) [red5.jar:na]
        at org.red5.server.net.rtmp.RTMPMinaIoHandler.messageReceived(RTMPMinaIoHandler.java:180) [red5.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:713) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793) [mina-core-2.0.0-RC1.jar:na]
        at org.red5.server.net.filter.TrafficShapingFilter.messageReceived(TrafficShapingFilter.java:204) [red5.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:375) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:229) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:638) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:598) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:587) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:61) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:969) [mina-core-2.0.0-RC1.jar:na]
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) [mina-core-2.0.0-RC1.jar:na]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_19]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_19]
        at java.lang.Thread.run(Thread.java:619) [na:1.6.0_19]

Original issue reported on code.google.com by kaanozdincer on 21 Dec 2010 at 10:56

GoogleCodeExporter commented 9 years ago
Upgrade to latest version. Your version is no more supported

Original comment by olat...@gmail.com on 30 Dec 2010 at 10:02

GoogleCodeExporter commented 9 years ago
I try this on 0.9.0, 0.9.1, and 1.0.0 versions of red5 and i got same 
exceptions...

Original comment by kaanozdincer on 30 Dec 2010 at 10:05

GoogleCodeExporter commented 9 years ago
Hi again;

I fixed error like that;
I downloaded to source code of red5-0.8.0, change 
org.red5.server.stream.ClientBroadcastStream file as;

private void sendPublishStartNotify() {
+++ if (connMsgOut == null) start();
Status publishStatus = new Status(StatusCodes.NS_PUBLISH_START);
publishStatus.setClientid(getStreamId());
publishStatus.setDetails(getPublishedName());

StatusMessage startMsg = new StatusMessage();
startMsg.setBody(publishStatus);
try {
connMsgOut.pushMessage(startMsg);
} catch (IOException err) {
log.error("Error while pushing message.", err);
}
} 

and build red5 with ant. (ant clean dist)

Thanks...

Original comment by kaanozdincer on 31 Dec 2010 at 12:32