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

Mssql extensions fails in native mode with a ClassNotFoundException #451

Closed
snowdrop-bot opened this issue Nov 22, 2021 · 0 comments
Closed
Assignees
Labels
7 - Community development upstream/closed The issue has been closed in the upstream repository

Comments

@snowdrop-bot
Copy link
Collaborator

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


quarkusio#21611


$upstream:21611$

@snowdrop-bot snowdrop-bot added the upstream/closed The issue has been closed in the upstream repository label Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7 - Community development upstream/closed The issue has been closed in the upstream repository
Projects
None yet
Development

No branches or pull requests

2 participants