java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection timed out]

Google Groups | Sergey Gerasimenko | 4 months ago
  1. 0

    A clean install of 1.0 on Ubuntu 14.04 results in red5 errors

    Google Groups | 4 months ago | Sergey Gerasimenko
    java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection timed out]
  2. 0
    Your firewall blocks the connection, disable it.
  3. 0
    DoS protection blocks your client after a certain amount of requests.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Check if your MongoDB is available.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.net.ConnectException

      Connection timed out

      at java.net.PlainSocketImpl.socketConnect()
    2. Java RT
      RMIConnectorServer.start
      1. java.net.PlainSocketImpl.socketConnect(Native Method)[na:1.7.0_111]
      2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)[na:1.7.0_111]
      3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)[na:1.7.0_111]
      4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)[na:1.7.0_111]
      5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[na:1.7.0_111]
      6. java.net.Socket.connect(Socket.java:579)[na:1.7.0_111]
      7. java.net.Socket.connect(Socket.java:528)[na:1.7.0_111]
      8. java.net.Socket.<init>(Socket.java:425)[na:1.7.0_111]
      9. java.net.Socket.<init>(Socket.java:208)[na:1.7.0_111]
      10. sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)[na:1.7.0_111]
      11. sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:147)[na:1.7.0_111]
      12. sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)[na:1.7.0_111]
      13. sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)[na:1.7.0_111]
      14. sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)[na:1.7.0_111]
      15. sun.rmi.server.UnicastRef.newCall(UnicastRef.java:341)[na:1.7.0_111]
      16. sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)[na:1.7.0_111]
      17. com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:137)[na:1.7.0_111]
      18. com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:226)[na:1.7.0_111]
      19. javax.naming.InitialContext.bind(InitialContext.java:419)[na:1.7.0_111]
      20. javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:643)[na:1.7.0_111]
      21. javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:426)[na:1.7.0_111]
      21 frames
    3. Spring Context
      ConnectorServerFactoryBean.afterPropertiesSet
      1. org.springframework.jmx.support.ConnectorServerFactoryBean.afterPropertiesSet(ConnectorServerFactoryBean.java:188)[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      1 frame
    4. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      9. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:736)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      9 frames
    5. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      2 frames
    6. Red5
      Red5ApplicationContext.refresh
      1. org.red5.spring.Red5ApplicationContext.refresh(Red5ApplicationContext.java:36)[red5-server.jar:na]
      1 frame
    7. Spring Context
      AbstractRefreshableConfigApplicationContext.afterPropertiesSet
      1. org.springframework.context.support.AbstractRefreshableConfigApplicationContext.afterPropertiesSet(AbstractRefreshableConfigApplicationContext.java:151)[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      1 frame
    8. Red5
      Red5ApplicationContext.afterPropertiesSet
      1. org.red5.spring.Red5ApplicationContext.afterPropertiesSet(Red5ApplicationContext.java:30)[red5-server.jar:na]
      1 frame
    9. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      9. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      9 frames
    10. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      2 frames
    11. Red5
      Launcher.launch
      1. org.red5.server.Launcher.launch(Launcher.java:69)[red5-server.jar:na]
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_111]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_111]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_111]
      4. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_111]
      4 frames
    13. Red5
      Bootstrap.main
      1. org.red5.server.Bootstrap.bootStrap(Bootstrap.java:123)[red5-service.jar:na]
      2. org.red5.server.Bootstrap.main(Bootstrap.java:48)[red5-service.jar:na]
      2 frames