Can't open maven project

I use idea 13.1.1 comunity edition.
When i try to open existing maven project, nothing happends, no project is opened.

When i test proxy settings, it shows that proxy works ok.

In log i see

Error: Could not find or load main class org.jetbrains.idea.maven.server.RemoteMavenServer
2014-04-03 17:56:53,148 [ 107130]   WARN -      #org.jetbrains.idea.maven - Cannot open index \\UBSPROD.MSAD.UBS.NET\UserData\mullomuk\RF\.IdeaIC13\system\Maven\Indices\Index0
org.jetbrains.idea.maven.indices.MavenIndexException: Cannot open index \\UBSPROD.MSAD.UBS.NET\UserData\mullomuk\RF\.IdeaIC13\system\Maven\Indices\Index0
 at org.jetbrains.idea.maven.indices.MavenIndex.open(MavenIndex.java:164)
 at org.jetbrains.idea.maven.indices.MavenIndex.<init>(MavenIndex.java:93)
 at org.jetbrains.idea.maven.indices.MavenIndices.add(MavenIndices.java:90)
 at org.jetbrains.idea.maven.indices.MavenIndicesManager.ensureIndicesExist(MavenIndicesManager.java:167)
 at org.jetbrains.idea.maven.indices.MavenProjectIndicesManager$3.run(MavenProjectIndicesManager.java:120)
 at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:320)
 at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:310)
 at com.intellij.util.ui.update.MergingUpdateQueue$2.run(MergingUpdateQueue.java:254)
 at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:269)
 at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:227)
 at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:217)
 at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
 at com.intellij.util.Alarm$Request$1.run(Alarm.java:327)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 at com.intellij.util.concurrency.QueueProcessor$RunnableConsumer.consume(QueueProcessor.java:298)
 at com.intellij.util.concurrency.QueueProcessor$RunnableConsumer.consume(QueueProcessor.java:295)
 at com.intellij.util.concurrency.QueueProcessor$2$1.run(QueueProcessor.java:110)
 at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
 at com.intellij.util.concurrency.QueueProcessor$2.consume(QueueProcessor.java:107)
 at com.intellij.util.concurrency.QueueProcessor$2.consume(QueueProcessor.java:104)
 at com.intellij.util.concurrency.QueueProcessor$3$1.run(QueueProcessor.java:215)
 at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
 at com.intellij.util.concurrency.QueueProcessor$3.run(QueueProcessor.java:212)
 at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:724)
 at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)
Caused by: java.lang.RuntimeException: Cannot reconnect.
 at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:111)
 at org.jetbrains.idea.maven.server.MavenIndexerWrapper.createIndex(MavenIndexerWrapper.java:61)
 at org.jetbrains.idea.maven.indices.MavenIndex.createContext(MavenIndex.java:305)
 at org.jetbrains.idea.maven.indices.MavenIndex.access$500(MavenIndex.java:40)
 at org.jetbrains.idea.maven.indices.MavenIndex$IndexData.<init>(MavenIndex.java:611)
 at org.jetbrains.idea.maven.indices.MavenIndex.doOpen(MavenIndex.java:185)
 at org.jetbrains.idea.maven.indices.MavenIndex.open(MavenIndex.java:161)
 ... 30 more
Caused by: java.rmi.RemoteException: Cannot start maven service; nested exception is:
 com.intellij.execution.ExecutionException: Error: Could not find or load main class org.jetbrains.idea.maven.server.RemoteMavenServer

 at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:124)
 at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:65)
 at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
 at org.jetbrains.idea.maven.server.MavenServerManager$5.create(MavenServerManager.java:387)
 at org.jetbrains.idea.maven.server.MavenServerManager$5.create(MavenServerManager.java:383)
 at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
 at org.jetbrains.idea.maven.server.MavenIndexerWrapper.getRemoteId(MavenIndexerWrapper.java:159)
 at org.jetbrains.idea.maven.server.MavenIndexerWrapper.access$100(MavenIndexerWrapper.java:37)
 at org.jetbrains.idea.maven.server.MavenIndexerWrapper$1.execute(MavenIndexerWrapper.java:64)
 at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:105)
 ... 36 more
Caused by: com.intellij.execution.ExecutionException: Error: Could not find or load main class org.jetbrains.idea.maven.server.RemoteMavenServer

 at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:142)
 at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:121)
 ... 45 more

3 comments

Hello.

As a quick workaround, please exit IDEA, erase ...\.IdeaIC13\system\Maven\ directory, and restart. Maven indexes will be rebuilt. Please comment if the problem persists after that.

BTW, am I correct that your user data is on network drive? UNC file paths may cause problems with IDEA (not sure about current status, but they did in the past). You can change the config and system location, as described here:
https://intellij-support.jetbrains.com/entries/23348963

Regards,
Alexander.

0

Thanks, for your quick answer.

I tried to change system location but got the same error in new log file.
I noticed there path to idea installation that is also on network drive
<My network drive location >\AppData\Roaming\JetBrains\IntelliJ IDEA Community Edition 13.1.1\plugins\maven\lib\maven3\
So i reinstalled idea on local drive, changed system location and that solved the problem.

0

Had also some problems with maven dependencies, but it was solved whe i override maven settings not to store repository on network drive

0

Please sign in to leave a comment.