>From the exceptions you got: Caused by: java.io.IOException: Function not implemented
It still looks like your red5-start script does not use SUN-JRE-6 maybe you have multiple JRE's on your machine and red5 just uses the wrong one. You should set JAVA_HOME to point to a SUN-JRE-6 (or to the /bin directory of SUN-JRE-6) in the user shell/session who is starting red5 and then start red5 using ./red5.sh Sebastian 2012/2/22 Linas Redeckis <[email protected]> > I dont like long posts with boring logs, of things, that are not > important. so i didnt post it at first : ) > > at first theres alot of [INFO] lines, and compared to the working state, > those are the same. And then goes this one big [ERROR] and exits.. thats > all script says after running. > > > [ERROR] [main] org.apache.mina.core.service.SimpleIoProcessorPool - Failed > to create a new instance of > org.apache.mina.transport.socket.nio.NioProcessor:null > java.lang.reflect.InvocationTargetException: null > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) [na:1.6.0_30] > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown > Source) [na:1.6.0_30] > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) > [na:1.6.0_30] > at java.lang.reflect.Constructor.newInstance(Unknown Source) > [na:1.6.0_30] > at > org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:180) > [mina-core-2.0.4.jar:na] > at > org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:123) > [mina-core-2.0.4.jar:na] > at > org.apache.mina.core.polling.AbstractPollingIoAcceptor.<init>(AbstractPollingIoAcceptor.java:132) > [mina-core-2.0.4.jar:na] > at > org.apache.mina.transport.socket.nio.NioSocketAcceptor.<init>(NioSocketAcceptor.java:73) > [mina-core-2.0.4.jar:na] > at > org.red5.server.net.rtmp.RTMPMinaTransport.start(RTMPMinaTransport.java:102) > [red5.jar:na] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ~[na:1.6.0_30] > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > ~[na:1.6.0_30] > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > ~[na:1.6.0_30] > at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.0_30] > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) > [org.springframework.context-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) > [org.springframework.context-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:140) > [org.springframework.context-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:106) > [org.springframework.context-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) [na:1.6.0_30] > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown > Source) [na:1.6.0_30] > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) > [na:1.6.0_30] > at java.lang.reflect.Constructor.newInstance(Unknown Source) > [na:1.6.0_30] > at > org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) > [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) > [org.springframework.context-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) > [org.springframework.context-3.0.6.RELEASE.jar:3.0.6.RELEASE] > at org.red5.server.Launcher.launch(Launcher.java:64) [red5.jar:na] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ~[na:1.6.0_30] > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > ~[na:1.6.0_30] > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > ~[na:1.6.0_30] > at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.0_30] > at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:118) > [boot.jar:na] > at org.red5.server.Bootstrap.main(Bootstrap.java:49) [boot.jar:na] > Caused by: org.apache.mina.core.RuntimeIoException: Failed to open a > selector. > at > org.apache.mina.transport.socket.nio.NioProcessor.<init>(NioProcessor.java:61) > ~[mina-core-2.0.4.jar:na] > ... 52 common frames omitted > Caused by: java.io.IOException: Function not implemented > at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method) > ~[na:1.6.0_30] > at sun.nio.ch.EPollArrayWrapper.<init>(Unknown Source) > ~[na:1.6.0_30] > at sun.nio.ch.EPollSelectorImpl.<init>(Unknown Source) > ~[na:1.6.0_30] > at sun.nio.ch.EPollSelectorProvider.openSelector(Unknown Source) > ~[na:1.6.0_30] > at java.nio.channels.Selector.open(Unknown Source) ~[na:1.6.0_30] > at > org.apache.mina.transport.socket.nio.NioProcessor.<init>(NioProcessor.java:59) > ~[mina-core-2.0.4.jar:na] > ... 52 common frames omitted > [INFO] [main] > org.springframework.beans.factory.support.DefaultListableBeanFactory - > Destroying singletons in > org.springframework.beans.factory.support.DefaultListableBeanFactory@18eb7b8: > defining beans > [customEditorConfigurer,placeholderConfig,rtmpMinaConnManager,rtmpHandler,rtmpMinaIoHandler,rtmpTransport,rtmpMinaConnection,rtmptConnManager,rtmptHandler,rtmptServlet,rtmptConnection]; > parent: > org.springframework.beans.factory.support.DefaultListableBeanFactory@129b0e1 > [INFO] [main] > org.springframework.beans.factory.support.DefaultListableBeanFactory - > Destroying singletons in > org.springframework.beans.factory.support.DefaultListableBeanFactory@14ae2c1: > defining beans > [placeholderConfig,red5.common,red5.core,context.loader,pluginLauncher,tomcat.server,rtmpt.server]; > root of factory hierarchy > [INFO] [main] > org.springframework.beans.factory.support.DefaultListableBeanFactory - > Destroying singletons in > org.springframework.beans.factory.support.DefaultListableBeanFactory@129b0e1: > defining beans > [placeholderConfig,red5.server,jmxFactory,jmxAgent,serializer,deserializer,statusObjectService,rtmpCodecFactory,rtmptCodecFactory,remotingCodecFactory,streamableFileFactory,filePersistenceThread,sharedObjectService,streamService,providerService,consumerService,schedulingService,warDeployService,remotingClient,object.cache,keyframe.cache,flv.impl,flvreader.impl,mp4reader.impl,mp3reader.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean#0,org.springframework.beans.factory.config.MethodInvokingFactoryBean#1,streamExecutor,fileConsumer,playlistSubscriberStream,clientBroadcastStream]; > root of factory hierarchy > > Exception org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'red5.core' defined in class path resource > [red5.xml]: Instantiation of bean failed; nested exception is > org.springframework.beans.BeanInstantiationException: Could not instantiate > bean class > [org.springframework.context.support.FileSystemXmlApplicationContext]: > Constructor threw exception; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'rtmpTransport' defined in class path resource > [red5-core.xml]: Invocation of init method failed; nested exception is > org.apache.mina.core.RuntimeIoException: Failed to create a new instance of > org.apache.mina.transport.socket.nio.NioProcessor:null > Killed > > > > On Wed, Feb 22, 2012 at 22:44, [email protected] < > [email protected]> wrote: > >> Hi, >> >> root is only required if you have changed red5/openmeetings to run on a >> port below or equal 1200. >> >> Quote: >> >> .. and the some flood of "at org...." >> => this flood as actually what you should be looking at to get an idea >> what might causes the problem. >> Please post the whole exception. >> >> Sebastian >> >> >> 2012/2/22 Mahmut TEKER <[email protected]> >> >>> Hi Linas, >>> >>> I am not sure just a guess (Sebastian could know better) but can you >>> be "root" and try your start script again? (If you are already root, ignore >>> about my guess). >>> >>> Regards, >>> >>> >>> _Mahmut >>> >>> >>> On 2/22/2012 9:49 PM, Linas Redeckis wrote: >>> >>> I use starting script, that comes with Openmeetings. I just "bash >>> red5.sh" from the directory i extracted. >>> >>> The exit output says errors like this: >>> [ERROR] [main] org.apache.mina.core.service.SimpleIoProcessorPool - >>> Failed to create a new instance of >>> org.apache.mina.transport.socket.nio.NioProcessor:null >>> java.lang.reflect.InvocationTargetException: null >>> .. and the some flood of "at org...." lines. and last sentence before >>> "killed" is: >>> Exception org.springframework.beans.factory.BeanCreationException: Error >>> creating bean with name 'red5.core' defined in class path resource >>> [red5.xml]: Instantiation of bean failed; nested exception is >>> org.springframework.beans.BeanInstantiationException: Could not instantiate >>> bean class >>> [org.springframework.context.support.FileSystemXmlApplicationContext]: >>> Constructor threw exception; nested exception is >>> org.springframework.beans.factory.BeanCreationException: Error creating >>> bean with name 'rtmpTransport' defined in class path resource >>> [red5-core.xml]: Invocation of init method failed; nested exception is >>> org.apache.mina.core.RuntimeIoException: Failed to create a new instance of >>> org.apache.mina.transport.socket.nio.NioProcessor:null >>> >>> But this time i use right version of Java, right? >>> >>> On Wed, Feb 22, 2012 at 21:15, [email protected] < >>> [email protected]> wrote: >>> >>>> you might simply have an error in your shell script that starts red5, >>>> you shoudl have a look at the exit message more closely to get an idea what >>>> it might be >>>> >>>> >>>> Sebastian >>>> >>>> 2012/2/22 Linas Redeckis <[email protected]> >>>> >>>>> Thank you, Sebastian. You r always quick with help. >>>>> >>>>> Installed, and now red5.sh doesnt work. Exits with last word "Killed".. >>>>> is this the version i need? >>>>> >>>>> freebsd# java -version >>>>> java version "1.6.0_30" >>>>> Java(TM) SE Runtime Environment (build 1.6.0_30-b12) >>>>> Java HotSpot(TM) Server VM (build 20.5-b03, mixed mode) >>>>> >>>>> found it here, >>>>> http://www.oracle.com/technetwork/java/javase/downloads/jre-6u30-download-1377142.html >>>>> if not, can you tell me, where to get this "Sun-jre-6"? >>>>> (but still very strange, coz before openmeetings worked with diablo, >>>>> also with openjdk) >>>>> >>>>> >>>>> >>>>> On Wed, Feb 22, 2012 at 18:55, [email protected] < >>>>> [email protected]> wrote: >>>>> >>>>>> Or better to say: SUN-JRE-6 >>>>>> >>>>>> Sebastian >>>>>> >>>>>> 2012/2/22 [email protected] <[email protected]> >>>>>> >>>>>> we require SUN-Jre >>>>>>> >>>>>>> Sebastian >>>>>>> >>>>>>> >>>>>>> 2012/2/22 Linas Redeckis <[email protected]> >>>>>>> >>>>>>>> In console i found this: >>>>>>>> >>>>>>>> ---- Debugging information ---- >>>>>>>> message: Cannot construct >>>>>>>> org.openmeetings.app.persistence.beans.basic.RemoteSessionObject as it >>>>>>>> does >>>>>>>> not have a no-args constructor >>>>>>>> cause-exception: >>>>>>>> com.thoughtworks.xstream.converters.reflection.ObjectAccessException >>>>>>>> cause-message: Cannot construct >>>>>>>> org.openmeetings.app.persistence.beans.basic.RemoteSessionObject as it >>>>>>>> does >>>>>>>> not have a no-args constructor >>>>>>>> class: >>>>>>>> org.openmeetings.app.persistence.beans.basic.RemoteSessionObject >>>>>>>> required-type: >>>>>>>> org.openmeetings.app.persistence.beans.basic.RemoteSessionObject >>>>>>>> ------------------------------- >>>>>>>> >>>>>>>> and symptoms are: >>>>>>>> i can connect to OM system directly, but users can't connect >>>>>>>> through Moodle. Client side loads until very end, and then shows >>>>>>>> uninformative error window: "Unknown error, Please tell admin about >>>>>>>> it". >>>>>>>> >>>>>>>> found same thing happening to other guy, but it happened long ago, >>>>>>>> and no fix was provided. Clean server reinstall always works, but i >>>>>>>> cant do >>>>>>>> it this time. >>>>>>>> >>>>>>>> http://www.mail-archive.com/[email protected]/msg07676.html >>>>>>>> http://osdir.com/ml/openmeetings-user/2011-11/msg00037.html >>>>>>>> http://moodle.org/mod/forum/discuss.php?d=193558&parent=843292 >>>>>>>> >>>>>>>> seems like everytime its related to java. in my case everything >>>>>>>> worked fine just month ago. but one day file converting gone bad - >>>>>>>> error >>>>>>>> said it cannot find "java" and so conversion wasnt working. reinstalled >>>>>>>> Ooo, nothing changed. then reintalled diablo-jdk-1.6.0.07.02_18 and >>>>>>>> conversion was ok, but i couldnt connect to rooms through moodle. what >>>>>>>> went >>>>>>>> wrong? im not java nor code guru, so reading those error logs doesnt >>>>>>>> give >>>>>>>> me much information. >>>>>>>> >>>>>>>> also, might be related: on my server i found theres another jdk, >>>>>>>> called "jdk-1.6.0.3p4_28". it installed after apache installation. but >>>>>>>> after i uninstalled diablo, no other java was functional. could not >>>>>>>> call >>>>>>>> "java", could not start "red5.sh". so i dont think this >>>>>>>> "jdk-1.6.0.3p4_28" >>>>>>>> complicates anything.. i chose diablo jdk, because it was asked while >>>>>>>> installing openoffice.org. >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Sebastian Wagner >>>>>>> http://www.openmeetings.de >>>>>>> http://incubator.apache.org/openmeetings/ >>>>>>> http://www.webbase-design.de >>>>>>> http://www.wagner-sebastian.com >>>>>>> [email protected] >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Sebastian Wagner >>>>>> http://www.openmeetings.de >>>>>> http://incubator.apache.org/openmeetings/ >>>>>> http://www.webbase-design.de >>>>>> http://www.wagner-sebastian.com >>>>>> [email protected] >>>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Sebastian Wagner >>>> http://www.openmeetings.de >>>> http://incubator.apache.org/openmeetings/ >>>> http://www.webbase-design.de >>>> http://www.wagner-sebastian.com >>>> [email protected] >>>> >>> >>> >>> >> >> >> -- >> Sebastian Wagner >> http://www.openmeetings.de >> http://incubator.apache.org/openmeetings/ >> http://www.webbase-design.de >> http://www.wagner-sebastian.com >> [email protected] >> > > -- Sebastian Wagner http://www.openmeetings.de http://incubator.apache.org/openmeetings/ http://www.webbase-design.de http://www.wagner-sebastian.com [email protected]
