Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] BoltRoutingNeo4jDriver does not support neo4j+s and neo4j+ssc #248

Closed
fbiville opened this issue Jan 12, 2021 · 2 comments
Closed

Comments

@fbiville
Copy link

This is from a Liquigraph example, using Hikari pool:

Caused by: java.lang.RuntimeException: Driver org.neo4j.jdbc.boltrouting.BoltRoutingNeo4jDriver claims to not accept jdbcUrl, jdbc:neo4j:neo4j+s://HOST
	at com.zaxxer.hikari.util.DriverDataSource.<init>(DriverDataSource.java:110) ~[HikariCP-3.4.5.jar:na]
	at com.zaxxer.hikari.pool.PoolBase.initializeDataSource(PoolBase.java:325) ~[HikariCP-3.4.5.jar:na]
	at com.zaxxer.hikari.pool.PoolBase.<init>(PoolBase.java:114) ~[HikariCP-3.4.5.jar:na]
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:108) ~[HikariCP-3.4.5.jar:na]

Same happens with neo4j+ssc.

I need to double check, but I think the trust.strategy* and encryption need to be not used when using any of the neo4j scheme.

@fbiville
Copy link
Author

fbiville commented Aug 2, 2021

Fixed by 255a55f

@fbiville fbiville closed this as completed Aug 2, 2021
@paolodedo
Copy link

paolodedo commented Aug 4, 2021

Hello, tried with release 4.0.2 but still not working...

Here's pom (only neo4j part, spring boot parent is 2.4.1):

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
    <groupId>org.neo4j</groupId>
    <artifactId>neo4j-jdbc-driver</artifactId>
    <version>4.0.2</version>
</dependency>
<dependency>
    <groupId>org.liquigraph</groupId>
    <artifactId>liquigraph-spring-boot-starter</artifactId>
    <version>4.0.3</version>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-neo4j</artifactId>
</dependency>

Here's config:

spring:
  datasource: 
    url: jdbc:neo4j:neo4j+s://neo4j-instance.com
    driver-class-name: org.neo4j.jdbc.boltrouting.BoltRoutingNeo4jDriver
    username: neo4j
    password: psw

Here's output:

java.sql.SQLException: java.lang.IllegalArgumentException: Illegal URI scheme, expected 'neo4j' in 'neo4j+s://neo4j-instance.com'

Could you please explain me how to make it work?

Thanks 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants