java.net.ConnectException: Connection refused

JDK Bug System | Frank Yuan | 6 months ago
  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 | 6 months ago | Frank Yuan
    java.net.ConnectException: Connection refused
  2. 0
    Check if your MongoDB is available.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    You should access rundeck using that 'grails.serverURL' from the config file 'rundeck-config.properties'.
    via GitHub by gschueler

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.net.ConnectException

      Connection refused

      at CheckRegisterInLog.main()
    2. Unknown
      CheckRegisterInLog.main
      1. CheckRegisterInLog.main(CheckRegisterInLog.java:169)
      1 frame
    3. com.sun.javatest
      MainWrapper$MainThread.run
      1. com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      1 frame