quarkiverse / quarkus-logging-json

Quarkus logging extension outputting the logging in json.
Apache License 2.0
62 stars 29 forks source link

Is this extension still active? #178

Closed javadevmtl closed 2 years ago

javadevmtl commented 2 years ago

I just updated to Quarkus 2.8.2 and I get the below build error... So I'm guessing the extension hasn't kept up with the Quarkus updates?

2022-05-06 12:29:19,770 ERROR [io.qua.dep.dev.IsolatedDevModeMain] (main) Failed to start quarkus: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
    [error]: Build step io.quarkiverse.loggingjson.deployment.LoggingJsonProcessor#setUpFormatter threw an exception: java.lang.NoSuchFieldError: JACKSON
    at io.quarkiverse.loggingjson.deployment.LoggingJsonProcessor.setUpFormatter(LoggingJsonProcessor.java:33)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:925)
    at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
    at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
    at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
    at java.base/java.lang.Thread.run(Thread.java:834)
    at org.jboss.threads.JBossThread.run(JBossThread.java:501)

    at io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment(AugmentActionImpl.java:330)
    at io.quarkus.runner.bootstrap.AugmentActionImpl.createInitialRuntimeApplication(AugmentActionImpl.java:252)
    at io.quarkus.runner.bootstrap.AugmentActionImpl.createInitialRuntimeApplication(AugmentActionImpl.java:60)
    at io.quarkus.deployment.dev.IsolatedDevModeMain.firstStart(IsolatedDevModeMain.java:95)
    at io.quarkus.deployment.dev.IsolatedDevModeMain.accept(IsolatedDevModeMain.java:485)
    at io.quarkus.deployment.dev.IsolatedDevModeMain.accept(IsolatedDevModeMain.java:68)
    at io.quarkus.bootstrap.app.CuratedApplication.runInCl(CuratedApplication.java:142)
    at io.quarkus.bootstrap.app.CuratedApplication.runInAugmentClassLoader(CuratedApplication.java:97)
    at io.quarkus.deployment.dev.DevModeMain.start(DevModeMain.java:132)
    at io.quarkus.deployment.dev.DevModeMain.main(DevModeMain.java:62)
Caused by: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
    [error]: Build step io.quarkiverse.loggingjson.deployment.LoggingJsonProcessor#setUpFormatter threw an exception: java.lang.NoSuchFieldError: JACKSON
    at io.quarkiverse.loggingjson.deployment.LoggingJsonProcessor.setUpFormatter(LoggingJsonProcessor.java:33)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:925)
    at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
    at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
    at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
    at java.base/java.lang.Thread.run(Thread.java:834)
    at org.jboss.threads.JBossThread.run(JBossThread.java:501)

    at io.quarkus.builder.Execution.run(Execution.java:116)
    at io.quarkus.builder.BuildExecutionBuilder.execute(BuildExecutionBuilder.java:79)
    at io.quarkus.deployment.QuarkusAugmentor.run(QuarkusAugmentor.java:157)
    at io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment(AugmentActionImpl.java:328)
    ... 9 more
Caused by: java.lang.NoSuchFieldError: JACKSON
    at io.quarkiverse.loggingjson.deployment.LoggingJsonProcessor.setUpFormatter(LoggingJsonProcessor.java:33)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:925)
    at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
    at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
    at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
    at java.base/java.lang.Thread.run(Thread.java:834)
    at org.jboss.threads.JBossThread.run(JBossThread.java:501)
SlyngDK commented 2 years ago

Yes, it should still work. The tests is not showing any errors, can you create a reproducer?

javadevmtl commented 2 years ago

Ok

On Sat., May 7, 2022, 5:02 a.m. Simon Bengtsson, @.***> wrote:

Yes, it should still work. The tests is not showing any errors, can you create a reproducer?

— Reply to this email directly, view it on GitHub https://github.com/quarkiverse/quarkus-logging-json/issues/178#issuecomment-1120170165, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWTUSVMFAIYXYILGS4PQY3VIYWR3ANCNFSM5VIVGSSA . You are receiving this because you authored the thread.Message ID: @.***>

javadevmtl commented 2 years ago

Here you go: https://github.com/javadevmtl/quarkus-logging-reproducer

The project was made with the quarkus.com app wizard. But it demonstrates the same build error as above when running ./gradlew quarkuDev

javadevmtl commented 2 years ago

It seems to happen with Quarkus 2.x and above.

SlyngDK commented 2 years ago

Looks like you are use an old version. Latest version is 1.1.1, and can be seen here https://search.maven.org/artifact/io.quarkiverse.loggingjson/quarkus-logging-json.

javadevmtl commented 2 years ago

Ok, I looked a bit closer...

1- I used this link: https://mvnrepository.com/artifact/io.quarkiverse.loggingjson/quarkiverse-logging-json which doesn't have the latest. So I had tried a couple things and I was well like this doesn't work lol

2- So then I tried the wizard app at: https://code.quarkus.io/ and it generates with the old version as well.

Ok 1.1.1 seems to work. Thanks. Maybe fix the wizard for the latest version?

gsmet commented 2 years ago

So then I tried the wizard app at: https://code.quarkus.io/ and it generates with the old version as well.

Hmmm good catch, the registry still references the old GA. I will fix that.

gsmet commented 2 years ago

I fixed it here: https://github.com/quarkusio/quarkus-extension-catalog/pull/22 .

code.quarkus.io should point to the new GA soon.