-
Bug
-
Resolution: Fixed
-
P4
-
7u91, 8u66, 9
-
b151
This test failure was spotted in a JDK9 Aurora Adhoc job:
sun/rmi/transport/tcp/DeadCachedConnection.java
This test failed due to "java.rmi.ConnectException: Connection refused to host: 10.128.128.51;
nested exception is: java.net.ConnectException: Connection refused".
I almost invalidated this test as an "infra" issue, but this test seems to be
expecting failure because we're intentionally trying to use a dead cached
connection. Perhaps this is just a failure mode that this test was not
expecting.
Here is a snippet from the .jtr file:
Trying to use registry in spite of stale cache...
java.rmi.ConnectException: Connection refused to host: 10.128.128.51; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:214)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:200)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:342)
at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
at DeadCachedConnection.main(DeadCachedConnection.java:88)
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:498)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:591)
at java.net.Socket.connect(Socket.java:540)
at java.net.Socket.<init>(Socket.java:436)
at java.net.Socket.<init>(Socket.java:213)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:144)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
... 11 more
JavaTest Message: Test threw exception: java.rmi.ConnectException: Connection refused to host: 10.128.128.51; nested exception is:
java.net.ConnectException: Connection refused
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.rmi.ConnectException: Connection refused to host: 10.128.128.51; nested exception is: java.net.ConnectException: Connection refused
RULE sun/rmi/transport/tcp/DeadCachedConnection.java Exception java.net.ConnectException: Connection refused
RULE sun/rmi/transport/tcp/DeadCachedConnection.java Exception java.rmi.ConnectException: Connection refused to host: ...; nested exception is: java.net.ConnectException: Connection refused
sun/rmi/transport/tcp/DeadCachedConnection.java
This test failed due to "java.rmi.ConnectException: Connection refused to host: 10.128.128.51;
nested exception is: java.net.ConnectException: Connection refused".
I almost invalidated this test as an "infra" issue, but this test seems to be
expecting failure because we're intentionally trying to use a dead cached
connection. Perhaps this is just a failure mode that this test was not
expecting.
Here is a snippet from the .jtr file:
Trying to use registry in spite of stale cache...
java.rmi.ConnectException: Connection refused to host: 10.128.128.51; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:214)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:200)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:342)
at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
at DeadCachedConnection.main(DeadCachedConnection.java:88)
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:498)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:591)
at java.net.Socket.connect(Socket.java:540)
at java.net.Socket.<init>(Socket.java:436)
at java.net.Socket.<init>(Socket.java:213)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:144)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
... 11 more
JavaTest Message: Test threw exception: java.rmi.ConnectException: Connection refused to host: 10.128.128.51; nested exception is:
java.net.ConnectException: Connection refused
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.rmi.ConnectException: Connection refused to host: 10.128.128.51; nested exception is: java.net.ConnectException: Connection refused
RULE sun/rmi/transport/tcp/DeadCachedConnection.java Exception java.net.ConnectException: Connection refused
RULE sun/rmi/transport/tcp/DeadCachedConnection.java Exception java.rmi.ConnectException: Connection refused to host: ...; nested exception is: java.net.ConnectException: Connection refused
- relates to
-
JDK-8025199 java/rmi/registry/reexport/Reexport.java failed with: Port already in use
-
- Resolved
-
-
JDK-8157777 TEST_BUG: DeadCachedConnection doesn't wait for registry to die
-
- Closed
-