JDK-7132590 : javax/management/remote/mandatory/notif/NotificationAccessControllerTest.java fails in JDK8-B22
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris
  • CPU: generic
  • Submitted: 2012-01-23
  • Updated: 2015-09-29
  • Resolved: 2014-08-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u60Fixed 9 b29Fixed
Related Reports
Relates :  
Description
I observed the following SDK/JDK test fail in my baseline test for JDK8-B22
on Solaris-X86 and Solaris X64:

    javax/management/remote/mandatory/notif/NotificationAccessControllerTest.java

Here is a snippet from the .jtr file:

removeNotificationListener:
        connectionId: rmi://141.144.21.178 role 2
        name: domain:type=NB,name=2
        subject: [JMXPrincipal:  role]
Error: expecting 1 notifications, got 0
fetchNotification:
        connectionId: rmi://141.144.21.178 role 2
        name: domain:type=NB,name=1
        notification: javax.management.Notification[source=domain:type=NB,name=1
][type=nb][message=]
        subject: [JMXPrincipal:  role]


<snip>

----------System.err:(19/952)----------
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b22)
Java HotSpot(TM) Server VM (build 23.0-b10-fastdebug, compiled mode)

java.lang.IllegalArgumentException:
Test FAILED! Got 1 error(s)
        at NotificationAccessControllerTest.main(NotificationAccessControllerTes
t.java:373)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:474)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:
94)
        at java.lang.Thread.run(Thread.java:722)

JavaTest Message: Test threw exception: java.lang.IllegalArgumentException:
Test FAILED! Got 1 error(s)
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.IllegalArgumentException:  Test
FAILED! Got 1 error(s)
result: Failed. Execution failed: `main' threw exception: java.lang.IllegalArgum
entException:  Test FAILED! Got 1 error(s)


test result: Failed. Execution failed: `main' threw exception: java.lang.Illegal
ArgumentException:  Test FAILED! Got 1 error(s)


The failure on Solaris X64 looks the same; here is the config info:

java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b22)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b10-fastdebug, compiled mode)