-
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
quarkus-logging-json not working with native images #8855
Comments
machi1990
changed the title
quarkus-logging-json now working with native images
quarkus-logging-json not working with native images
Apr 25, 2020
@xtermi2 thanks for reporting. I'll have a look, might be an easy fix. |
machi1990
added a commit
to machi1990/quarkus
that referenced
this issue
Apr 25, 2020
add jsonp-deployment module in logging-json deployment module so that JsonProviderImpl is registered for reflection. Fixes quarkusio#8855
Thx. I can confirm that adding <dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jsonp-deployment</artifactId>
<version>${quarkus.platform.version}</version>
</dependency> will fix the issue - as a workaround until the dependency is delivered transitively. |
Great thanks for checking. You can also temporarily fix the issue by adding:
as you don't need to add the |
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
May 1, 2020
add jsonp-deployment module in logging-json deployment module so that JsonProviderImpl is registered for reflection. Fixes quarkusio#8855
gwenneg
pushed a commit
to gwenneg/quarkus
that referenced
this issue
May 2, 2020
add jsonp-deployment module in logging-json deployment module so that JsonProviderImpl is registered for reflection. Fixes quarkusio#8855
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When adding
quarkus-logging-json
dependency, building a native image is still working, but when starting the native image I get this exception and the application exits:Expected behavior
native application starts without errors.
To Reproduce
Steps to reproduce the behavior:
quarkus-logging-json
e.g. this zip / configuration./mvnw clean verify -Pnative -Dquarkus.native.container-build=true
NativeExampleResourceIT
will fail with the above Exception../target/code-with-quarkus-1.0.0-SNAPSHOT-runner
you will get the same ExceptionEnvironment:
uname -a
orver
: Linux xxx 5.3.0-46-generic Arc - support initializer injection on superclasses #38-Ubuntu SMP Fri Mar 27 17:37:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linuxjava -version
: openjdk version "11.0.7" 2020-04-14OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu219.10)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu219.10, mixed mode, sharing)
mvnw --version
orgradlew --version
): Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)The text was updated successfully, but these errors were encountered: