JDK-7132199 : sun/management/jmxremote/bootstrap/JvmstatCountersTest.java failing on all platforms
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: hs23,8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,other
  • CPU: generic,other
  • Submitted: 2012-01-21
  • Updated: 2014-01-15
  • Resolved: 2012-02-07
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 7 JDK 8
7u4Fixed 8 b25Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
This test fails on all platforms with jdk8 jobs in JPRT, here's a sample snippet from the jtr file:

--------------------------------------------------
TEST: sun/management/jmxremote/bootstrap/JvmstatCountersTest.java
JDK under test: (/tmp/jprt/P2/122918.albatem/testproduct/linux_i586_2.6-product)
java version "1.8.0-internal"
Java(TM) SE Runtime Environment (build 1.8.0-internal-201201211229.albatem.tl-b00)
Java HotSpot(TM) Server VM (build 23.0-b10, mixed mode)

ACTION: clean -- Passed. Clean successful
REASON: User specified action: run clean JvmstatCountersTest 
TIME:   0.001 seconds
messages:
command: clean JvmstatCountersTest
reason: User specified action: run clean JvmstatCountersTest 
elapsed time (seconds): 0.001

ACTION: build -- Passed. Build successful
REASON: User specified action: run build JvmstatCountersTest 
TIME:   0.99 seconds
messages:
command: build JvmstatCountersTest
reason: User specified action: run build JvmstatCountersTest 
elapsed time (seconds): 0.99

ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME:   0.989 seconds
messages:
command: compile /tmp/jprt/P2/122918.albatem/source/jdk/test/sun/management/jmxremote/bootstrap/JvmstatCountersTest.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.989
STDOUT:
STDERR:
/tmp/jprt/P2/122918.albatem/source/jdk/test/sun/management/jmxremote/bootstrap/JvmstatCountersTest.java:44: warning: ConnectorAddressLink is internal proprietary API and may be removed in a future release
import sun.management.ConnectorAddressLink;
                     ^
/tmp/jprt/P2/122918.albatem/source/jdk/test/sun/management/jmxremote/bootstrap/JvmstatCountersTest.java:75: warning: ConnectorAddressLink is internal proprietary API and may be removed in a future release
        String localAddress = ConnectorAddressLink.importFrom(0);
                              ^
/tmp/jprt/P2/122918.albatem/source/jdk/test/sun/management/jmxremote/bootstrap/JvmstatCountersTest.java:76: warning: ConnectorAddressLink is internal proprietary API and may be removed in a future release
        Map<String, String> remoteData = ConnectorAddressLink.importRemoteFrom(0);
                                         ^
/tmp/jprt/P2/122918.albatem/source/jdk/test/sun/management/jmxremote/bootstrap/JvmstatCountersTest.java:150: warning: ConnectorAddressLink is internal proprietary API and may be removed in a future release
                String localAddress2 = ConnectorAddressLink.importFrom(0);
                                       ^
/tmp/jprt/P2/122918.albatem/source/jdk/test/sun/management/jmxremote/bootstrap/JvmstatCountersTest.java:157: warning: ConnectorAddressLink is internal proprietary API and may be removed in a future release
                Map<String, String> remoteData2 = ConnectorAddressLink.importRemoteFrom(0);
                                                  ^
5 warnings

ACTION: build -- Passed. All files up to date
REASON: Named class compiled on demand
TIME:   0.0 seconds
messages:
command: build JvmstatCountersTest
reason: Named class compiled on demand
elapsed time (seconds): 0.0

ACTION: main -- Passed. Execution successful
REASON: User specified action: run main/othervm JvmstatCountersTest 1 
TIME:   0.195 seconds
messages:
command: main JvmstatCountersTest 1
reason: User specified action: run main/othervm JvmstatCountersTest 1 
elapsed time (seconds): 0.195
STDOUT:
Test PASSED! The OOTB management agent didn't publish any jvmstat counter.
Bye! Bye!
STDERR:
STATUS:Passed.

ACTION: build -- Passed. All files up to date
REASON: Named class compiled on demand
TIME:   0.0 seconds
messages:
command: build JvmstatCountersTest
reason: Named class compiled on demand
elapsed time (seconds): 0.0

ACTION: main -- Passed. Execution successful
REASON: User specified action: run main/othervm -Dcom.sun.management.jmxremote JvmstatCountersTest 2 
TIME:   0.927 seconds
messages:
command: main -Dcom.sun.management.jmxremote JvmstatCountersTest 2
reason: User specified action: run main/othervm -Dcom.sun.management.jmxremote JvmstatCountersTest 2 
elapsed time (seconds): 0.927
STDOUT:
Address = service:jmx:rmi://127.0.0.1/stub/rO0ABXNyAC5qYXZheC5tYW5hZ2VtZW50LnJlbW90ZS5ybWkuUk1JU2VydmVySW1wbF9TdHViAAAAAAAAAAICAAB4cgAaamF2YS5ybWkuc2VydmVyLlJlbW90ZVN0dWLp/tzJi+FlGgIAAHhyABxqYXZhLnJtaS5zZXJ2ZXIuUmVtb3RlT2JqZWN002G0kQxhMx4DAAB4cHc5AAtVbmljYXN0UmVmMgAADjEwLjEzMy4xMzYuMTUwAAC29nDBPmBDon6DY8EYnwAAATUBkhrbgAEAeA==
MBean Count = 21
Test PASSED! The OOTB management agent only publishes the local connector through a jvmstat counter.
Bye! Bye!
STDERR:
STATUS:Passed.

ACTION: build -- Passed. All files up to date
REASON: Named class compiled on demand
TIME:   0.0 seconds
messages:
command: build JvmstatCountersTest
reason: Named class compiled on demand
elapsed time (seconds): 0.0

ACTION: main -- Passed. Execution successful
REASON: User specified action: run main/othervm -Dcom.sun.management.jmxremote.port=0 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false JvmstatCountersTest 3 
TIME:   0.887 seconds
messages:
command: main -Dcom.sun.management.jmxremote.port=0 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false JvmstatCountersTest 3
reason: User specified action: run main/othervm -Dcom.sun.management.jmxremote.port=0 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false JvmstatCountersTest 3 
elapsed time (seconds): 0.887
STDOUT:
Address = service:jmx:rmi://127.0.0.1/stub/rO0ABXNyAC5qYXZheC5tYW5hZ2VtZW50LnJlbW90ZS5ybWkuUk1JU2VydmVySW1wbF9TdHViAAAAAAAAAAICAAB4cgAaamF2YS5ybWkuc2VydmVyLlJlbW90ZVN0dWLp/tzJi+FlGgIAAHhyABxqYXZhLnJtaS5zZXJ2ZXIuUmVtb3RlT2JqZWN002G0kQxhMx4DAAB4cHc5AAtVbmljYXN0UmVmMgAADjEwLjEzMy4xMzYuMTUwAADV0gQSwYrEub1DglLp8wAAATUBkh4wgAIAeA==
MBean Count = 21
Address = service:jmx:rmi:///jndi/rmi://prt-x2200-1:40765/jmxrmi
MBean Count = 21
OK: sun.management.JMXConnectorServer.0.remoteAddress=service:jmx:rmi:///jndi/rmi://prt-x2200-1:40765/jmxrmi
OK: sun.management.JMXConnectorServer.0.authenticate=false
OK: sun.management.JMXConnectorServer.0.ssl=false
OK: sun.management.JMXConnectorServer.0.sslRegistry=false
OK: sun.management.JMXConnectorServer.0.sslNeedClientAuth=false
Test PASSED! The OOTB management agent publishes both the local and remote connector info through jvmstat counters.
Bye! Bye!
STDERR:
STATUS:Passed.

ACTION: build -- Passed. All files up to date
REASON: Named class compiled on demand
TIME:   0.0 seconds
messages:
command: build JvmstatCountersTest
reason: Named class compiled on demand
elapsed time (seconds): 0.0

ACTION: main -- Failed. Execution failed: `main' threw exception: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded
REASON: User specified action: run main/othervm JvmstatCountersTest 4 
TIME:   5.614 seconds
messages:
command: main JvmstatCountersTest 4
reason: User specified action: run main/othervm JvmstatCountersTest 4 
elapsed time (seconds): 5.614
STDOUT:
name = 8004@prt-x2200-1
vmid = 8004
STDERR:
com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded
	at sun.tools.attach.LinuxVirtualMachine.<init>(LinuxVirtualMachine.java:102)
	at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:63)
	at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:213)
	at JvmstatCountersTest.main(JvmstatCountersTest.java:145)
	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: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: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded

TEST RESULT: Failed. Execution failed: `main' threw exception: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded
--------------------------------------------------

Comments
EVALUATION http://hg.openjdk.java.net/jdk8/tl/jdk/rev/431bc327f34a
31-01-2012

EVALUATION .
29-01-2012