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

Problem creating native image (CR1) Error: Unsupported features in 3 methods #5262

Closed
codecr opened this issue Nov 6, 2019 · 3 comments · Fixed by #5343
Closed

Problem creating native image (CR1) Error: Unsupported features in 3 methods #5262

codecr opened this issue Nov 6, 2019 · 3 comments · Fixed by #5343
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@codecr
Copy link

codecr commented Nov 6, 2019

Image generation failed with simple Rest
If you create a simple app with Quarkus CR1 and add the extensions hibernate-orm,mariadb,resteasy-jsonb,openapi you will get an error building the native image:

Error: Unsupported features in 3 [methods]
error.txt
error.txt

Caused by: java.lang.RuntimeException: Image generation failed
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:283)

Expected behavior
The native image is created.

Actual behavior
An error creating the native image, if you change the pom and switch back t0 0.28.1 everything works fine.

To Reproduce
Steps to reproduce the behavior:

  1. mvn io.quarkus:quarkus-maven-plugin:1.0.0.CR1:create (with the default resource)
  2. mvn quarkus:add-extension -Dextensions=hibernate-orm,mariadb,resteasy-jsonb,openapi
  3. mvn package -Pnative

Environment (please complete the following information):

  • Output of uname -a or ver: Darwin Gerardos-MacBook-Pro.local 19.0.0 Darwin Kernel Version 19.0.0: Wed Sep 25 20:18:50 PDT 2019; root:xnu-6153.11.26~2/RELEASE_X86_64 x86_64
  • Output of java -version: openjdk version "1.8.0_232"
    OpenJDK Runtime Environment (build 1.8.0_232-20191009173705.graal.jdk8u-src-tar-gz-b07)
    OpenJDK 64-Bit GraalVM CE 19.2.1 (build 25.232-b07-jvmci-19.2-b03, mixed mode)
  • GraalVM version: graalvm-ce-19.2.1
  • Quarkus version or git rev: CR1
@codecr codecr added the kind/bug Something isn't working label Nov 6, 2019
@codecr
Copy link
Author

codecr commented Nov 6, 2019

error.txt

@Sanne
Copy link
Member

Sanne commented Nov 8, 2019

Many thanks @codecr ! That was super useful. I've sent a pull request with a fix, this should be solved in the next release.

@codecr
Copy link
Author

codecr commented Nov 8, 2019

Thank you @Sanne

@gsmet gsmet added this to the 1.0.0.Final milestone Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants