问题描述
我的服务器端应用程序完成下面的功能测试Demo:1.循环监听数据库,30分钟查询一次2.手动初始化数据库报警信息为1(也可以不用手动初始化,程序课自动初始化)3.查询到报警信息为1.启动视频流录制函数,录制15分钟的视频(由客户端不间断推送),录制完后将数据库中报警信息置为0;4.查询到报警信息为0,自动将报警信息置为1,30分钟后查到为1的时候可自动录制视频
客户端连接应用程序,应用程序执行过程中打印到Red5-service.log中的问题如下:INFO|jvm1|2013/01/2910:34:28|[WARN][NioProcessor-5]org.red5.server.stream.consumer.FileConsumer-ExceptionwaitingforwriteresultINFO|jvm1|2013/01/2910:34:28|java.util.concurrent.ExecutionException:java.lang.IllegalArgumentExceptionINFO|jvm1|2013/01/2910:34:28|atjava.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232)~[na:1.6.0_24]INFO|jvm1|2013/01/2910:34:28|atjava.util.concurrent.FutureTask.get(FutureTask.java:91)~[na:1.6.0_24]INFO|jvm1|2013/01/2910:34:28|atorg.red5.server.stream.consumer.FileConsumer.pushMessage(FileConsumer.java:285)~[red5.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.red5.server.messaging.InMemoryPushPushPipe.pushMessage(InMemoryPushPushPipe.java:82)[red5.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.red5.server.stream.ClientBroadcastStream.dispatchEvent(ClientBroadcastStream.java:377)[red5.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.red5.server.net.rtmp.BaseRTMPHandler.messageReceived(BaseRTMPHandler.java:168)[red5.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.red5.server.net.rtmp.RTMPMinaIoHandler.messageReceived(RTMPMinaIoHandler.java:164)[red5.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:427)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:245)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.red5.server.net.rtmpe.RTMPEIoFilter.messageReceived(RTMPEIoFilter.java:124)[red5.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:715)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:68)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1141)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atorg.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)[mina-core-2.0.4.jar:na]INFO|jvm1|2013/01/2910:34:28|atjava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[na:1.6.0_24]INFO|jvm1|2013/01/2910:34:28|atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[na:1.6.0_24]INFO|jvm1|2013/01/2910:34:28|atjava.lang.Thread.run(Thread.java:662)[na:1.6.0_24]INFO|jvm1|2013/01/2910:34:28|Causedby:java.lang.IllegalArgumentException:null
不知道大家有没有遇到过,或者帮我看看这是什么原因引起的,是我应用程序的问题,还是Red5服务器本身的问题
解决方案
本帖最后由 hillhaw 于 2013-01-29 14:54:19 编辑
解决方案二:
我也很想知道coremail