Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

DB-util incompatible with flexipool-spring boot starter #18

Closed
JosRoseboom opened this issue Oct 28, 2020 · 3 comments
Closed

DB-util incompatible with flexipool-spring boot starter #18

JosRoseboom opened this issue Oct 28, 2020 · 3 comments

Comments

@JosRoseboom
Copy link

The flexipool spring boot starter 1.6.2 (https://mvnrepository.com/artifact/com.github.gavlyukovskiy/flexy-pool-spring-boot-starter) does not work with datasource-proxy 1.4.7 , which is the dependency version in the pom of db-util. It will throw a NoClassDefFounderError:

java.lang.NoClassDefFoundError: net/ttddyy/dsproxy/proxy/GlobalConnectionIdManager at com.github.gavlyukovskiy.boot.jdbc.decorator.dsproxy.DataSourceProxyConfiguration.connectionIdManagerProvider(DataSourceProxyConfiguration.java:49) ~[datasource-decorator-spring-boot-autoconfigure-1.6.2.jar:na]

This is because GlobalConnectionIdManager is added in version 1.6.0 of datasource-proxy => https://ttddyy.github.io/datasource-proxy/docs/current/api/net/ttddyy/dsproxy/proxy/GlobalConnectionIdManager.html

When I explicitly added a dependency to version 1.7 of datasource-proxy the problem was gone.

Maybe there are other considerations that make upgrading the dependency not trivial.

@vladmihalcea
Copy link
Owner

Thanks for the hint. I'll check it out and see if I can do an upgrade.

@vladmihalcea
Copy link
Owner

Fixed by this commit.

@vladmihalcea
Copy link
Owner

vladmihalcea commented Oct 28, 2020

I released the 1.0.5 version that uses the 1.6 version of datasource-proxy.

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

No branches or pull requests

2 participants