snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Mssql extensions fails in native mode with a `ClassNotFoundException` #451

Closed snowdrop-bot closed 2 years ago

snowdrop-bot commented 2 years ago

Describe the bug

Quarkus Upstream: 999-SNAPSHOT

When I try to create/update a table through Flyway and mssql I am getting the following error in native mode:

22:18:42,150 INFO  [app] 22:18:39,195 Database: jdbc:sqlserver://localhost:49158;useBulkCopyForBatchInsert=false;cancelQueryTimeout=-1;sslProtocol=TLS;jaasConfigurationName=SQLJDBCDriver;statementPoolingCacheSize=0;serverPreparedStatementDiscardThreshold=10;enablePrepareOnFirstPreparedStatementCall=false;fips=false;socketTimeout=0;authentication=NotSpecified;authenticationScheme=nativeAuthentication;xopenStates=false;sendTimeAsDatetime=true;trustStoreType=JKS;trustServerCertificate=false;TransparentNetworkIPResolution=true;serverNameAsACE=false;sendStringParametersAsUnicode=true;selectMethod=direct;responseBuffering=adaptive;queryTimeout=-1;packetSize=8000;multiSubnetFailover=false;loginTimeout=15;lockTimeout=-1;lastUpdateCount=true;encrypt=false;disableStatementPooling=true;databaseName=msdb;columnEncryptionSetting=Disabled;applicationName=Microsoft JDBC Driver for SQL Server;applicationIntent=readwrite; (Microsoft SQL Server 15.0)

22:18:42,150 INFO  [app] 22:18:39,197 Failed to start application (with profile prod): java.lang.ClassNotFoundException: org.flywaydb.core.internal.database.sqlserver.SQLServerDatabase
22:18:42,150 INFO  [app]    at com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:71)
22:18:42,150 INFO  [app]    at java.lang.Class.forName(DynamicHub.java:1319)
22:18:42,150 INFO  [app]    at org.flywaydb.core.internal.util.ClassUtils.instantiate(ClassUtils.java:62)
22:18:42,150 INFO  [app]    at org.flywaydb.core.internal.FlywayTeamsObjectResolver.resolve(FlywayTeamsObjectResolver.java:48)
22:18:42,150 INFO  [app]    at org.flywaydb.core.internal.database.sqlserver.SQLServerDatabaseType.createDatabase(SQLServerDatabaseType.java:95)
22:18:42,150 INFO  [app]    at org.flywaydb.core.internal.database.base.BaseDatabaseType.createDatabase(BaseDatabaseType.java:139)
22:18:42,151 INFO  [app]    at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:172)
22:18:42,151 INFO  [app]    at org.flywaydb.core.Flyway.migrate(Flyway.java:124)
22:18:42,158 INFO  [app]    at io.quarkus.flyway.runtime.FlywayRecorder.doStartActions(FlywayRecorder.java:76)
22:18:42,159 INFO  [app]    at io.quarkus.deployment.steps.FlywayProcessor$createBeansAndStartActions2063183959.deploy_0(FlywayProcessor$createBeansAndStartActions2063183959.zig:120)
22:18:42,159 INFO  [app]    at io.quarkus.deployment.steps.FlywayProcessor$createBeansAndStartActions2063183959.deploy(FlywayProcessor$createBeansAndStartActions2063183959.zig:40)
22:18:42,159 INFO  [app]    at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:578)
22:18:42,159 INFO  [app]    at io.quarkus.runtime.Application.start(Application.java:101)
22:18:42,159 INFO  [app]    at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:104)
22:18:42,159 INFO  [app]    at io.quarkus.runtime.Quarkus.run(Quarkus.java:67)
22:18:42,159 INFO  [app]    at io.quarkus.runtime.Quarkus.run(Quarkus.java:41)
22:18:42,159 INFO  [app]    at io.quarkus.runtime.Quarkus.run(Quarkus.java:120)
22:18:42,159 INFO  [app]    at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)
22:18:44,534 INFO  [database] Service stopped (mcr.microsoft.com/mssql/rhel/server)

Reproducer: git clone https://github.com/quarkus-qe/quarkus-test-suite.git cmd: mvn clean verify -Dnative -pl sql-db/vertx-sql

DailyBuildExample: https://github.com/quarkus-qe/quarkus-test-suite/runs/4280479399?check_suite_focus=true#step:10:1199

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

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

No response

Additional information

No response


https://github.com/quarkusio/quarkus/issues/21611


$upstream:21611$