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

Quarkus 3.10 - Flyway with SQL Server DB failed to compile in native #40551

Closed
Vinche59 opened this issue May 10, 2024 · 2 comments · Fixed by #40552
Closed

Quarkus 3.10 - Flyway with SQL Server DB failed to compile in native #40551

Vinche59 opened this issue May 10, 2024 · 2 comments · Fixed by #40552
Labels
Milestone

Comments

@Vinche59
Copy link
Contributor

Describe the bug

Problem in flyway subsitution with SQL Server database.
Cannot compile in native mode.

Expected behavior

The native compilation should be possible

Actual behavior

Native compilation failed with "return type mismatch"

Error: Return type mismatch: public java.lang.Object io.quarkus.flyway.runtime.graal.SQLServerDatabaseTypeSubstitutions.createDatabase(org.flywaydb.core.api.configuration.Configuration,org.flywaydb.core.internal.jdbc.JdbcConnectionFactory,org.flywaydb.core.internal.jdbc.StatementInterceptor) public org.flywaydb.core.internal.database.base.Database org.flywaydb.database.sqlserver.SQLServerDatabaseType.createDatabase(org.flywaydb.core.api.configuration.Configuration,org.flywaydb.core.internal.jdbc.JdbcConnectionFactory,org.flywaydb.core.internal.jdbc.StatementInterceptor) com.oracle.svm.core.util.UserError$UserException: Return type mismatch: public java.lang.Object io.quarkus.flyway.runtime.graal.SQLServerDatabaseTypeSubstitutions.createDatabase(org.flywaydb.core.api.configuration.Configuration,org.flywaydb.core.internal.jdbc.JdbcConnectionFactory,org.flywaydb.core.internal.jdbc.StatementInterceptor) public org.flywaydb.core.internal.database.base.Database org.flywaydb.database.sqlserver.SQLServerDatabaseType.createDatabase(org.flywaydb.core.api.configuration.Configuration,org.flywaydb.core.internal.jdbc.JdbcConnectionFactory,org.flywaydb.core.internal.jdbc.StatementInterceptor)

How to Reproduce?

Reproducer can be found here : https://github.com/Vinche59/flyawy-sqlserver-native-reproducer

Just try to compile in native: mvn -Pnative clean package

Output of uname -a or ver

Linux Asguard 5.15.0-106-generic #116-Ubuntu SMP Wed Apr 17 09:17:56 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version "22" 2024-03-19 OpenJDK Runtime Environment Temurin-22+36 (build 22+36) OpenJDK 64-Bit Server VM Temurin-22+36 (build 22+36, mixed mode, sharing)

Mandrel or GraalVM version (if different from Java)

Mandrel 24

Quarkus version or git rev

3.10

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.1

Additional information

No response

@Vinche59 Vinche59 added area/native-image kind/bug Something isn't working labels May 10, 2024
@quarkus-bot
Copy link

quarkus-bot bot commented May 10, 2024

/cc @Karm (mandrel), @cristhiank (flyway), @galderz (mandrel), @gastaldi (flyway), @geoand (flyway), @gsmet (flyway), @zakkak (mandrel,native-image)

Vinche59 added a commit to Vinche59/quarkus that referenced this issue May 10, 2024
Fix quarkusio#40551

Signed-off-by: Vinche <sourin-v@bridgestone-bae.com>
@gastaldi
Copy link
Contributor

For the record, this error only happens in Mandrel 24+. I haven't been able to reproduce using GraalVM 21.0.2+13.1, for example

gsmet pushed a commit to Vinche59/quarkus that referenced this issue May 10, 2024
Fix quarkusio#40551

Signed-off-by: Vinche <sourin-v@bridgestone-bae.com>
@quarkus-bot quarkus-bot bot added this to the 3.11 - main milestone May 10, 2024
@gsmet gsmet modified the milestones: 3.11 - main, 3.10.1 May 10, 2024
gsmet pushed a commit to gsmet/quarkus that referenced this issue May 10, 2024
Fix quarkusio#40551

Signed-off-by: Vinche <sourin-v@bridgestone-bae.com>
(cherry picked from commit 09fa724)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants