HELP NEEDED ! RMS error : Exception in thread "main" java.net.BindException: Address already in use

advertik posted 15th of February 2008 in Community Voice. 4 comments.

HI, anyone faced a problem, when server would not start because of "Exception in thread "main" java.net.BindException: Address already in use" error ? I understand that this mean that ports are used, but shure which ports and how can I recofigure the whole set of ports? Could anyone help me ?



[INFO] 2008-02-16 03:39:55,964 main:( org.red5.server.Standalone.main ) RED5 Server (http://www.osflash.org/red5)
[INFO] 2008-02-16 03:39:55,970 main:( org.red5.server.Standalone.main ) Loading red5 global context from: red5.xml
[INFO] 2008-02-16 03:39:55,972 main:( org.red5.server.Standalone.main ) Setting Red5 root to //var/opt/rms
[INFO] 2008-02-16 03:39:55,973 main:( org.red5.server.Standalone.main ) Setting configuation root to /var/opt/rms/conf
[INFO] 2008-02-16 03:39:56,073 main:( org.springframework.context.support.ClassPathXmlApplicationContext.prepareRefresh ) Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@787171: display name [org.springframework.context.support.ClassPathXmlApplicationContext@787171]; startup date [Sat Feb 16 03:39:56 GMT 2008]; root of context hierarchy
[INFO] 2008-02-16 03:39:57,113 main:( org.springframework.context.support.ClassPathXmlApplicationContext.obtainFreshBeanFactory ) Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@787171]: org.springframework.beans.factory.support.DefaultListableBeanFactory@14c1103
[INFO] 2008-02-16 03:39:57,178 main:( org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.loadProperties ) Loading properties file from class path resource [red5.properties]
[INFO] 2008-02-16 03:39:57,187 main:( org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@14c1103: defining beans [placeholderConfig,red5.common,red5.core,context.loader,jetty6.server]; root of factory hierarchy
[INFO] 2008-02-16 03:39:57,214 main:( org.springframework.context.support.FileSystemXmlApplicationContext.prepareRefresh ) Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@110c424: display name [org.springframework.context.support.FileSystemXmlApplicationContext@110c424]; startup date [Sat Feb 16 03:39:57 GMT 2008]; root of context hierarchy
[INFO] 2008-02-16 03:39:57,268 main:( org.springframework.context.support.FileSystemXmlApplicationContext.obtainFreshBeanFactory ) Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext@110c424]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1386918
[INFO] 2008-02-16 03:39:57,313 main:( org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1386918: defining beans [placeholderConfig,red5.server,jmxFactory,jmxAgent,serializer,deserializer,statusObjectService,rtmpCodecFactory,remotingCodecFactory,videoCodecFactory,streamableFileFactory,sharedObjectService,streamService,providerService,consumerService,BWControlService,schedulingService,threadFactory,remotingPool,remotingClient,object.cache,keyframe.cache,flv.impl,flvreader.impl,mp3reader.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean,org.springframework.beans.factory.config.MethodInvokingFactoryBean#1,streamExecutor,playlistSubscriberStream,clientBroadcastStream]; root of factory hierarchy
[INFO] 2008-02-16 03:39:57,387 main:( org.red5.server.jmx.JMXAgent.init ) JMX HTML adapter was not enabled
[INFO] 2008-02-16 03:39:57,408 main:( org.red5.server.jmx.JMXAgent.init ) RMI Registry server was not found on port 9999
[INFO] 2008-02-16 03:39:57,409 main:( org.red5.server.jmx.JMXAgent.init ) Starting an internal RMI registry
[INFO] 2008-02-16 03:39:57,535 main:( org.red5.server.jmx.JMXAgent.init ) JMX RMI connector server successfully started
[INFO] 2008-02-16 03:39:57,697 main:( org.red5.io.StreamableFileFactory.setServices ) StreamableFileFactory set services
[INFO] 2008-02-16 03:39:57,891 main:( org.springframework.context.support.FileSystemXmlApplicationContext.prepareRefresh ) Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@1578aab: display name [org.springframework.context.support.FileSystemXmlApplicationContext@1578aab]; startup date [Sat Feb 16 03:39:57 GMT 2008]; parent: org.springframework.context.support.FileSystemXmlApplicationContext@110c424
[INFO] 2008-02-16 03:39:57,930 main:( org.springframework.context.support.FileSystemXmlApplicationContext.obtainFreshBeanFactory ) Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext@1578aab]: org.springframework.beans.factory.support.DefaultListableBeanFactory@9a9b65
[INFO] 2008-02-16 03:39:57,952 main:( org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.loadProperties ) Loading properties file from class path resource [red5.properties]
[INFO] 2008-02-16 03:39:57,956 main:( org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@9a9b65: defining beans [customEditorConfigurer,placeholderConfig,rtmpHandler,rtmpMinaIoHandler,rtmpTransport,rtmpMinaConnection,rtmptHandler,rtmptServlet,rtmptConnection,rtmpt.server]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1386918
[INFO] 2008-02-16 03:39:57,977 main:( org.red5.server.net.rtmp.RTMPMinaTransport.start ) RTMP Mina Transport Settings
[INFO] 2008-02-16 03:39:57,977 main:( org.red5.server.net.rtmp.RTMPMinaTransport.start ) IO Threads: 2+1
[INFO] 2008-02-16 03:39:57,978 main:( org.red5.server.net.rtmp.RTMPMinaTransport.start ) Event Threads: core: 16+1 max: 32+1 queue: -1 keepalive: 60
[INFO] 2008-02-16 03:39:58,019 main:( org.red5.server.net.rtmp.RTMPMinaTransport.start ) TCP No Delay: false
[INFO] 2008-02-16 03:39:58,020 main:( org.red5.server.net.rtmp.RTMPMinaTransport.start ) Receive Buffer Size: 65536
[INFO] 2008-02-16 03:39:58,020 main:( org.red5.server.net.rtmp.RTMPMinaTransport.start ) Send Buffer Size: 271360
[INFO] 2008-02-16 03:39:58,033 main:( org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons ) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@9a9b65: defining beans [customEditorConfigurer,placeholderConfig,rtmpHandler,rtmpMinaIoHandler,rtmpTransport,rtmpMinaConnection,rtmptHandler,rtmptServlet,rtmptConnection,rtmpt.server]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1386918
[INFO] 2008-02-16 03:39:58,038 main:( org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons ) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@14c1103: defining beans [placeholderConfig,red5.common,red5.core,context.loader,jetty6.server]; root of factory hierarchy
[INFO] 2008-02-16 03:39:58,038 main:( org.springframework.context.support.FileSystemXmlApplicationContext.doClose ) Closing org.springframework.context.support.FileSystemXmlApplicationContext@110c424: display name [org.springframework.context.support.FileSystemXmlApplicationContext@110c424]; startup date [Sat Feb 16 03:39:57 GMT 2008]; root of context hierarchy
[INFO] 2008-02-16 03:39:58,039 main:( org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons ) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1386918: defining beans [placeholderConfig,red5.server,jmxFactory,jmxAgent,serializer,deserializer,statusObjectService,rtmpCodecFactory,remotingCodecFactory,videoCodecFactory,streamableFileFactory,sharedObjectService,streamService,providerService,consumerService,BWControlService,schedulingService,threadFactory,remotingPool,remotingClient,object.cache,keyframe.cache,flv.impl,flvreader.impl,mp3reader.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean,org.springframework.beans.factory.config.MethodInvokingFactoryBean#1,streamExecutor,playlistSubscriberStream,clientBroadcastStream]; root of factory hierarchy
Exception in thread "main" java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind(Native Method)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:365)
        at org.apache.mina.transport.socket.nio.SocketAcceptor.access$900(SocketAcceptor.java:55)
        at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:224)
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:39)
        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)

 
Comments
·Oldest
·Top
Please login to post a comment.
hd4real
I have this problem too. What is the fix?
JoeS
Same thing here, any help?
theoneroom
I get this when JAVA is already running, check your processes for other JRE instances
just restart the process of java .
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
PET:0.04820990562439