-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Failed to augment application classes when using -H:ReflectionConfigurationFiles= #6598
Comments
Noticed this line further up in the BuildStep
It does seem like the command is somehow malformed... |
Just so we don't try and something that might already be solved, did you try |
I was under the impression that I am trying to stick to |
Java 11 support was indeed removed from Quarkus 1.1.0.Final indeed, but it should be back in |
okay I worked around my java11 usage, bumped up the quarkus version:
and downgraded my graalvm version and I still get the error:
|
OK thank you for checking |
Just to make sure we're executing the same thing, do you mind uploading a small reproducer containing the files and a README with the exact command you use to launch? |
Here you go: https://github.com/phact/cassandra-quarkus-starter I just run |
Great, thanks a lot! I'll take a look over the weekend hopefully |
That would be great. After I run If I The exact |
By the way (and maybe this should be a different issue) once I get the native-image to build as described above, it blows up at runtime with:
|
I also have encountered similar behavior with malformed command when I have TWO "additional build args" as shown in the Environment
Build Command application.properties with TWO additional-build-args
Actual Behavior
|
😮 looks like it works if I put the additional-build-args in a single line in the config rather than multi-line
vs
|
I can confirm @phact's suggestion worked for me too! Thank you! |
Let me give it a quick try and see what this is all about |
So the problem turned out to be that in your multi-line string you had trailing whitespaces - if you remove them the multi-line string config works as well. I nonetheless opened #6614 to make things easier for users |
Thank you for the responsiveness and the level of attention to UX. Makes a huge difference to have this support. |
Thank you for the excellent error reporting and help :) |
Also, I think there is a limitation with arguments with respect to comma separated lists. For example, this option accepts a comma separated list of classes as per here:
|
@christianThor if you run into a specific problem with it, please open a new issue. It could very well be the case (although I haven't seen anyone report it) and if it is having a detailed issue would be nice. Thanks |
Describe the bug
NativeImageBuildStep fails when using
-H:ReflectionConfigurationFiles=
Expected behavior
But if I copy and paste the
native-image
command and run it manually, it succeeds:Actual behavior
./mvnw clean package -Pnative
throws the following error:Configuration
Environment (please complete the following information):
Output of
uname -a
orver
:Linux wezn 5.3.0-26-generic Merge our two divergent heads #28-Ubuntu SMP Wed Dec 18 05:37:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
:openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment GraalVM CE 19.3.1 (build 11.0.6+9-jvmci-19.3-b07)
OpenJDK 64-Bit Server VM GraalVM CE 19.3.1 (build 11.0.6+9-jvmci-19.3-b07, mixed mode, sharing)
Quarkus version or git rev:
<quarkus.platform.version>1.1.0.CR1</quarkus.platform.version>
I don't understand how this would be since what gets printed out in the info log is exactly what gets run by the process builder.
https://github.com/quarkusio/quarkus/blob/1.1.0.CR1/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java#L298-L301
The text was updated successfully, but these errors were encountered: