"Idea" idea can't open a project for a very strange reason

Source: Internet
Author: User

Because the project is stored on the Gitlab, so after the next, have encountered, thought to be re-downloaded after the master no content caused the normal opening, this situation, switch master and then open it;

But this is not the case with the problem,

Use

git branch-r View Remote branch

git checkout--track branchname switch to Branch

Idea Open, open many times still not, the phenomenon is to open a new download of the project, cannot open, and the old project can not compile, error, IDEA reported wrong:

Unable to import Maven project. See logs for details

Then go to the mother to find the log, search completely not, so for Google, you can view the log: Help->show log in finder, or directly terminal inside see:/users/zhang/library/logs/ Intellijidea15/idea.log

Then locate the following log:

2016-12-20 16:08:39,695 [112867] warn-ution.rmi.remoteprocesssupport-the Cook failed to start due to Java.net.Connect Exception:connection refused
2016-12-20 16:08:40,730 [113902] Error-llij.ide.plugins.pluginmanager-cannot reconnect.
Java.lang.RuntimeException:Cannot Reconnect.
At Org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform (remoteobjectwrapper.java:82)
At Org.jetbrains.idea.maven.server.MavenServerManager.applyProfiles (mavenservermanager.java:522)
At Org.jetbrains.idea.maven.project.MavenProjectReader.applyProfiles (mavenprojectreader.java:369)
At Org.jetbrains.idea.maven.project.MavenProjectReader.doReadProjectModel (mavenprojectreader.java:98)
At org.jetbrains.idea.maven.project.mavenprojectreader.access$300 (mavenprojectreader.java:42)
At Org.jetbrains.idea.maven.project.mavenprojectreader$1.doprocessparent (mavenprojectreader.java:422)
At Org.jetbrains.idea.maven.project.mavenprojectreader$1.doprocessparent (mavenprojectreader.java:399)
At Org.jetbrains.idea.maven.project.MavenParentProjectFileProcessor.processRepositoryParent ( mavenparentprojectfileprocessor.java:84)
At Org.jetbrains.idea.maven.project.MavenParentProjectFileProcessor.process ( MAVENPARENTPROJECTFILEPROCESSOR.JAVA:62)
At Org.jetbrains.idea.maven.project.MavenProjectReader.resolveInheritance (mavenprojectreader.java:425)
At Org.jetbrains.idea.maven.project.MavenProjectReader.doReadProjectModel (mavenprojectreader.java:95)
At org.jetbrains.idea.maven.project.mavenprojectreader.access$300 (mavenprojectreader.java:42)
At Org.jetbrains.idea.maven.project.mavenprojectreader$1.doprocessparent (mavenprojectreader.java:422)
At Org.jetbrains.idea.maven.project.mavenprojectreader$1.doprocessparent (mavenprojectreader.java:399)
At Org.jetbrains.idea.maven.project.MavenParentProjectFileProcessor.processRepositoryParent ( mavenparentprojectfileprocessor.java:84)
At Org.jetbrains.idea.maven.project.MavenParentProjectFileProcessor.process ( MAVENPARENTPROJECTFILEPROCESSOR.JAVA:62)
At Org.jetbrains.idea.maven.project.MavenProjectReader.resolveInheritance (mavenprojectreader.java:425)
At Org.jetbrains.idea.maven.project.MavenProjectReader.doReadProjectModel (mavenprojectreader.java:95)
At Org.jetbrains.idea.maven.project.MavenProjectReader.readProject (mavenprojectreader.java:53)
At Org.jetbrains.idea.maven.project.MavenProject.read (mavenproject.java:626)
At Org.jetbrains.idea.maven.wizards.MavenProjectBuilder.collectProfiles (mavenprojectbuilder.java:197)
At org.jetbrains.idea.maven.wizards.mavenprojectbuilder.access$900 (mavenprojectbuilder.java:47)
At Org.jetbrains.idea.maven.wizards.mavenprojectbuilder$1.run (mavenprojectbuilder.java:171)
At Org.jetbrains.idea.maven.utils.mavenutil$6.run (mavenutil.java:430)
At Com.intellij.openapi.progress.impl.coreprogressmanager$taskrunnable.run (coreprogressmanager.java:563)
At Com.intellij.openapi.progress.impl.coreprogressmanager$8.run (coreprogressmanager.java:357)
At Com.intellij.openapi.progress.impl.coreprogressmanager$2.run (coreprogressmanager.java:142)
At Com.intellij.openapi.progress.impl.coreprogressmanager.a (coreprogressmanager.java:446)
At Com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress (Coreprogressmanager.java : 392)
At Com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress (Progressmanagerimpl.java : 54)
At Com.intellij.openapi.progress.impl.CoreProgressManager.runProcess (coreprogressmanager.java:127)
At Com.intellij.openapi.application.impl.applicationimpl$14$1.run (applicationimpl.java:626)
At Com.intellij.openapi.application.impl.applicationimpl$8.run (applicationimpl.java:365)
At Java.util.concurrent.executors$runnableadapter.call (executors.java:511)
At Java.util.concurrent.FutureTask.run (futuretask.java:266)
At Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1142)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:617)
At Java.lang.Thread.run (thread.java:745)
At Org.jetbrains.ide.pooledthreadexecutor$1$1.run (pooledthreadexecutor.java:55)
caused by:java.rmi.RemoteException:Cannot start MAVEN service; Nested exception is:
Java.rmi.ConnectException:Connection refused to host:localhost; Nested exception is:
Java.net.ConnectException:Connection refused
At Org.jetbrains.idea.maven.server.MavenServerManager.create (mavenservermanager.java:166)
At Org.jetbrains.idea.maven.server.MavenServerManager.create (mavenservermanager.java:71)
At Org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee (remoteobjectwrapper.java:41)
At Org.jetbrains.idea.maven.server.mavenservermanager$9.execute (mavenservermanager.java:525)
At Org.jetbrains.idea.maven.server.mavenservermanager$9.execute (mavenservermanager.java:522)
At Org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform (remoteobjectwrapper.java:76)
... More
caused By:java.rmi.ConnectException:Connection refused to host:localhost; Nested exception is:
Java.net.ConnectException:Connection refused
At Sun.rmi.transport.tcp.TCPEndpoint.newSocket (tcpendpoint.java:619)
At Sun.rmi.transport.tcp.TCPChannel.createConnection (tcpchannel.java:216)
At Sun.rmi.transport.tcp.TCPChannel.newConnection (tcpchannel.java:202)
At Sun.rmi.server.UnicastRef.newCall (unicastref.java:342)
At Sun.rmi.registry.RegistryImpl_Stub.lookup (Unknown Source)
At Com.intellij.execution.rmi.remoteprocesssupport$3.compute (remoteprocesssupport.java:256)
At Com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader (remoteutil.java:181)
At COM.INTELLIJ.EXECUTION.RMI.REMOTEPROCESSSUPPORT.A (remoteprocesssupport.java:252)
At Com.intellij.execution.rmi.RemoteProcessSupport.acquire (remoteprocesssupport.java:164)
At Org.jetbrains.idea.maven.server.MavenServerManager.create (mavenservermanager.java:163)
... More

