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

Error in JBossLoggerFinder during integration test #1

Open
jacopotessera opened this issue Nov 9, 2023 · 0 comments
Open

Error in JBossLoggerFinder during integration test #1

jacopotessera opened this issue Nov 9, 2023 · 0 comments

Comments

@jacopotessera
Copy link
Owner

Describe the bug

When executing the integration test phase an error is emitted by org.jboss.logmanager.JBossLoggerFinder#getLogger

Nov 09, 2023 1:58:27 PM org.jboss.logmanager.JBossLoggerFinder getLogger
ERROR: The LogManager accessed before the "java.util.logging.manager" system property was set to "org.jboss.logmanager.LogManager". Results may be unexpected.

Expected behavior

No error is emitted.

Actual behavior

arch@arch-vm ~/D/logmanager-during-it-reproducer (master)> ./mvnw failsafe:integration-test
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------< org.acme:logmanager-during-it-reproducer >--------------
[INFO] Building logmanager-during-it-reproducer 1.0.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- failsafe:3.1.2:integration-test (default-cli) @ logmanager-during-it-reproducer ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.acme.GreetingResourceIT
Nov 09, 2023 2:11:15 PM org.jboss.logmanager.JBossLoggerFinder getLogger
ERROR: The LogManager accessed before the "java.util.logging.manager" system property was set to "org.jboss.logmanager.LogManager". Results may be unexpected.
Executing "/usr/lib/jvm/java-17-openjdk/bin/java -Dquarkus.http.port=8081 -Dquarkus.http.ssl-port=8444 -Dtest.url=http://localhost:8081 -Dquarkus.log.file.path=/home/arch/Downloads/logmanager-during-it-reproducer/target/quarkus.log -Dquarkus.log.file.enable=true -Dquarkus.log.category."io.quarkus".level=INFO -jar /home/arch/Downloads/logmanager-during-it-reproducer/target/quarkus-app/quarkus-run.jar"
__  ____  __  _____   ___  __ ____  ______ 
 --/ __ \/ / / / _ | / _ \/ //_/ / / / __/ 
 -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \   
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/   
2023-11-09 14:11:17,518 INFO  [io.quarkus] (main) logmanager-during-it-reproducer 1.0.0-SNAPSHOT on JVM (powered by Quarkus 3.5.1) started in 0.863s. Listening on: http://0.0.0.0:8081
2023-11-09 14:11:17,527 INFO  [io.quarkus] (main) Profile prod activated. 
2023-11-09 14:11:17,528 INFO  [io.quarkus] (main) Installed features: [cdi, resteasy-reactive, smallrye-context-propagation, vertx]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.035 s -- in org.acme.GreetingResourceIT
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  8.812 s
[INFO] Finished at: 2023-11-09T14:11:19+01:00
[INFO] ------------------------------------------------------------------------

How to Reproduce?

Run the reproducer logmanager-during-it-reproducer by executing

  ./mvnw clean package
  ./mvnw failsafe:integration-test

This reproducer is the base project created using https://code.quarkus.io with the RESTEasy Reactive lib

Output of uname -a or ver

Linux arch-vm 6.5.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 23 Sep 2023 22:55:13 +0000 x86_64 GNU/Linux

Output of java -version

openjdk version "17.0.8.1" 2023-08-24
OpenJDK Runtime Environment (build 17.0.8.1+1)
OpenJDK 64-Bit Server VM (build 17.0.8.1+1, mixed mode)

Quarkus version or git rev

3.5.1

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

Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)
Maven home: /home/arch/.m2/wrapper/dists/apache-maven-3.9.5-bin/32db9c34/apache-maven-3.9.5
Java version: 17.0.8.1, vendor: N/A, runtime: /usr/lib/jvm/java-17-openjdk
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.5.5-arch1-1", arch: "amd64", family: "unix"

Additional information

This problem is not present in Quarkus 3.3.3 ( see https://github.com/jacopotessera/logmanager-during-it-reproducer/tree/quarkus-3-3-3 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant