java.net.ConnectException: Connection refused at sun.rmi.transport.tcp.TCPEndpoint.newSocket(java.rmi@9-ea/TCPEndpoint.java:619) at sun.rmi.transport.tcp.TCPChannel.createConnection(java.rmi@9-ea/TCPChannel.java:214) at sun.rmi.transport.tcp.TCPChannel.newConnection(java.rmi@9-ea/TCPChannel.java:200) at sun.rmi.server.UnicastRef.invoke(java.rmi@9-ea/UnicastRef.java:130) at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(java.rmi@9-ea/RemoteObjectInvocationHandler.java:209) at java.rmi.server.RemoteObjectInvocationHandler.invoke(java.rmi@9-ea/RemoteObjectInvocationHandler.java:161)

JDK Bug System | Frank Yuan | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ----------System.err:(80/7469)---------- RMID: Starting rmid on port 62253. JAVAVM: command = [/scratch/jenkins/workspace/9-dev/jdk/bin/java, -ea, -esa, -Xmx512m, -Djava.security.policy=/scratch/jenkins/workspace/9-dev/jdk/test/java/rmi/activation/Activatable/checkRegisterInLog/rmid.security.policy, -Dsun.rmi.server.activation.debugExec=true, -Dtest.src=/scratch/jenkins/workspace/9-dev/jdk/test/java/rmi/activation/Activatable/checkRegisterInLog, -Dtest.classes=/scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/classes/5/java/rmi/activation/Activatable/checkRegisterInLog, -Djava.rmi.server.logLevel=v, -Dsun.rmi.activation.execTimeout=60000, sun.rmi.server.Activation, -log, /scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/scratch/3/./log, -port, 62253, -C-Dtest.src=/scratch/jenkins/workspace/9-dev/jdk/test/java/rmi/activation/Activatable/checkRegisterInLog, -C-Dtest.classes=/scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/classes/5/java/rmi/activation/Activatable/checkRegisterInLog, -C-ea, -C-esa, -C-Xmx512m, -C-Djava.rmi.server.useCodebaseOnly=false] RMID: Started successfully after 1582ms. Creating group descriptor Registering group Creating descriptor Registering descriptor RMID: shutdown() RMID: ActivationSystem.shutdown() activation daemon shut down RMID: Shutdown successful after 405ms. RMID: Starting rmid on port 62253. JAVAVM: command = [/scratch/jenkins/workspace/9-dev/jdk/bin/java, -ea, -esa, -Xmx512m, -Djava.security.policy=/scratch/jenkins/workspace/9-dev/jdk/test/java/rmi/activation/Activatable/checkRegisterInLog/rmid.security.policy, -ea, -esa, -Xmx512m, -Djava.security.policy=/scratch/jenkins/workspace/9-dev/jdk/test/java/rmi/activation/Activatable/checkRegisterInLog/rmid.security.policy, -Dsun.rmi.server.activation.debugExec=true, -Dtest.src=/scratch/jenkins/workspace/9-dev/jdk/test/java/rmi/activation/Activatable/checkRegisterInLog, -Dtest.classes=/scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/classes/5/java/rmi/activation/Activatable/checkRegisterInLog, -Djava.rmi.server.logLevel=v, -Dsun.rmi.activation.execTimeout=60000, sun.rmi.server.Activation, -log, /scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/scratch/3/./log, -port, 62253, -C-Dtest.src=/scratch/jenkins/workspace/9-dev/jdk/test/java/rmi/activation/Activatable/checkRegisterInLog, -C-Dtest.classes=/scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/classes/5/java/rmi/activation/Activatable/checkRegisterInLog, -C-ea, -C-esa, -C-Xmx512m, -C-Djava.rmi.server.useCodebaseOnly=false] RMID: Started successfully after 1020ms. activation daemon shut down Activate the object via method call failure: unexpected exception java.rmi.ConnectException: activation failed; nested exception is: java.rmi.ConnectException: Connection refused to host: 10.128.66.218; nested exception is: java.net.ConnectException: Connection refused java.rmi.ConnectException: activation failed; nested exception is: java.rmi.ConnectException: Connection refused to host: 10.128.66.218; nested exception is: java.net.ConnectException: Connection refused at sun.rmi.server.ActivatableRef.activate(java.rmi@9-ea/ActivatableRef.java:298) at sun.rmi.server.ActivatableRef.invoke(java.rmi@9-ea/ActivatableRef.java:133) at CheckRegisterInLog_Stub.ping(CheckRegisterInLog_Stub.java:77) at CheckRegisterInLog.main(CheckRegisterInLog.java:154) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:533) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:843) Caused by: java.rmi.ConnectException: Connection refused to host: 10.128.66.218; nested exception is: java.net.ConnectException: Connection refused at sun.rmi.transport.tcp.TCPEndpoint.newSocket(java.rmi@9-ea/TCPEndpoint.java:619) at sun.rmi.transport.tcp.TCPChannel.createConnection(java.rmi@9-ea/TCPChannel.java:214) at sun.rmi.transport.tcp.TCPChannel.newConnection(java.rmi@9-ea/TCPChannel.java:200) at sun.rmi.server.UnicastRef.invoke(java.rmi@9-ea/UnicastRef.java:130) at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(java.rmi@9-ea/RemoteObjectInvocationHandler.java:209) at java.rmi.server.RemoteObjectInvocationHandler.invoke(java.rmi@9-ea/RemoteObjectInvocationHandler.java:161) at com.sun.proxy.$Proxy0.activate(Unknown Source) at java.rmi.activation.ActivationID.activate(java.rmi@9-ea/ActivationID.java:118) at sun.rmi.server.ActivatableRef.activate(java.rmi@9-ea/ActivatableRef.java:277) ... 9 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(java.base@9-ea/Native Method) at java.net.AbstractPlainSocketImpl.doConnect(java.base@9-ea/AbstractPlainSocketImpl.java:400) at java.net.AbstractPlainSocketImpl.connectToAddress(java.base@9-ea/AbstractPlainSocketImpl.java:243) at java.net.AbstractPlainSocketImpl.connect(java.base@9-ea/AbstractPlainSocketImpl.java:225) at java.net.SocksSocketImpl.connect(java.base@9-ea/SocksSocketImpl.java:402) at java.net.Socket.connect(java.base@9-ea/Socket.java:591) at java.net.Socket.connect(java.base@9-ea/Socket.java:540) at java.net.Socket.<init>(java.base@9-ea/Socket.java:436) at java.net.Socket.<init>(java.base@9-ea/Socket.java:213) at sun.rmi.transport.tcp.TCPDirectSocketFactory.createSocket(java.rmi@9-ea/TCPDirectSocketFactory.java:40) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(java.rmi@9-ea/TCPEndpoint.java:613) ... 17 more RMID: shutdown() RMID: lookupSystem() returned null after 2ms. RMID: Destroying RMID process. RMID: Destroy successful after 3ms. RMID: Removing rmid's old log file. java.lang.RuntimeException: CheckRegisterInLog got exception activation failed; nested exception is: java.rmi.ConnectException: Connection refused to host: 10.128.66.218; nested exception is: java.net.ConnectException: Connection refused at CheckRegisterInLog.main(CheckRegisterInLog.java:169) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:533) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:843) JavaTest Message: Test threw exception: java.lang.RuntimeException: CheckRegisterInLog got exception activation failed; nested exception is: java.rmi.ConnectException: Connection refused to host: 10.128.66.218; nested exception is: java.net.ConnectException: Connection refused JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.RuntimeException: CheckRegisterInLog got exception activation failed; nested exception is: java.rmi.ConnectException: Connection refused to host: 10.128.66.218; nested exception is: java.net.ConnectException: Connection refused ----------rerun:(30/3099)*---------- HOME=/opt/mach5/mach5-one \\ LANG=en_US.UTF-8 \\ LC_ALL=en_US.UTF-8 \\ PATH=/bin:/usr/bin \\ buildid=BUILD_ID \\ CLASSPATH=/scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/classes/5/java/rmi/activation/Activatable/checkRegisterInLog:/scratch/jenkins/workspace/9-dev/jdk/test/java/rmi/activation/Activatable/checkRegisterInLog:/scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/classes/5/java/rmi/testlibrary:/scratch/jenkins/workspace/9-dev/jdk/test/java/rmi/testlibrary:/scratch/jenkins/workspace/mach5data/unpacked/jpg/infra/builddeps/jtreg-4.2/1.2/jtreg/lib/javatest.jar:/scratch/jenkins/workspace/mach5data/unpacked/jpg/infra/builddeps/jtreg-4.2/1.2/jtreg/lib/jtreg.jar \\ /scratch/jenkins/workspace/9-dev/jdk/bin/java \\ -Dtest.class.path.prefix=/scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/classes/5/java/rmi/activation/Activatable/checkRegisterInLog:/scratch/jenkins/workspace/9-dev/jdk/test/java/rmi/activation/Activatable/checkRegisterInLog:/scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/classes/5/java/rmi/testlibrary \\ -Dtest.src=/scratch/jenkins/workspace/9-dev/jdk/test/java/rmi/activation/Activatable/checkRegisterInLog \\ -Dtest.src.path=/scratch/jenkins/workspace/9-dev/jdk/test/java/rmi/activation/Activatable/checkRegisterInLog:/scratch/jenkins/workspace/9-dev/jdk/test/java/rmi/testlibrary \\ -Dtest.classes=/scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/classes/5/java/rmi/activation/Activatable/checkRegisterInLog \\ -Dtest.class.path=/scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/classes/5/java/rmi/activation/Activatable/checkRegisterInLog:/scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/classes/5/java/rmi/testlibrary \\ -Dtest.vm.opts='-ea -esa -Xmx512m' \\ -Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m' \\ -Dtest.compiler.opts= \\ -Dtest.java.opts= \\ -Dtest.jdk=/scratch/jenkins/workspace/9-dev/jdk \\ -Dcompile.jdk=/scratch/jenkins/workspace/9-dev/jdk \\ -Dtest.timeout.factor=5.0 \\ -Dtest.modules='java.rmi/sun.rmi.registry java.rmi/sun.rmi.server java.rmi/sun.rmi.transport java.rmi/sun.rmi.transport.tcp' \\ -Djava.security.policy==/scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/scratch/3/security.policy_new \\ -Djava.security.manager=default \\ -XaddExports:java.rmi/sun.rmi.registry=ALL-UNNAMED \\ -XaddExports:java.rmi/sun.rmi.server=ALL-UNNAMED \\ -XaddExports:java.rmi/sun.rmi.transport=ALL-UNNAMED \\ -XaddExports:java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED \\ -ea \\ -esa \\ -Xmx512m \\ com.sun.javatest.regtest.agent.MainWrapper /scratch/jenkins/workspace/9-dev/testresults/linux-x64-open/tier3/JTwork/jdk_test/java/rmi/activation/Activatable/checkRegisterInLog/CheckRegisterInLog.d/main.0.jta result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: CheckRegisterInLog got exception activation failed; nested exception is: java.rmi.ConnectException: Connection refused to host: 10.128.66.218; nested exception is: java.net.ConnectException: Connection refused test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: CheckRegisterInLog got exception activation failed; nested exception is: java.rmi.ConnectException: Connection refused to host: 10.128.66.218; nested exception is: java.net.ConnectException: Connection refused

    JDK Bug System | 9 months ago | Frank Yuan
    java.net.ConnectException: Connection refused at sun.rmi.transport.tcp.TCPEndpoint.newSocket(java.rmi@9-ea/TCPEndpoint.java:619) at sun.rmi.transport.tcp.TCPChannel.createConnection(java.rmi@9-ea/TCPChannel.java:214) at sun.rmi.transport.tcp.TCPChannel.newConnection(java.rmi@9-ea/TCPChannel.java:200) at sun.rmi.server.UnicastRef.invoke(java.rmi@9-ea/UnicastRef.java:130) at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(java.rmi@9-ea/RemoteObjectInvocationHandler.java:209) at java.rmi.server.RemoteObjectInvocationHandler.invoke(java.rmi@9-ea/RemoteObjectInvocationHandler.java:161)

    Root Cause Analysis

    1. java.net.ConnectException

      Connection refused at sun.rmi.transport.tcp.TCPEndpoint.newSocket(java.rmi@9-ea/TCPEndpoint.java:619) at sun.rmi.transport.tcp.TCPChannel.createConnection(java.rmi@9-ea/TCPChannel.java:214) at sun.rmi.transport.tcp.TCPChannel.newConnection(java.rmi@9-ea/TCPChannel.java:200) at sun.rmi.server.UnicastRef.invoke(java.rmi@9-ea/UnicastRef.java:130) at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(java.rmi@9-ea/RemoteObjectInvocationHandler.java:209) at java.rmi.server.RemoteObjectInvocationHandler.invoke(java.rmi@9-ea/RemoteObjectInvocationHandler.java:161)

      at com.sun.proxy.$Proxy0.activate()
    2. com.sun.proxy
      $Proxy0.activate
      1. com.sun.proxy.$Proxy0.activate(Unknown Source)
      1 frame