# Error when using v1.7.x Java driver with Neo4j 4.x

**URL:** <https://community.neo4j.com/t/error-when-using-v1-7-x-java-driver-with-neo4j-4-x/13253>\
**Category:** Drivers & Stacks\
**Created:** [January 1, 2020, 9:13pm UTC](https://community.neo4j.com/t/error-when-using-v1-7-x-java-driver-with-neo4j-4-x/13253 "2020-01-01T21:13:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amad.fida](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/amad.fida/32/308_2.png) [@amad.fida](https://community.neo4j.com/u/amad.fida)\
**Post date:** [January 1, 2020, 9:13pm UTC](https://community.neo4j.com/t/error-when-using-v1-7-x-java-driver-with-neo4j-4-x/13253/1 "2020-01-01T21:13:57Z")

</div>

Trying to connect our existing app using v1.7.5 java driver to neo4j-4.x server but keep getting

```auto
Caused by: 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
	at org.neo4j.driver.internal.util.Futures.blockingGet(Futures.java:123)
	at org.neo4j.driver.internal.DriverFactory.verifyConnectivity(DriverFactory.java:349)
	at org.neo4j.driver.internal.DriverFactory.newInstance(DriverFactory.java:95)
	at org.neo4j.driver.v1.GraphDatabase.driver(GraphDatabase.java:141)
	at org.neo4j.driver.v1.GraphDatabase.driver(GraphDatabase.java:124)

```

Does v1.7.5 suppose to work with neo4j 4.x?

---

<div class="post-metadata">

**Author:** ![koji](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/koji/32/27564_2.png) [@koji](https://community.neo4j.com/u/koji)\
**Post date:** [January 1, 2020, 11:22pm UTC](https://community.neo4j.com/t/error-when-using-v1-7-x-java-driver-with-neo4j-4-x/13253/2 "2020-01-01T23:22:46Z")

</div>

Please use Java Driver 4.0 for Neo4j 4.x.  
Driver 1.7 is compatible with 3.5, 3.4 and 3.3 servers.  
Driver 4.0 is compatible with 4.0, 3.5 servers.  
[https://github.com/neo4j/neo4j-java-driver/wiki](https://github.com/neo4j/neo4j-java-driver/wiki)

---

<div class="post-metadata">

**Author:** ![technige](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/technige/32/979_2.png) [@technige](https://community.neo4j.com/u/technige)\
**Post date:** [February 6, 2020, 10:13am UTC](https://community.neo4j.com/t/error-when-using-v1-7-x-java-driver-with-neo4j-4-x/13253/3 "2020-02-06T10:13:46Z")

</div>

You can absolutely use a 1.x Driver with a 4.x server. This is fully supported.

But bear in mind a couple of caveats if you do:

- You will be working in 3.x fallback mode, so 4.x functionality (e.g. multidatabase) won't be available.
- The default encryption settings have changed, so you will need to set _encrypted=False_ in this combination (Neo4j 4.x no longer ships with a self-signed certificate)
