java.net.BindException: Address already in use: JVM_Bind

Atlassian JIRA | Wayne Wong [Atlassian] | 3 years ago
  1. 0

    h6. Steps to Replicate # Install Confluence on a platform that has not installed confluence before(or the home directory is never setted like the default path) with atlassian-confluence-5.5-RC1-x64 (confluence.home = C:\\Program Files\\Atlassian\\Application Data\\Confluence is not exist inside the platform) # Click on Custom Install but never change anything for the setting !1.PNG|thumbnail! !2.PNG|thumbnail! !3.PNG|thumbnail! !4.PNG|thumbnail! {code} 2014-04-21 17:04:02,968 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\Program Files\Atlassian\Application Data\Confluence\confluence.cfg.xml173205289539741063tmp to C:\Program Files\Atlassian\Application Data\Confluence\confluence.cfg.xml. Falling back to non-atomic overwrite. 2014-04-21 17:04:03,305 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] init Initialising the plugin system 2014-04-21 17:04:03,389 WARN [localhost-startStop-1] [org.twdata.pkgscanner.InternalScanner] findInPackage Unable to find any resources for package 'bucket*' 2014-04-21 17:04:04,020 WARN [localhost-startStop-1] [org.twdata.pkgscanner.InternalScanner] findInPackage Unable to find any resources for package 'org/xml' 2014-04-21 17:04:08,254 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] init Plugin system started in 0:00:04.947 2014-04-21 17:04:09,030 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] init Confluence is ready to serve 2014-04-21 17:04:09,117 FATAL [localhost-startStop-1] [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set 2014-04-21 17:04:09,162 WARN [localhost-startStop-1] [atlassian.confluence.plugin.PluginFrameworkContextListener] contextDestroyed Failed to shut down plugin system during ServletContext shutdown: Spring Application context has not been set 2014-04-21 17:04:09,162 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextDestroyed Stopping Confluence 2014-04-21 17:04:09,164 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] shutdown Shutting down the plugin system {code} {code} Apr 21, 2014 5:03:46 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Tomcat-Standalone Apr 21, 2014 5:03:46 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.47 Apr 21, 2014 5:04:09 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-5500"] Apr 21, 2014 5:04:09 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 22629 ms Apr 21, 2014 5:04:09 PM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[localhost:8000]: java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source) at java.net.AbstractPlainSocketImpl.bind(Unknown Source) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at org.apache.catalina.core.StandardServer.await(StandardServer.java:427) at org.apache.catalina.startup.Catalina.await(Catalina.java:779) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456) Apr 21, 2014 5:04:09 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["http-bio-5500"] Apr 21, 2014 5:04:09 PM org.apache.catalina.core.StandardService stopInternal INFO: Stopping service Tomcat-Standalone Apr 21, 2014 5:04:09 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [] registered the JDBC driver [org.hsqldb.jdbc.JDBCDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Apr 21, 2014 5:04:09 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Apr 21, 2014 5:04:09 PM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler ["http-bio-5500"] Apr 21, 2014 5:04:09 PM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler ["http-bio-5500"] {code} !init-properties.PNG|thumbnail! It have total 4 defined home directory inside confluence-init.properties Command out the rest but left the last one will fix the error

    Atlassian JIRA | 3 years ago | Wayne Wong [Atlassian]
    java.net.BindException: Address already in use: JVM_Bind
  2. 0

    *Steps to Replicate* # Install Confluence on a platform that has not installed confluence before (or the home directory is never set like the default path). Tested using atlassian-confluence-5.5-RC1 x32 and x64 # Ensure that the default confluence.home directory does not exist in the platform yet: {code} confluence.home = C:\\Program Files\\Atlassian\\Application Data\\Confluence {code} # Click on Custom Install but do not change any of the default settings (Just confirmed that it occurs also for *express install*) !1.PNG|thumbnail! !2.PNG|thumbnail! !3.PNG|thumbnail! !4.PNG|thumbnail! *atlassian-confluence.log* {code} 2014-04-21 17:04:02,968 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\Program Files\Atlassian\Application Data\Confluence\confluence.cfg.xml173205289539741063tmp to C:\Program Files\Atlassian\Application Data\Confluence\confluence.cfg.xml. Falling back to non-atomic overwrite. 2014-04-21 17:04:03,305 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] init Initialising the plugin system 2014-04-21 17:04:03,389 WARN [localhost-startStop-1] [org.twdata.pkgscanner.InternalScanner] findInPackage Unable to find any resources for package 'bucket*' 2014-04-21 17:04:04,020 WARN [localhost-startStop-1] [org.twdata.pkgscanner.InternalScanner] findInPackage Unable to find any resources for package 'org/xml' 2014-04-21 17:04:08,254 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] init Plugin system started in 0:00:04.947 2014-04-21 17:04:09,030 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] init Confluence is ready to serve 2014-04-21 17:04:09,117 FATAL [localhost-startStop-1] [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set 2014-04-21 17:04:09,162 WARN [localhost-startStop-1] [atlassian.confluence.plugin.PluginFrameworkContextListener] contextDestroyed Failed to shut down plugin system during ServletContext shutdown: Spring Application context has not been set 2014-04-21 17:04:09,162 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextDestroyed Stopping Confluence 2014-04-21 17:04:09,164 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] shutdown Shutting down the plugin system {code} *catalina.log* {code} Apr 21, 2014 5:03:46 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Tomcat-Standalone Apr 21, 2014 5:03:46 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.47 Apr 21, 2014 5:04:09 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-5500"] Apr 21, 2014 5:04:09 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 22629 ms Apr 21, 2014 5:04:09 PM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[localhost:8000]: java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source) at java.net.AbstractPlainSocketImpl.bind(Unknown Source) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at org.apache.catalina.core.StandardServer.await(StandardServer.java:427) at org.apache.catalina.startup.Catalina.await(Catalina.java:779) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456) Apr 21, 2014 5:04:09 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["http-bio-5500"] Apr 21, 2014 5:04:09 PM org.apache.catalina.core.StandardService stopInternal INFO: Stopping service Tomcat-Standalone Apr 21, 2014 5:04:09 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [] registered the JDBC driver [org.hsqldb.jdbc.JDBCDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Apr 21, 2014 5:04:09 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Apr 21, 2014 5:04:09 PM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler ["http-bio-5500"] Apr 21, 2014 5:04:09 PM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler ["http-bio-5500"] {code} !init-properties.PNG|thumbnail! It has a total of 4 home directories defined inside *confluence-init.properties*. The multiple home dirs is not a new problem in Confluence, however this time it seems to be blocking the startup. As mentioned by [~dnorton@atlassian.com] in the comments below, fixing up confluence-init.properties so it only has one confluence.home entry allows Confluence to be started correctly. *Impact* The Confluence Service does not start automatically OR manually. *Workaround* Comment out all the confluence.home entries, leaving only 1 entry uncommented

    Atlassian JIRA | 3 years ago | Wayne Wong [Atlassian]
    java.net.BindException: Address already in use: JVM_Bind
  3. 0

    h6. Steps to Replicate # Install Confluence on a platform that has not installed confluence before(or the home directory is never setted like the default path) with atlassian-confluence-5.5-RC1-x64 (confluence.home = C:\\Program Files\\Atlassian\\Application Data\\Confluence is not exist inside the platform) # Click on Custom Install but never change anything for the setting !1.PNG|thumbnail! !2.PNG|thumbnail! !3.PNG|thumbnail! !4.PNG|thumbnail! {code} 2014-04-21 17:04:02,968 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\Program Files\Atlassian\Application Data\Confluence\confluence.cfg.xml173205289539741063tmp to C:\Program Files\Atlassian\Application Data\Confluence\confluence.cfg.xml. Falling back to non-atomic overwrite. 2014-04-21 17:04:03,305 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] init Initialising the plugin system 2014-04-21 17:04:03,389 WARN [localhost-startStop-1] [org.twdata.pkgscanner.InternalScanner] findInPackage Unable to find any resources for package 'bucket*' 2014-04-21 17:04:04,020 WARN [localhost-startStop-1] [org.twdata.pkgscanner.InternalScanner] findInPackage Unable to find any resources for package 'org/xml' 2014-04-21 17:04:08,254 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] init Plugin system started in 0:00:04.947 2014-04-21 17:04:09,030 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] init Confluence is ready to serve 2014-04-21 17:04:09,117 FATAL [localhost-startStop-1] [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set 2014-04-21 17:04:09,162 WARN [localhost-startStop-1] [atlassian.confluence.plugin.PluginFrameworkContextListener] contextDestroyed Failed to shut down plugin system during ServletContext shutdown: Spring Application context has not been set 2014-04-21 17:04:09,162 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextDestroyed Stopping Confluence 2014-04-21 17:04:09,164 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] shutdown Shutting down the plugin system {code} {code} Apr 21, 2014 5:03:46 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Tomcat-Standalone Apr 21, 2014 5:03:46 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.47 Apr 21, 2014 5:04:09 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-5500"] Apr 21, 2014 5:04:09 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 22629 ms Apr 21, 2014 5:04:09 PM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[localhost:8000]: java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source) at java.net.AbstractPlainSocketImpl.bind(Unknown Source) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at org.apache.catalina.core.StandardServer.await(StandardServer.java:427) at org.apache.catalina.startup.Catalina.await(Catalina.java:779) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456) Apr 21, 2014 5:04:09 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["http-bio-5500"] Apr 21, 2014 5:04:09 PM org.apache.catalina.core.StandardService stopInternal INFO: Stopping service Tomcat-Standalone Apr 21, 2014 5:04:09 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [] registered the JDBC driver [org.hsqldb.jdbc.JDBCDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Apr 21, 2014 5:04:09 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Apr 21, 2014 5:04:09 PM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler ["http-bio-5500"] Apr 21, 2014 5:04:09 PM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler ["http-bio-5500"] {code} !init-properties.PNG|thumbnail! It have total 4 defined home directory inside confluence-init.properties Command out the rest but left the last one will fix the error

    Atlassian JIRA | 3 years ago | Wayne Wong [Atlassian]
    java.net.BindException: Address already in use: JVM_Bind
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Java How To ...: Tomcat startup failed: Address already in use: JVM_Bind

    blogspot.com | 3 months ago
    java.net.BindException: Address already in use: JVM_Bind
  6. 0

    Start two or more Tomcat instances on localhost machine – CodingpediaOrg

    codingpedia.org | 5 months ago
    java.net.BindException: Address already in use: JVM_Bind

  1. jedcua 1 times, last 4 months ago
  2. Justin 2 times, last 4 months ago
  3. iridic 1 times, last 2 weeks ago
  4. linxiaolong 1 times, last 4 months ago
26 unregistered visitors
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.BindException

    Address already in use: JVM_Bind

    at java.net.DualStackPlainSocketImpl.bind0()
  2. Java RT
    ServerSocket.<init>
    1. java.net.DualStackPlainSocketImpl.bind0(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
    3. java.net.AbstractPlainSocketImpl.bind(Unknown Source)
    4. java.net.PlainSocketImpl.bind(Unknown Source)
    5. java.net.ServerSocket.bind(Unknown Source)
    6. java.net.ServerSocket.<init>(Unknown Source)
    6 frames
  3. Glassfish Core
    Catalina.start
    1. org.apache.catalina.core.StandardServer.await(StandardServer.java:427)
    2. org.apache.catalina.startup.Catalina.await(Catalina.java:779)
    3. org.apache.catalina.startup.Catalina.start(Catalina.java:725)
    3 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  5. Glassfish Core
    Bootstrap.main
    1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
    2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)
    2 frames