Skip to content

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

Description

@giuseppeLau

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions