Quarkus dev console failing

321 views
Skip to first unread message

Fabio Beider

unread,
Aug 23, 2021, 1:12:57 PM8/23/21
to Kogito development mailing list

Hey folks,

I'm trying to update my Kogito project to 2.1.0.Final, but keep getting an error when trying to run in development mode.
[error]: Build step io.quarkus.deployment.console.ConsoleProcessor#setupConsole threw an exception: java.lang.NoSuchFieldError: console

I just updated Kogito verision and Quarkus version, but this error started to appear. Any clues?

PS: I saw the same problem reported 15 days ago in Quarkus chat, but no responses: https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/java.2Elang.2ENoSuchFieldError.3A.20console

Best,

Fabio

Daniele Zonca

unread,
Aug 24, 2021, 4:00:33 AM8/24/21
to kogito-de...@googlegroups.com
Hi Fabio,

To be honest it looks to me like a problem with the dependency tree. The bad part is that even if you perform a "mvn dependency:tree" command you will not see "the full" dependency tree because all -deployment dependencies are "implicitly" downloaded and installed by the Quarkus plugin based on the used extensions (you depends on the runtime part and Quarkus loads the deployment part automatically).

My suggestions are:
- use latest Quarkus version (it should be 2.1.3.Final)
- check dependency tree to see if there is only a single version of Quarkus in the whole project
- check effective pom
- perform same checks for Kogito version (even if the error is not including any kogito class in the stack trace)
- make sure to specify explicit version of quarkus-maven-plugin in the pom

If this doesn't work I think you need support from Quarkus team because I don't know what is the best way to debug a similar issue on quarkus deployment side

The problem is probably related to this commit that changed `console` type from boolean to Optional<Boolean> and it should be included in any Quarkus release >= 2.1.0.Final

HTH
Daniele

--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/6e1465ab-6bb4-4d2c-b80c-4bd62fb18388n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages