JDK-8149084 : javax/management/remote/mandatory/subjectDelegation/SubjectDelegation1Test.java fails intermittently
  • Type: Bug
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 9,21,22
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2016-02-05
  • Updated: 2024-04-09
  • Resolved: 2024-04-09
Related Reports
Relates :  
Sub Tasks
JDK-8311186 :  
Description
javax/management/remote/mandatory/subjectDelegation/SubjectDelegation1Test.java fails intermittently.

Create the MBean server
Create SimpleStandard MBean
Initialize environment map
Create an RMI connector server
Create an RMI connector client
Unexpected exception caught = java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: 
	java.net.SocketTimeoutException: Read timed out
Bye! Bye!
----------System.err:(58/3903)----------
java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: 
	java.net.SocketTimeoutException: Read timed out
	at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:302)
	at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:200)
	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:130)
	at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
	at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2044)
	at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:297)
	at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:268)
	at SubjectDelegation1Test.main(SubjectDelegation1Test.java:151)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:520)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:804)
Caused by: java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
	at java.net.SocketInputStream.read(SocketInputStream.java:170)
	at java.net.SocketInputStream.read(SocketInputStream.java:141)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
	at java.io.DataInputStream.readByte(DataInputStream.java:265)
	at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:244)
	... 13 more
java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: 
	java.net.SocketTimeoutException: Read timed out
	at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:302)
	at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:200)
	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:130)
	at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
	at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2044)
	at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:297)
	at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:268)
	at SubjectDelegation1Test.main(SubjectDelegation1Test.java:151)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:520)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:804)
Caused by: java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
	at java.net.SocketInputStream.read(SocketInputStream.java:170)
	at java.net.SocketInputStream.read(SocketInputStream.java:141)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
	at java.io.DataInputStream.readByte(DataInputStream.java:265)
	at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:244)
	... 13 more

JavaTest Message: Test threw exception: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: 
	java.net.SocketTimeoutException: Read timed out
JavaTest Message: shutting down test
Comments
Reclosing as "Won't Fix" instead of Resolving as...
09-04-2024

Test has been removed.
09-04-2024

This test will be removed with the removal of the JMX Subject Delegation feature: https://bugs.openjdk.org/browse/JDK-8326666
26-02-2024

Here's a log file snippet from the jdk-22+4-279-tier5 sighting: javax/management/remote/mandatory/subjectDelegation/SubjectDelegation1Test.java #section:main ----------messages:(7/400)---------- command: main SubjectDelegation1Test policy11 ok reason: User specified action: run main SubjectDelegation1Test policy11 ok started: Thu Jun 29 09:27:51 UTC 2023 Mode: othervm Additional options from @modules: --add-modules java.management.rmi,java.management --add-exports java.management/com.sun.jmx.remote.security=ALL-UNNAMED finished: Thu Jun 29 09:27:53 UTC 2023 elapsed time (seconds): 2.316 ----------configuration:(4/143)---------- Boot Layer add modules: java.management.rmi java.management add exports: java.management/com.sun.jmx.remote.security ALL-UNNAMED ----------System.out:(13/845)---------- Policy file = policy11 Expected test result = ok Start RMI registry... RMI registry running on port 5801 Password file = /opt/mach5/mesos/work_dir/jib-master/install/jdk-22+4-279/src.full/open/test/jdk/javax/management/remote/mandatory/subjectDelegation/jmxremote.password PolicyFile = /opt/mach5/mesos/work_dir/jib-master/install/jdk-22+4-279/src.full/open/test/jdk/javax/management/remote/mandatory/subjectDelegation/policy11 Create the MBean server Create SimpleStandard MBean Initialize environment map Create an RMI connector server Unexpected exception caught = java.io.IOException: Cannot bind to URL [rmi://:5801/server5801]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: <IP_ADDR>; nested exception is: java.net.ConnectException: Connection refused] Bye! Bye! ----------System.err:(238/16811)---------- Jun 29, 2023 9:27:52 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1570) Jun 29, 2023 9:27:52 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1570) Jun 29, 2023 9:27:52 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1570) Jun 29, 2023 9:27:52 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1570) Jun 29, 2023 9:27:52 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1570) Jun 29, 2023 9:27:52 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1570) Jun 29, 2023 9:27:52 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1570) Jun 29, 2023 9:27:52 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1570) Jun 29, 2023 9:27:52 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1570) Jun 29, 2023 9:27:52 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1570) Jun 29, 2023 9:27:52 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1570) java.io.IOException: Cannot bind to URL [rmi://:5801/server5801]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: <IP_ADDR>; nested exception is: java.net.ConnectException: Connection refused] at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:831) at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:478) at SubjectDelegation1Test.main(SubjectDelegation1Test.java:132) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) at java.base/java.lang.Thread.run(Thread.java:1570) Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: <IP_ADDR>; nested exception is: java.net.ConnectException: Connection refused] at jdk.naming.rmi/com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:166) at java.naming/com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:243) at java.naming/javax.naming.InitialContext.bind(InitialContext.java:421) at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:690) at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:473) ... 5 more Caused by: java.rmi.ConnectException: Connection refused to host: <IP_ADDR>; nested exception is: java.net.ConnectException: Connection refused at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:625) at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:217) at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:204) at java.rmi/sun.rmi.server.UnicastRef.newCall(UnicastRef.java:345) at java.rmi/sun.rmi.registry.RegistryImpl_Stub.bind(RegistryImpl_Stub.java:65) at jdk.naming.rmi/com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:160) ... 9 more Caused by: java.net.ConnectException: Connection refused at java.base/sun.nio.ch.Net.connect0(Native Method) at java.base/sun.nio.ch.Net.connect(Net.java:589) at java.base/sun.nio.ch.Net.connect(Net.java:578) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:583) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:751) at java.base/java.net.Socket.connect(Socket.java:686) at java.base/java.net.Socket.<init>(Socket.java:555) at java.base/java.net.Socket.<init>(Socket.java:324) at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createSocket(TCPDirectSocketFactory.java:40) at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619) ... 14 more java.io.IOException: Cannot bind to URL [rmi://:5801/server5801]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: <IP_ADDR>; nested exception is: java.net.ConnectException: Connection refused] at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:831) at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:478) at SubjectDelegation1Test.main(SubjectDelegation1Test.java:132) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) at java.base/java.lang.Thread.run(Thread.java:1570) Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: <IP_ADDR>; nested exception is: java.net.ConnectException: Connection refused] at jdk.naming.rmi/com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:166) at java.naming/com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:243) at java.naming/javax.naming.InitialContext.bind(InitialContext.java:421) at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:690) at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:473) ... 5 more Caused by: java.rmi.ConnectException: Connection refused to host: <IP_ADDR>; nested exception is: java.net.ConnectException: Connection refused at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:625) at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:217) at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:204) at java.rmi/sun.rmi.server.UnicastRef.newCall(UnicastRef.java:345) at java.rmi/sun.rmi.registry.RegistryImpl_Stub.bind(RegistryImpl_Stub.java:65) at jdk.naming.rmi/com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:160) ... 9 more Caused by: java.net.ConnectException: Connection refused at java.base/sun.nio.ch.Net.connect0(Native Method) at java.base/sun.nio.ch.Net.connect(Net.java:589) at java.base/sun.nio.ch.Net.connect(Net.java:578) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:583) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:751) at java.base/java.net.Socket.connect(Socket.java:686) at java.base/java.net.Socket.<init>(Socket.java:555) at java.base/java.net.Socket.<init>(Socket.java:324) at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createSocket(TCPDirectSocketFactory.java:40) at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619) ... 14 more JavaTest Message: Test threw exception: java.io.IOException: Cannot bind to URL [rmi://:5801/server5801]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: <IP_ADDR>; nested exception is: java.net.ConnectException: Connection refused] JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.io.IOException: Cannot bind to URL [rmi://:5801/server5801]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: <IP_ADDR>; nested exception is: java.net.ConnectException: Connection refused] ----------rerun:(41/6077)*----------
29-06-2023

In the recent sighting, the RMI TCPTransport fails to accept on its desired socket. (Not related to other VirtualThread failures in management tests.) Rare failure. This feature is now deprecated. The original failure logged in this bug had got a little further, was a tcp read timeout. Wait to see if this is a one-off. We will visit this again if needed for these failures, or will be back here when the feature is removed.
06-06-2023

Heres a log file snippet for the jdk-21+26-2281-tier3 sighting: javax/management/remote/mandatory/subjectDelegation/SubjectDelegation1Test.java #section:main ----------messages:(7/400)---------- command: main SubjectDelegation1Test policy11 ok reason: User specified action: run main SubjectDelegation1Test policy11 ok started: Tue Jun 06 18:39:37 UTC 2023 Mode: othervm Additional options from @modules: --add-modules java.management.rmi,java.management --add-exports java.management/com.sun.jmx.remote.security=ALL-UNNAMED finished: Tue Jun 06 18:39:37 UTC 2023 elapsed time (seconds): 0.933 ----------configuration:(4/143)---------- Boot Layer add modules: java.management.rmi java.management add exports: java.management/com.sun.jmx.remote.security ALL-UNNAMED ----------System.out:(13/843)---------- Policy file = policy11 Expected test result = ok Start RMI registry... RMI registry running on port 5801 Password file = /opt/mach5/mesos/work_dir/jib-master/install/jdk-21+26-2281/src.full/open/test/jdk/javax/management/remote/mandatory/subjectDelegation/jmxremote.password PolicyFile = /opt/mach5/mesos/work_dir/jib-master/install/jdk-21+26-2281/src.full/open/test/jdk/javax/management/remote/mandatory/subjectDelegation/policy11 Create the MBean server Create SimpleStandard MBean Initialize environment map Create an RMI connector server Unexpected exception caught = java.io.IOException: Cannot bind to URL [rmi://:5801/server5801]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Connection reset] Bye! Bye! ----------System.err:(234/16719)---------- Jun 06, 2023 6:39:37 PM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1583) Jun 06, 2023 6:39:37 PM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1583) Jun 06, 2023 6:39:37 PM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1583) Jun 06, 2023 6:39:37 PM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1583) Jun 06, 2023 6:39:37 PM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1583) Jun 06, 2023 6:39:37 PM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1583) Jun 06, 2023 6:39:37 PM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1583) Jun 06, 2023 6:39:37 PM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1583) Jun 06, 2023 6:39:37 PM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1583) Jun 06, 2023 6:39:37 PM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1583) Jun 06, 2023 6:39:37 PM sun.rmi.transport.tcp.TCPTransport$AcceptLoop run WARNING: RMI TCP Accept-5801: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=5801] throws java.io.IOException: Invalid argument at java.base/sun.nio.ch.Net.accept(Native Method) at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:748) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:698) at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:663) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:639) at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:585) at java.base/java.net.ServerSocket.accept(ServerSocket.java:543) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:424) at java.rmi/sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:388) at java.base/java.lang.Thread.run(Thread.java:1583) java.io.IOException: Cannot bind to URL [rmi://:5801/server5801]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Connection reset] at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:831) at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:478) at SubjectDelegation1Test.main(SubjectDelegation1Test.java:132) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Connection reset] at jdk.naming.rmi/com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:166) at java.naming/com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:243) at java.naming/javax.naming.InitialContext.bind(InitialContext.java:421) at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:690) at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:473) ... 5 more Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Connection reset at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:308) at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:204) at java.rmi/sun.rmi.server.UnicastRef.newCall(UnicastRef.java:345) at java.rmi/sun.rmi.registry.RegistryImpl_Stub.bind(RegistryImpl_Stub.java:65) at jdk.naming.rmi/com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:160) ... 9 more Caused by: java.net.SocketException: Connection reset at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:318) at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:346) at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:796) at java.base/java.net.Socket$SocketInputStream.read(Socket.java:1099) at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:291) at java.base/java.io.BufferedInputStream.implRead(BufferedInputStream.java:325) at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:312) at java.base/java.io.DataInputStream.readUnsignedByte(DataInputStream.java:295) at java.base/java.io.DataInputStream.readByte(DataInputStream.java:275) at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:247) ... 13 more java.io.IOException: Cannot bind to URL [rmi://:5801/server5801]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Connection reset] at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:831) at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:478) at SubjectDelegation1Test.main(SubjectDelegation1Test.java:132) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Connection reset] at jdk.naming.rmi/com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:166) at java.naming/com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:243) at java.naming/javax.naming.InitialContext.bind(InitialContext.java:421) at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:690) at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:473) ... 5 more Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Connection reset at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:308) at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:204) at java.rmi/sun.rmi.server.UnicastRef.newCall(UnicastRef.java:345) at java.rmi/sun.rmi.registry.RegistryImpl_Stub.bind(RegistryImpl_Stub.java:65) at jdk.naming.rmi/com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:160) ... 9 more Caused by: java.net.SocketException: Connection reset at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:318) at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:346) at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:796) at java.base/java.net.Socket$SocketInputStream.read(Socket.java:1099) at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:291) at java.base/java.io.BufferedInputStream.implRead(BufferedInputStream.java:325) at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:312) at java.base/java.io.DataInputStream.readUnsignedByte(DataInputStream.java:295) at java.base/java.io.DataInputStream.readByte(DataInputStream.java:275) at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:247) ... 13 more JavaTest Message: Test threw exception: java.io.IOException: Cannot bind to URL [rmi://:5801/server5801]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Connection reset] JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.io.IOException: Cannot bind to URL [rmi://:5801/server5801]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Connection reset] ----------rerun:(38/5904)*----------
06-06-2023

ILW = M (test noise) L (intermittent) H (no workaround) = P4
08-02-2016