[
https://issues.jboss.org/browse/WFCORE-4525?page=com.atlassian.jira.plugi...
]
Richard Opalka commented on WFCORE-4525:
----------------------------------------
I debugged this problem and I identified some of these tests fail because of late system
properties setup in ForkedBooter class when surefire plugin runs on top of IBM JDK.
ForkedBooter sets up system properties for forked process on line 95 in method
ForkedBooter.setupBooter() method.
But on IBM JDK (see ibm-jdk8.png) the Java system logger is initialized before jboss
logging properties are setup (this happens on line 94 in method
ForkedBooter.setupBooter())
Detailed explanation:
* ForkedBooter.isDebugging() method call on line 94 behaves differently on IBM JDK and on
Oracle JDK from java system logger configuration point of view.
* Oracle's ManagementFactory.getRuntimeMXBean() method invocation doesn't force
java system logging initialization because its MX bean isn't using logging.
* But IBM's ManagementFactory.getRuntimeMXBean() method invocation forces java system
logging initialization because its MX bean is using logging.
The problem is system properties are configured for forked process on line 95 in
ForkedBooter (see forked-booter.png) and so on IBM JDK jboss logging
properties are not configured which results in Apache Log4j being used. On Oracle JDK
JBoss log manager is used instead.
On Oracle JDK system properties are properly set up and later used for logging
configuration (see oracle-jdk.png).
Fix failing tests on IBM JDK
----------------------------
Key: WFCORE-4525
URL:
https://issues.jboss.org/browse/WFCORE-4525
Project: WildFly Core
Issue Type: Bug
Components: Logging
Reporter: Richard Opalka
Assignee: James Perkins
Priority: Major
Fix For: 9.0.2.Final
Attachments: forked-booter.png, ibm-jdk8.png, oracle-jdk.png
The following tests are failing on latest IBM JDK 8:
---
# testsuite/standalone
SilentModeTestCase
# testsuite/manualmode
CLIEmbedHostControllerTestCase
CLIEmbedServerTestCase
---
Tested on:
---
java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 8.0.5.36 - pxa6480sr5fp36-20190510_01(SR5 FP36))
IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20190502_415899
(JIT enabled, AOT enabled)
OpenJ9 - 46e57f9
OMR - 06a046a
IBM - 0b909bf)
JCL - 20190409_01 based on Oracle jdk8u211-b25
---
--
This message was sent by Atlassian Jira
(v7.12.1#712002)