A couple of days ago after a restart of my Mac (OSX 10.15.2) Neo4j Desktop prompted me to update.
The upgraded version would not start because it requires Java 11. I have now installed Java 11 (and fixed the various issues in the code relating to that).
There was another problem with starting Neo4j Desktop after letting it perform the upgrade (which is not the subject of this post) and so I uninstalled and downloaded afresh and reinstalled. I am now running Neo4j Desktop Version 126.96.36.1991. The browser refused to connect to the existing database so I deleted it and created a new one.
I am now able to view the new database through the browser, however when I try to start up my Spring Boot application I get the following error:
org.neo4j.driver.v1.exceptions.ServiceUnavailableException: Connection to the database terminated. This can happen due to network instabilities, or due to restarts of the database
I can still connect correctly to a remote database without any problems.
Here are my project's dependencies:
<dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j</artifactId> <version>3.5.12</version> </dependency> <dependency> <groupId>org.neo4j.driver</groupId> <artifactId>neo4j-java-driver</artifactId> <version>1.7.5</version> </dependency>
The failure happens at the point where the code tries to obtain a database driver:
databaseDriver = GraphDatabase.driver(connectionURL, AuthTokens.basic(username, password));
Please advise how I can get my Spring Boot application talking to my local database again.