Exception Java.net.ConnectException:Connection Refused:no further information

Source: Internet
Author: User

Java.net.ConnectException:Connection Refused:no Further information
At Sun.nio.ch.SocketChannelImpl.checkConnect (Native Method)
At Sun.nio.ch.SocketChannelImpl.finishConnect (socketchannelimpl.java:739)
At Org.apache.zookeeper.ClientCnxnSocketNIO.doTransport (clientcnxnsocketnio.java:361)
At Org.apache.zookeeper.clientcnxn$sendthread.run (clientcnxn.java:1141)
2018-03-20 16:29:50,781 [Localhost-startstop-1-sendthread (192.168.220.129:2181)] [ Org.apache.zookeeper.clientcnxnsocketnio]-[debug] Ignoring exception during shutdown input

This error will be reported at the start of the launch.

See the error, there

The first one depends on whether your server is really running, such as server loading exceptions during startup, which can cause the service to start unsuccessfully.

The second might be the cause of the firewall, try shutting down the firewall

I start by shutting down the firewall and then starting the service

You can use the command to turn off the firewall under Linux

Service iptables stop to turn off the firewall

When I start the service, after shutting down the firewall, the program will start normally

Exception Java.net.ConnectException:Connection Refused:no further information

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.