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

Bug in JDBC URL for H2 when generating from starter or Helidon CLI #8048

Closed
hyder opened this issue Nov 21, 2023 · 1 comment
Closed

Bug in JDBC URL for H2 when generating from starter or Helidon CLI #8048

hyder opened this issue Nov 21, 2023 · 1 comment
Assignees
Labels

Comments

@hyder
Copy link

hyder commented Nov 21, 2023

"A slash is missing in the JDBC url when using the H2 database"

Environment Details

  • Helidon Version: 4.0.0
  • Helidon SE or Helidon MP: SE
  • JDK version: Java(TM) SE Runtime Environment Oracle GraalVM 21.0.1+12.1 (build 21.0.1+12-jvmci-23.1-b19)
  • OS: WSL on Windows
  • Docker version (if applicable): NA

Problem Description

The currently generated url for H2 is url: "jdbc:h2:tcp://localhost:9092/~test".

This is incorrect and results in the application unable to connect to the H2 database.
The correct URL is "jdbc:h2:tcp://localhost:9092/~/test"

Steps to reproduce

  • Generate a project using either the CLI or the starter and select H2 as database.
  • Start the application. This will result in failed connections.
  • Add the missing slash before the database name. The application will now start properly
@tvallin tvallin self-assigned this Nov 23, 2023
@tvallin
Copy link
Member

tvallin commented Nov 23, 2023

This issue is fixed by #7877 and will be part of 4.0.1 release.

@tvallin tvallin closed this as completed Nov 23, 2023
@tvallin tvallin added archetypes 4.x Version 4.x labels Nov 23, 2023
@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
Projects
Archived in project
Development

No branches or pull requests

2 participants