Details
-
Bug
-
Resolution: Fixed
-
P4
-
8
-
b15
-
generic
-
generic
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8034590 | 7u65 | Mandy Chung | P4 | Resolved | Fixed | b01 |
JDK-8021768 | 7u60 | Robert Mckenna | P4 | Closed | Fixed | b01 |
Description
This test failed once, on jprt-sol-sparc-5, with a build of jdk8/tl/jdk that is essentially jdk8-b00 (close to jdk7-b147).
--------------------------------------------------
TEST: java/lang/management/PlatformLoggingMXBean/LoggingMXBeanTest.java
JDK under test: (/tmp/jprt/P1/100004.ab23780/testproduct/solaris_sparc_5.10-product)
java version "1.8.0-internal"
Java(TM) SE Runtime Environment (build 1.8.0-internal-201107151000.ab23780.jdk-b00)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode)
ACTION: build -- Passed. Build successful
REASON: User specified action: run build LoggingMXBeanTest
TIME: 0.075 seconds
messages:
command: build LoggingMXBeanTest
reason: User specified action: run build LoggingMXBeanTest
elapsed time (seconds): 0.075
ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME: 0.074 seconds
messages:
command: compile /tmp/jprt/P1/100004.ab23780/source/test/java/lang/management/PlatformLoggingMXBean/LoggingMXBeanTest.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.074
ACTION: build -- Passed. All files up to date
REASON: Named class compiled on demand
TIME: 0.0 seconds
messages:
command: build LoggingMXBeanTest
reason: Named class compiled on demand
elapsed time (seconds): 0.0
ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: LoggerLevel: unmatched level for com.sun.management.Logger.Logger2
REASON: User specified action: run main LoggingMXBeanTest
TIME: 0.045 seconds
messages:
command: main LoggingMXBeanTest
reason: User specified action: run main LoggingMXBeanTest
elapsed time (seconds): 0.045
STDOUT:
Test Logger Name retrieval (getLoggerNames)
: Found new Logger : com.sun.management.Logger.Logger2
: Found new Logger : com.sun.management.Logger
: PASSED.
Test getLoggerLevel
: Level for Logger com.sun.management.Logger : FINE
: Level for Logger com.sun.management.Logger.Logger2 :
: Level for unknown logger : null
Test setLoggerLevel
: Set Level for Logger com.sun.management.Logger to: INFO
: Set Level for Logger com.sun.management.Logger.Logger2 to: SERVER
: Set Level for Logger com.sun.management.Logger to: null
: Set Level for unknown Logger to: FINE
: IllegalArgumentException caught as expected
: Set Level for Logger com.sun.management.Logger to: DUMMY
: IllegalArgumentException caught as expected
Test getParentLoggerName
: Parent Logger for com.sun.management.Logger.Logger2 : com.sun.management.Logger
: Parent Logger for "" :
: Parent Logger for unknown logger : null
STDERR:
java.lang.RuntimeException: LoggerLevel: unmatched level for com.sun.management.Logger.Logger2
at LoggingMXBeanTest.checkAttributes(LoggingMXBeanTest.java:221)
at LoggingMXBeanTest.main(LoggingMXBeanTest.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
at java.lang.Thread.run(Thread.java:722)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: LoggerLevel: unmatched level for com.sun.management.Logger.Logger2
--------------------------------------------------
Similar/same problem in:
java/lang/management/PlatformLoggingMXBean/PlatformLoggingMXBeanTest.java
--------------------------------------------------
TEST: java/lang/management/PlatformLoggingMXBean/LoggingMXBeanTest.java
JDK under test: (/tmp/jprt/P1/100004.ab23780/testproduct/solaris_sparc_5.10-product)
java version "1.8.0-internal"
Java(TM) SE Runtime Environment (build 1.8.0-internal-201107151000.ab23780.jdk-b00)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode)
ACTION: build -- Passed. Build successful
REASON: User specified action: run build LoggingMXBeanTest
TIME: 0.075 seconds
messages:
command: build LoggingMXBeanTest
reason: User specified action: run build LoggingMXBeanTest
elapsed time (seconds): 0.075
ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME: 0.074 seconds
messages:
command: compile /tmp/jprt/P1/100004.ab23780/source/test/java/lang/management/PlatformLoggingMXBean/LoggingMXBeanTest.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.074
ACTION: build -- Passed. All files up to date
REASON: Named class compiled on demand
TIME: 0.0 seconds
messages:
command: build LoggingMXBeanTest
reason: Named class compiled on demand
elapsed time (seconds): 0.0
ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: LoggerLevel: unmatched level for com.sun.management.Logger.Logger2
REASON: User specified action: run main LoggingMXBeanTest
TIME: 0.045 seconds
messages:
command: main LoggingMXBeanTest
reason: User specified action: run main LoggingMXBeanTest
elapsed time (seconds): 0.045
STDOUT:
Test Logger Name retrieval (getLoggerNames)
: Found new Logger : com.sun.management.Logger.Logger2
: Found new Logger : com.sun.management.Logger
: PASSED.
Test getLoggerLevel
: Level for Logger com.sun.management.Logger : FINE
: Level for Logger com.sun.management.Logger.Logger2 :
: Level for unknown logger : null
Test setLoggerLevel
: Set Level for Logger com.sun.management.Logger to: INFO
: Set Level for Logger com.sun.management.Logger.Logger2 to: SERVER
: Set Level for Logger com.sun.management.Logger to: null
: Set Level for unknown Logger to: FINE
: IllegalArgumentException caught as expected
: Set Level for Logger com.sun.management.Logger to: DUMMY
: IllegalArgumentException caught as expected
Test getParentLoggerName
: Parent Logger for com.sun.management.Logger.Logger2 : com.sun.management.Logger
: Parent Logger for "" :
: Parent Logger for unknown logger : null
STDERR:
java.lang.RuntimeException: LoggerLevel: unmatched level for com.sun.management.Logger.Logger2
at LoggingMXBeanTest.checkAttributes(LoggingMXBeanTest.java:221)
at LoggingMXBeanTest.main(LoggingMXBeanTest.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
at java.lang.Thread.run(Thread.java:722)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: LoggerLevel: unmatched level for com.sun.management.Logger.Logger2
--------------------------------------------------
Similar/same problem in:
java/lang/management/PlatformLoggingMXBean/PlatformLoggingMXBeanTest.java
Attachments
Issue Links
- backported by
-
JDK-8034590 java/lang/management/PlatformLoggingMXBean/LoggingMXBeanTest.java failing intermittently
-
- Resolved
-
-
JDK-8021768 java/lang/management/PlatformLoggingMXBean/LoggingMXBeanTest.java failing intermittently
-
- Closed
-
- relates to
-
JDK-6949710 the GC'able nature of Logging objects needs to be made brutally clear
-
- Closed
-
-
JDK-6274920 JDK logger holds strong reference to java.util.logging.Logger instances
-
- Closed
-