Java Network Exception type

Source: Internet
Author: User
Tags connection reset java web

When you are doing Java Web programming, you may not be aware of some of the error messages. Here, I will be in the actual use of the information commonly used in the following summary.

In use, the Java network often appears with the following error message:

1,eofexception

Throw such an exception, which means that the connection is lost, that is, the other end of the network connection is not a normal shutdown connection (may be the host power off, network cable failure, etc.)

2,Connectexception:connection refused connect.

Throws such an exception to indicate that the current host does not exist because it cannot be connected

3,Socketexception:socket is closed.

Throws such an exception to indicate that the connection is properly closed, which means that the other end actively closes the connection

4,socketexception:connection reset.

Throws such an exception, which means that one end closes the connection and the other end is reading the data at this time

5,socketexception:connect reset by peer.

Throws such an exception, which means that one end closes the connection, and the other end is sending data at this time

6,Socketexception:broken pipe.

Throws such an exception to indicate that the connection is closed but continues to use (that is, read/write operations) This connection

7.bindexception:address already in use

Throws such an exception to indicate that the port is already occupied

The above 7 points is Java common Network error message, hope to give everyone in the development and maintenance of help.

Finally, I am engaged in Java Application Server development for two years, I hope this interested friends, can communicate with me, learn from each other.

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.