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: io.helidon.dbclient.jdbc.spi.JdbcConnectionPoolProvider: module io.helidon.dbclient.jdbc does not declare uses #8237

Closed
sdyura opened this issue Jan 15, 2024 · 0 comments · Fixed by #8850
Assignees
Labels
4.x Version 4.x bug Something isn't working DB client Helidon DB Client P2

Comments

@sdyura
Copy link

sdyura commented Jan 15, 2024

Environment Details

  • Helidon Version: 4.0.2
  • Helidon SE or Helidon MP: SE
  • JDK version: 21
  • OS: macOS
  • Docker version (if applicable):

Problem Description

I am trying to upgrade a Helidon 3 project to Helidon 4, but i am blocked by an error message when i try and config the DB

always happens, app it unable to launch

Exception in thread "main" java.util.ServiceConfigurationError: io.helidon.dbclient.jdbc.spi.JdbcConnectionPoolProvider: module io.helidon.dbclient.jdbc does not declare `uses`
	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
	at java.base/java.util.ServiceLoader.checkCaller(ServiceLoader.java:579)
	at java.base/java.util.ServiceLoader.<init>(ServiceLoader.java:507)
	at java.base/java.util.ServiceLoader.load(ServiceLoader.java:1698)
	at io.helidon.dbclient.jdbc@4.0.2/io.helidon.dbclient.jdbc.JdbcConnectionPool.create(JdbcConnectionPool.java:71)
	at io.helidon.config@4.0.2/io.helidon.config.ConfigValues.lambda$create$4(ConfigValues.java:168)
	at io.helidon.config@4.0.2/io.helidon.config.ConfigValues$GenericConfigValueImpl.asOptional(ConfigValues.java:255)
	at io.helidon.common.mapper@4.0.2/io.helidon.common.mapper.OptionalValue.ifPresent(OptionalValue.java:188)
	at io.helidon.dbclient.jdbc@4.0.2/io.helidon.dbclient.jdbc.JdbcClientBuilder.config(JdbcClientBuilder.java:56)
	at io.helidon.dbclient.jdbc@4.0.2/io.helidon.dbclient.jdbc.JdbcClientBuilder.config(JdbcClientBuilder.java:27)
	at io.helidon.dbclient@4.0.2/io.helidon.dbclient.DbClient$Builder.config(DbClient.java:206)
	at io.helidon.dbclient@4.0.2/io.helidon.dbclient.DbClient.builder(DbClient.java:151)

what the error says seems to be true, the file https://github.com/helidon-io/helidon/blob/main/dbclient/jdbc/src/main/java/module-info.java does NOT have a uses for 'io.helidon.dbclient.jdbc.spi.JdbcConnectionPoolProvider' and yet is trying to load it.

Steps to reproduce

trying to setup a connectionPool

db:
  source: jdbc
  connection:
    url: jdbc:postgresql://XXX:5432/postgres
    username: XXX
    password: XXX
    poolName: hikariPool
    initializationFailTimeout: -1
    connectionTimeout: 2000
    maximumPoolSize: 1
    minimumIdle: 0
@sdyura sdyura changed the title io.helidon.dbclient.jdbc.spi.JdbcConnectionPoolProvider: module io.helidon.dbclient.jdbc does not declare uses 4.x: io.helidon.dbclient.jdbc.spi.JdbcConnectionPoolProvider: module io.helidon.dbclient.jdbc does not declare uses Jan 15, 2024
@romain-grecourt romain-grecourt added bug Something isn't working DB client Helidon DB Client 4.x Version 4.x labels Jan 16, 2024
@m0mus m0mus added the P2 label Feb 1, 2024
Captain1653 added a commit to Captain1653/helidon that referenced this issue Jun 6, 2024
… to io.helidon.dbclient.jdbc module (helidon-io#8237)
tomas-langer pushed a commit that referenced this issue Jun 10, 2024
… to io.helidon.dbclient.jdbc module (#8237) (#8850)
@m0mus m0mus added this to Backlog Aug 12, 2024
@m0mus m0mus moved this to Closed in Backlog Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x bug Something isn't working DB client Helidon DB Client P2
Projects
Archived in project
5 participants