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

Quarskus version of the program fails to start after successful native compilation #39

Open
giuseppeLau opened this issue Jun 5, 2023 · 0 comments
Assignees

Comments

@giuseppeLau
Copy link

giuseppeLau commented 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:

  • 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:

Schermata del 2023-06-05 16-24-55

@giuseppeLau 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants