Solution: Idea Unable to import MAVEN project see logs for details question +java http request Java.net.SocketException:Permission Denied:conn ECT issues

Source: Internet
Author: User

Background: wrote a maven project for Java to send HTTP requests with idea.

At run time, Project report java.net.SocketException:Permission denied:connect problem;

When modifying a pom file to automatically update dependencies, the idea newspaper unable to import the MAVEN project see logs for details issue.

At first, I thought it was the cause of the environment variable: 76549073 After you add an environment variable or not

Then think of it as the cause of Windows Firewall, first add idea to the firewall allow list, do not, and then simply shut down the firewall, or not.

Online said may also be the cause of the agent, but I do not use the agent.

Then I gave someone a copy of my Code, ran it on someone else's machine, and ran through it.

So guess is because my computer is through the mobile phone USB share network connection, it is likely that the phone has permission to control. Read an article before, said wirelessly Java if you want to send an HTTP request, you must configure a thing in Manifest.xml, otherwise the installation has permission control: 8003654. So guess is because of this, the computer through the mobile phone network, so the request on the Android system, is blocked by Android.

So with the computer directly connected to the WiFi test or not, the same error.

Resolution: 1, according to error unable to import MAVEN project see logs for details, view the idea error log: Help "show Log in Explorer" open Idea.log file

Pull to the bottom and find the error details by time:

Warn do not see first, directly look at the error and cause by, you can extract the following key error messages:

error-#org. Jetbrains.idea.maven-cannot Reconnect.
Java.lang.RuntimeException:Cannot Reconnect.

Caused by: Java.rmi.RemoteException:Cannot start maven service, nested exception is:
Com.intellij.execution.ExecutionException:java.rmi.server.ExportException:Port already in use:0; Nested exception is:
Java.net.BindException:Address already in Use:jvm_bind

Caused by: java.net.BindException:Address already in Use:jvm_bind

Caused by: com.intellij.execution.ExecutionException:java.rmi.server.ExportException: Port already in use:0; Nested exception is:

Caused by: java.net.BindException:Address already in Use:jvm_bind

As you can see, cannot import Maven project (which is actually unable to update dependencies) is due to a port that is in use (which incorrectly prompts port No. 0 but is actually found to be not port No. 0) and the JVM is occupied causing the MAVEN service to fail to start. 2, according to the error prompt java.net.SocketException:Permission Denied:connect, single-Step debugging the project, found in the debugging process a new error message appears:

Disconnected from the target VM, address: ' 127.0.0.1:xxxx ', Transport: ' Socket '

This can be determined by the fact that the use of the port, including the MAVEN service, could not start, causing the MAVEN project to run an error and also cause the idea update pom.xml error. 3. Resolve Errors

CMD to view the process that occupies the port: https://jingyan.baidu.com/article/3c48dd34491d47e10be358b8.html

No ports were found that occupied the No. 0 process. Therefore, there is a port occupancy, but the error message does not give you which port is occupied.

So what do we do next?

Restart the network card, or not.

Then restart the computer, then open idea, modify the Pom file to try, unable to import MAVEN project see logs for details problem is gone, successfully updated the MAVEN dependency package! Then run the program, java.net.SocketException:Permission denied:connect problem is gone.

Solution: Idea Unable to import MAVEN project see logs for details question +java http request Java.net.SocketException:Permission Denied:conn ECT issues

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.