Address idea Startup Project error: Unable to open debugger port (127.0.0.1:60157): java.net.SocketException "Socket closed

Source: Internet
Author: User
1. Description of the problem:

Work is unavoidable to restart the service, debug mode occasionally start the project, but failed to start error: Unable to open debugger port (127.0.0.1:60157): java.net.SocketException "socket Closed

2. Cause analysis

The reason for this error is that the port is occupied due to the

3. Workaround

There are two main workarounds: Modify the port configuration (recommended), close the process that occupies the port (not recommended).

Mode One: Modify the port configuration (recommended) the occupied port may be a local port, or it may be a JMX port or a port in debug mode, configure the port location, try to modify the boot Tomcat does not error can be

Mode two: Close the process that occupies the port (not recommended)

Locate the process that occupies the port and close it, but this approach may cause the useful process to be forcibly closed, so it is not recommended

First step: cmd Open command Line window, execute command: NETSTAT-AON|FINDSTR "1099" to find the process that occupies the port

Second step: According to the PID, continue to execute the command: taskkill-f-pid 15380 Close the process

Address idea Startup Project error: Unable to open debugger port (127.0.0.1:60157): java.net.SocketException "Socket closed

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.