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

LogManager error of type GENERIC_FAILURE #44914

Closed
joe-specimen opened this issue Dec 4, 2024 · 6 comments · Fixed by #44946
Closed

LogManager error of type GENERIC_FAILURE #44914

joe-specimen opened this issue Dec 4, 2024 · 6 comments · Fixed by #44946
Labels
area/logging kind/bug-thirdparty Bugs that are caused by third-party components and not causing a major dysfunction of core Quarkus.
Milestone

Comments

@joe-specimen
Copy link

Describe the bug

Since Quarkus 3.17.2, the following error is thrown when starting the application:

LogManager error of type GENERIC_FAILURE: Section header cannot be encoded into charset "windows-1252"

I have no settings regarding logging inside of the application.properties file. So everything should be set to defalt.

It was working fine with Quarkus 3.17.0.

Expected behavior

Before the Quarkus logo is being printed (see below)


--/ __ / / / / _ | / _ / /// / / / __/
-/ /
/ / // / __ |/ , / ,< / // /\ \
--___
// |//|//||_//

Actual behavior

Now the following message is shown

LogManager error of type GENERIC_FAILURE: Section header cannot be encoded into charset "windows-1252"

How to Reproduce?

  1. Generate simple Quarkus REST maven project with the release number 3.17.2.
  2. Build it with maven wrapper inside project (I used java 21)
  3. Start the application and there is no Quarkus logo but instead it is message "LogManager error of type GENERIC_FAILURE: Section header cannot be encoded into charset "IBM437"

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@joe-specimen joe-specimen added the kind/bug Something isn't working label Dec 4, 2024
@quarkus-bot quarkus-bot bot added env/windows Impacts Windows machines triage/needs-triage labels Dec 4, 2024
@geoand geoand changed the title Since Quarkus 3.17.2 LogManager error of type GENERIC_FAILURE Dec 4, 2024
@geoand
Copy link
Contributor

geoand commented Dec 4, 2024

@dmlloyd has this since been fixed?

@dmlloyd
Copy link
Member

dmlloyd commented Dec 4, 2024

This seems like a "new" problem to me, though if our simple banner cannot be encoded in windows-1252, that seems like a legitimate problem. I've done a hexdump of the banner and there are no non-ASCII characters that I can see, so it should be encodable on all of the usual Windows code pages. It's not clear what's going on here.

You could try starting with -Dfile.encoding=utf-8 or -Dstdout.encoding=utf-8 and see what happens. In the meantime I'll try some tests to see if the JDK charset encoder is being weird.

@dmlloyd
Copy link
Member

dmlloyd commented Dec 4, 2024

I was able to reproduce this on Linux:

$ /Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/bin/java -Dquarkus.platform.version=3.17.2 -Dquarkus.application.version=1.0.0-SNAPSHOT -Dquarkus.platform.artifact-id=quarkus-bom -Dquarkus.platform.group-id=io.quarkus.platform -Dquarkus.application.name=rest-project-test -jar /Volumes/Case-sensitive/david/src/java/rest-project-test/target/quarkus-app/quarkus-run.jar
LogManager error of type GENERIC_FAILURE: Section header cannot be encoded into charset "US-ASCII"
2024-12-04 09:05:04,955 INFO  [io.quarkus] (main) rest-project-test 1.0.0-SNAPSHOT on JVM (powered by Quarkus 3.17.2) started in 0.424s. Listening on: http://0.0.0.0:8080
2024-12-04 09:05:04,960 INFO  [io.quarkus] (main) Profile prod activated. 
2024-12-04 09:05:04,960 INFO  [io.quarkus] (main) Installed features: [cdi, rest, smallrye-context-propagation, vertx]
2024-12-04 09:05:07,328 INFO  [io.quarkus] (main) rest-project-test stopped in 0.022s
$ java --version
openjdk 21.0.3 2024-04-16 LTS
OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode)

However I have not been able to reproduce it directly in jshell yet.

@dmlloyd
Copy link
Member

dmlloyd commented Dec 4, 2024

Found the problem. It's a regression in the log manager. It's reported and fixed in jboss-logging/jboss-logmanager#500.

@geoand geoand added kind/bug-thirdparty Bugs that are caused by third-party components and not causing a major dysfunction of core Quarkus. and removed kind/bug Something isn't working env/windows Impacts Windows machines labels Dec 4, 2024
@gsmet
Copy link
Member

gsmet commented Dec 4, 2024

Let’s try to get a fix in the Quarkus tree before next Tuesday so that I can include it in 3.17.4.

@rsvoboda
Copy link
Member

rsvoboda commented Dec 6, 2024

+1 to have this in ideally in 3.17.4, we noticed the same fail in PR for Quarkus bump in https://github.com/quarkus-qe/quarkus-startstop

@quarkus-bot quarkus-bot bot added this to the 3.18 - main milestone Dec 6, 2024
@gsmet gsmet modified the milestones: 3.18 - main, 3.17.4 Dec 7, 2024
@gsmet gsmet modified the milestones: 3.17.4, 3.15.3 Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/logging kind/bug-thirdparty Bugs that are caused by third-party components and not causing a major dysfunction of core Quarkus.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants