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

No OASFactoryResolver implementation found! when running native application #24132

Closed
mklueh opened this issue Mar 6, 2022 · 1 comment · Fixed by #24180
Closed

No OASFactoryResolver implementation found! when running native application #24132

mklueh opened this issue Mar 6, 2022 · 1 comment · Fixed by #24180
Labels
area/openapi kind/bug Something isn't working
Milestone

Comments

@mklueh
Copy link
Contributor

mklueh commented Mar 6, 2022

Describe the bug

Hello,

I'm running into the following error when trying to start my natively compiled application docker container:

Exception in thread "main" java.lang.ExceptionInInitializerError
        at java.lang.Class.ensureInitialized(DynamicHub.java:510)
        at java.lang.Class.newInstance(DynamicHub.java:874)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:66)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:41)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:120)
        at io.quarkus.runner.GeneratedMain.main(Unknown Source)
Caused by: java.lang.RuntimeException: Failed to start quarkus
        at io.quarkus.runner.ApplicationImpl.<clinit>(Unknown Source)
        ... 6 more
Caused by: java.lang.IllegalStateException: No OASFactoryResolver implementation found!
        at org.eclipse.microprofile.openapi.spi.OASFactoryResolver.instance(OASFactoryResolver.java:77)
        at io.quarkus.smallrye.openapi.runtime.OpenApiRecorder.classLoaderHack(OpenApiRecorder.java:80)
        at io.quarkus.deployment.steps.SmallRyeOpenApiProcessor$classLoaderHack1558305429.deploy_0(Unknown Source)
        at io.quarkus.deployment.steps.SmallRyeOpenApiProcessor$classLoaderHack1558305429.deploy(Unknown Source)
        ... 7 more

Is there something I'm missing? Should OpenAPI be disabled in production?

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

17

GraalVM version (if different from Java)

GraalVM 22.0.0.2 Java 17 CE

Quarkus version or git rev

2.7.2

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

Gradle

Additional information

No response

@mklueh mklueh added the kind/bug Something isn't working label Mar 6, 2022
geoand added a commit to geoand/quarkus that referenced this issue Mar 8, 2022
geoand added a commit to geoand/quarkus that referenced this issue Mar 8, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Mar 8, 2022

gsmet added a commit that referenced this issue Mar 8, 2022
Fix openapi service loader issue in native mode
@quarkus-bot quarkus-bot bot added this to the 2.8 - main milestone Mar 8, 2022
@gsmet gsmet modified the milestones: 2.8 - main, 2.7.4.Final Mar 8, 2022
gsmet pushed a commit to gsmet/quarkus that referenced this issue Mar 8, 2022
gsmet pushed a commit to gsmet/quarkus that referenced this issue Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/openapi kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants