java.rmi.ConnectException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Firewall might be blocking your connection, or MySQL it's not running on your server machine.


rafael
tip

Check if you have started your server, or if your server is set to listen to the port you're trying to connect and is waiting to accept connections and check if the firewall isn't blocking your connection.


rafael
tip

Check if ip adress is correct, if the port is correct, and if the server is up and running and waiting for connections. Also, check if there's no firewall blocking you and if your internet connection is working.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Cant use RMI remote methods
    via Stack Overflow by shaldnikita
    ,
  • Remote Method Invocation over LAN network
    via Stack Overflow by StrayPointer
    ,
  • neo4j-shell connection refused on aws
    via Super User by DWGuru
    ,
  • {noformat} 1. I have 5 buckets on cluster named: multiple_table_db_2081_simple_table_1 multiple_table_db_2081_simple_table_10 multiple_table_db_2081_simple_table_2 multiple_table_db_2081_simple_table_4 multiple_table_db_2081_simple_table_3 Each is containing 1000 documents. 2 Started local cluster and tried connecting to feed using this curl command: curl -s --data indent=true --data format=CLEAN_JSON --data-urlencode statement@file.txt http://localhost:8095/analytics/service 3. Error seen in red-service.log: java.rmi.ConnectException: Connection refused to host: 172.23.107.110; 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:216) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:130) at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:194) at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:148) at com.sun.proxy.$Proxy10.setMetadataNode(Unknown Source) at org.apache.asterix.api.common.AsterixAppRuntimeContext.exportMetadataNodeStub(AsterixAppRuntimeContext.java:457) at org.apache.asterix.hyracks.bootstrap.NCApplicationEntryPoint.notifyStartupComplete(NCApplicationEntryPoint.java:242) at org.apache.hyracks.control.nc.NodeControllerService.start(NodeControllerService.java:309) at org.apache.hyracks.control.nc.NCDriver.main(NCDriver.java:48) 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:589) at java.net.Socket.connect(Socket.java:538) at java.net.Socket.<init>(Socket.java:434) at java.net.Socket.<init>(Socket.java:211) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:148) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613) ... 10 more {noformat} Attaching logs . file.txt contains: drop dataverse couchbase if exists; create dataverse couchbase; use couchbase; create type `value` as open{}; create type meta as open{ id:string, vbid:int32, seq:int64, cas:int64, expiration:int32, flags:int32, rev:int64, lock:int32 }; create dataset multiple(`value`) with meta(meta) primary key meta().id; create feed multiple_feed using `com.couchbase.analytics.CouchbaseConnectorFactory`( ("bucket"="multiple_table_db_2081_simple_table_1"), ("nodes"="127.0.0.1"), ("password"="") ); connect feed multiple_feed to dataset multiple;
    via by Prerna Manaktala,
    • java.rmi.ConnectException: Connection refused to host: 192.168.0.83; nested exception is: java.net.ConnectException: Connection timed out: connect at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source) at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source) at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source) at sun.rmi.server.UnicastRef.invoke(Unknown Source) at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source) at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source) at com.sun.proxy.$Proxy0.canConnect(Unknown Source) at server.Main.main(Main.java:16) Caused by: java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source) ... 8 more

    Users with the same issue

    Unknown visitor1 times, last one,
    marcbouvierdav
    1 times, last one,
    ivanszkypeter
    17 times, last one,
    jf-ast
    3 times, last one,
    Unknown visitor1 times, last one,
    709 more bugmates