That's the right direction, then search for the keyword (aused by:java.rmi.RemoteException:Cannot start maven service; nested exception is) to find the following information:

http://www.guudo.cn/tech/view/id/15947, the solution in this may be a bit of a use, but not all environments are the same, I do not uninstall, because the cost of unloading is more expensive

Http://stackoverflow.com/questions/12701347/unable-to-import-maven-project-into-intellij-idea, the final solution was obtained from here, or the foreign site description is clear

Workaround:

Add a line 127.0.0.1 localhost in/etc/hosts and re-import to resolve

Additional Reference Links:

Http://stackoverflow.com/questions/26754344/intellij-cannot-start-maven-service-executionexception

Http://stackoverflow.com/questions/30569909/unable-to-import-maven-project-in-intellij14

https://my.oschina.net/matt0614/blog/749724

Also find a fun, add color to idea Terminal:

Http://www.hankcs.com/program/java/log4j-2-console-color-configuration-with-intellij-idea.html

Add a color to terminal, too:

Https://github.com/altercation/solarized

Https://github.com/mbadolato/iTerm2-Color-Schemes

https://laoshuterry.gitbooks.io/mac_os_setup_guide/content/4_ZshConfig.html Configuration Tutorial

"Idea" idea can't open a project for a very strange reason

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.