java.rmi.ConnectException

Connection refused to host: 172.28.220.63; nested exception is: java.net.ConnectException: Connection refused: connect

Samebug tips3

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

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web462

  • via Google Groups by Unknown author, 6 months ago
    Connection refused to host: > > 172.28.220.63; nested exception is: > > java.net.ConnectException: Connection refused: connect >
  • via Oracle Community by 843793, 2 weeks ago
    Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect
  • via Oracle Community by 843793, 1 year ago
    Connection refused to host: <servermachine>; nested exception is: java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect
  • Stack trace

    • java.rmi.ConnectException: Connection refused to host: 172.28.220.63; nested exception is: java.net.ConnectException: Connection refused: 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 org.apache.jmeter.samplers.RemoteSampleListenerImpl_Stub.processBatch(Unknown Source) at org.apache.jmeter.samplers.BatchSampleSender.sampleOccurred(BatchSampleSender.java:172) at org.apache.jmeter.samplers.DataStrippingSampleSender.sampleOccurred(DataStrippingSampleSender.java:92) at org.apache.jmeter.samplers.RemoteListenerWrapper.sampleOccurred(RemoteListenerWrapper.java:104) at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:84) at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:783) at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:442) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256) at java.lang.Thread.run(Unknown Source) Caused by: java.net.ConnectException: Connection refused: 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) ... 13 more

    Write tip

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

    Users with the same issue

    16 times, 11 hours ago
    Unknown user
    Once, 1 week ago
    2 times, 3 weeks ago
    Unknown user
    Once, 4 weeks ago
    Once, 1 month ago
    711 more bugmates