Skip to content
Advertisement

Unable to reload Maven project: Cannot reconnect. java.lang.RuntimeException: Cannot reconnect

i got a new Mac Book and installed IntellJ, as soon as I try to import (new Project from existing source) a maven project i get the error “Unable to reload Maven project”. To make it simpler, i just created a new simple maven project via start.spring.io to make sure I dont have any fancy dependencies.

I also tried to run mvn install via terminal. This was working out!

IntelliJ Log:

JavaScript

I know this issue was posted several times, but i already tried all the suggested things.

I made sure that my hosts file only contains 127.0.0.1 localhost. Also checked via

JavaScript

also checked via

JavaScript

and cache refresh that localhost really gets converted into 127.0.0.1

furthermore i updated maven to version 3.6.3 and and JDK to 1.8.0_251. I ran mvn install via terminal exactly with these versions of maven and JDK and it worked out pretty fine.

I also checked the firewall, i could not see any blocked call (anyways on terminal it was working).

some more configs:
maven version
maven version

maven jdk importer
maven jdk importer

java versions
java version

intelliJ version
intellJ version Here i also changed the version from 11.0.7 to 1.8.0_251 (via Choose Runtime Plugin) with same result.

pom.xml:

JavaScript

You can find the whole log here:
https://1drv.ms/u/s!AtxZPsMq8pdpgRcHOmbzc7J3rYXb?e=ttLRWq

Has someone still an idea what else i can do?

Many thanks in advance! best D.

Advertisement

Answer

ESET network protection is known to block localhost connections which is causing RMI to fail with this error:

JavaScript

Disable ESET or adjust the netwrok protection rules. Contact ESET support for more details or the configuration changes you need to make to allow localhost connections to work.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement