Neo4j.bat console :Failed to start Neo4j on dbms.connector.http.listen_address, a socket address

Java HotSpot(TM) 64-Bit Server VM warning: Option UseBiasedLocking was deprecated in version 15.0 and will likely be removed in a future release.
2021-03-20 09:51:08.325+0000 INFO Starting...
2021-03-20 09:51:10.380+0000 INFO ======== Neo4j 4.2.4 ========
2021-03-20 09:51:17.084+0000 ERROR Failed to start Neo4j on dbms.connector.http.listen_address, a socket address. If missing port or hostname it is acquired from dbms.default_listen_address.
java.lang.RuntimeException: Error starting Neo4j database server at D:\neo4j\neo4j-community-4.2.4\data\databases
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:207) ~[neo4j-4.2.4.jar:4.2.4]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:163) ~[neo4j-4.2.4.jar:4.2.4]
at org.neo4j.server.CommunityBootstrapper.createNeo(CommunityBootstrapper.java:36) ~[neo4j-4.2.4.jar:4.2.4]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:134) [neo4j-4.2.4.jar:4.2.4]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:90) [neo4j-4.2.4.jar:4.2.4]
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:35) [neo4j-4.2.4.jar:4.2.4]
Suppressed: java.lang.NoClassDefFoundError: Could not initialize class org.neo4j.internal.helpers.Exceptions
at org.neo4j.kernel.lifecycle.LifeSupport.shutdown(LifeSupport.java:188) ~[neo4j-common-4.2.4.jar:4.2.4] at org.neo4j.dbms.database.DatabaseManagementServiceImpl.shutdown(DatabaseManagementServiceImpl.java:131) ~[neo4j-kernel-4.2.4.jar:4.2.4]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:216) ~[neo4j-4.2.4.jar:4.2.4]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:163) ~[neo4j-4.2.4.jar:4.2.4]
at org.neo4j.server.CommunityBootstrapper.createNeo(CommunityBootstrapper.java:36) ~[neo4j-4.2.4.jar:4.2.4]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:134) [neo4j-4.2.4.jar:4.2.4]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:90) [neo4j-4.2.4.jar:4.2.4]
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:35) [neo4j-4.2.4.jar:4.2.4]
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.dbms.database.DefaultSystemGraphInitializer@9accff0' was successfully initialized, but failed to start. Please see the attached cause exception "Could not initialize class org.neo4j.internal.helpers.Exceptions".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:463) ~[neo4j-common-4.2.4.jar:4.2.4]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:110) ~[neo4j-common-4.2.4.jar:4.2.4]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:198) ~[neo4j-4.2.4.jar:4.2.4]
... 5 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.neo4j.internal.helpers.Exceptions
at org.neo4j.dbms.database.SystemGraphComponents.initializeSystemGraph(SystemGraphComponents.java:96) ~[neo4j-kernel-4.2.4.jar:4.2.4]
at org.neo4j.dbms.database.DefaultSystemGraphInitializer.initializeSystemGraph(DefaultSystemGraphInitializer.java:41) ~[neo4j-4.2.4.jar:4.2.4]
at org.neo4j.dbms.database.SystemGraphInitializer.start(SystemGraphInitializer.java:29) ~[neo4j-kernel-4.2.4.jar:4.2.4]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:442) ~[neo4j-common-4.2.4.jar:4.2.4]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:110) ~[neo4j-common-4.2.4.jar:4.2.4]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:198) ~[neo4j-4.2.4.jar:4.2.4]
... 5 more
2021-03-20 09:51:17.096+0000 INFO Neo4j Server shutdown initiated by request
2021-03-20 09:51:17.097+0000 INFO Stopped.

From reading the error message it is trying to access a logical port which is not available to it.
I do not know what operating system you are using and what level of computer knowledge you have so I am going assume you are new to both Neo4j and networking (sorry if I end up talking down to you)

Every network service linstens on its own logical port so for example when you access the web site neo4j.com you are actually accessing neo4j.com:80 because this is the port on which all web servers listen. On your local system the prot will be localhost:80 if you were running a web server.

Neo4j uses default prots as described in link [1] they can be changed but you should start by checking your firewall settings to ensure that the prots are not blocked.
The netstat command on windows and linux is a good way of seeing what ports are open.

If you provide me with more info I might be more usefull to you.
[1] Ports - Operations Manual

i am facing the same issue and i am using windows 10. can somebody help me . i am new to neo4j!

have you tried with lower version of jdk? i had the same problem with jdk 16 so i tried with jdk 15 and it worked. i'm new to neo4j too.

1 Like

Hello all! has a solution been determined to this problem (besides a lower JDK version)?

thanks...I am having the same issue, Windows 10 JDK 16.

Cheers,
Steve

1 Like

Howdy yall...so I just "downgraded" my jdk to 15-0-2, and it works.

cheers..steve

1 Like

FWIW per System requirements - Operations Manual Neo4j supports JDK 11. So its unclear if JDK 16 is the cause of the failure but its certainly not a version that is tested against

1 Like

Thank you for the reminder that JDK 16 was not tested against!

I was able to resolve a similar issue by downgrading my Oracle JDK from 16 to 11 (LTS).

(My resolved issue occurred with Neo4j 4.2.7 enterprise on Windows: a series of failures occurred when starting neo4j console, beginning with a java deprecation warning and "ERROR Failed to start Neo4j on dbms.connector.http.listen_address, a socket address.")

I am facing the same issue: ERROR Failed to start Neo4j on dbms.connector.http.listen_address, a socket address. If missing port or hostname it is acquired from dbms.default_listen_address.

My jdk is 11.0

Posting in case this helps anyone else. I had the same "If missing port or hostname it is acquired from dbms.default_listen_address" error on Neo4j 4.3.3, and was able to resolve it by reverting from the apoc-4.2.0.6-all I had just upgraded back to apoc-4.2.0.2-all. Don't know what the base cause of the error was.

I started getting this message on a new, local database I created yesterday and was working just fine till this afternoon. Other local database instances are running fine. Nothing on my system configuration has changed. The new DB is 4.3.1. What other log info do I need to look at? I probably lost a day of effort if that database is not recoverable.