You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I downloaded the quarkus version of the code and created a native executable using the command ./gradlew build -Dquarkus.package.type=native
The compilation process completed without any errors or warnings. I'm using Ubuntu 22.04.
However, when I try to start the program, it fails to launch, this is the error i encountered:
2023-06-05 16:19:27,547 ERROR [io.qua.run.Application] (main) Failed to start application (with profile [prod]): java.lang.IllegalStateException: 'org.flywaydb.core.internal.scanner.Scanner' is never used in Quarkus at org.flywaydb.core.internal.scanner.Scanner.<init>(Scanner.java:27) at org.flywaydb.core.FlywayExecutor.createResourceAndClassProviders(FlywayExecutor.java:251) at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:134) at org.flywaydb.core.Flyway.migrate(Flyway.java:128) at com.arconsis.config.FlywayMigrationService.runFlywayMigration(FlywayMigrationService.kt:22) at com.arconsis.config.FlywayMigrationService_Observer_runFlywayMigration_e09775c6e6298446fe62b8335f74bc4e196e9972.notify(Unknown Source) at io.quarkus.arc.impl.EventImpl$Notifier.notifyObservers(EventImpl.java:328) at io.quarkus.arc.impl.EventImpl$Notifier.notify(EventImpl.java:310) at io.quarkus.arc.impl.EventImpl.fire(EventImpl.java:78) at io.quarkus.arc.runtime.ArcRecorder.fireLifecycleEvent(ArcRecorder.java:131) at io.quarkus.arc.runtime.ArcRecorder.handleLifecycleEvents(ArcRecorder.java:100) at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent1144526294.deploy_0(Unknown Source) at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent1144526294.deploy(Unknown Source) at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source) at io.quarkus.runtime.Application.start(Application.java:101) at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:108) at io.quarkus.runtime.Quarkus.run(Quarkus.java:71) at io.quarkus.runtime.Quarkus.run(Quarkus.java:44) at io.quarkus.runtime.Quarkus.run(Quarkus.java:124) at io.quarkus.runner.GeneratedMain.main(Unknown Source)
Steps to reproduce:
Clone the repository to your local machine.
Navigate to the project directory.
Compile the program using : ./gradlew build -Dquarkus.package.type=native
Run the program: ./build/bookstore-quarkus-1.0.0-SNAPSHOT-runner
Here is a screenshot of the encountered error:
The text was updated successfully, but these errors were encountered:
giuseppeLau
changed the title
Program fails to start after successful native compilation
Quarskus version of the program fails to start after successful native compilation
Jun 5, 2023
Description:
I downloaded the quarkus version of the code and created a native executable using the command
./gradlew build -Dquarkus.package.type=native
The compilation process completed without any errors or warnings. I'm using Ubuntu 22.04.
However, when I try to start the program, it fails to launch, this is the error i encountered:
2023-06-05 16:19:27,547 ERROR [io.qua.run.Application] (main) Failed to start application (with profile [prod]): java.lang.IllegalStateException: 'org.flywaydb.core.internal.scanner.Scanner' is never used in Quarkus at org.flywaydb.core.internal.scanner.Scanner.<init>(Scanner.java:27) at org.flywaydb.core.FlywayExecutor.createResourceAndClassProviders(FlywayExecutor.java:251) at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:134) at org.flywaydb.core.Flyway.migrate(Flyway.java:128) at com.arconsis.config.FlywayMigrationService.runFlywayMigration(FlywayMigrationService.kt:22) at com.arconsis.config.FlywayMigrationService_Observer_runFlywayMigration_e09775c6e6298446fe62b8335f74bc4e196e9972.notify(Unknown Source) at io.quarkus.arc.impl.EventImpl$Notifier.notifyObservers(EventImpl.java:328) at io.quarkus.arc.impl.EventImpl$Notifier.notify(EventImpl.java:310) at io.quarkus.arc.impl.EventImpl.fire(EventImpl.java:78) at io.quarkus.arc.runtime.ArcRecorder.fireLifecycleEvent(ArcRecorder.java:131) at io.quarkus.arc.runtime.ArcRecorder.handleLifecycleEvents(ArcRecorder.java:100) at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent1144526294.deploy_0(Unknown Source) at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent1144526294.deploy(Unknown Source) at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source) at io.quarkus.runtime.Application.start(Application.java:101) at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:108) at io.quarkus.runtime.Quarkus.run(Quarkus.java:71) at io.quarkus.runtime.Quarkus.run(Quarkus.java:44) at io.quarkus.runtime.Quarkus.run(Quarkus.java:124) at io.quarkus.runner.GeneratedMain.main(Unknown Source)
Steps to reproduce:
./gradlew build -Dquarkus.package.type=native
./build/bookstore-quarkus-1.0.0-SNAPSHOT-runner
Here is a screenshot of the encountered error:
The text was updated successfully, but these errors were encountered: