Unable to create maven project from archetype after upgrade to 2016.3.4 in Win 7 UE 64 bit

已回答

Hello,

I recently upgrade to 2016.3.4 and for some reason I can not create new maven projects.  The wizard hangs at "Loading archetype list".  I have tried uninstalling and reinstalling Idea (including re-installing in a different location than the previous install), blowing away my .m2 directory, removing anything with Jetbrains in my LocalData, and using both the built in maven install and a separate standalone maven project.  Not quite sure if others are having the same problem - any insight appreciated. Thanks.

TIA

 

- Nathan

0
Avatar
Permanently deleted user

Also - I can not import maven projects.  I get a popup that says "Looking for available profiles", which disappears but I can not advance through the wizard.

Super frustrating. 

 

0
Avatar
Permanently deleted user

Same here, steps:

Welcome/Create New Project/Maven

* Loading archetype list... = hangs, not working

Log WARNs & ERRORs:

2017-09-13 14:03:29,990 [ 8710] WARN - tGradleScriptTemplatesProvider - [kts] Cannot get gradle execution settings
kotlin.KotlinNullPointerException
...
2017-09-13 14:03:29,994 [ 8714] WARN - tGradleScriptTemplatesProvider - [kts] Cannot get gradle execution settings
kotlin.KotlinNullPointerException
...
2017-09-13 14:04:20,897 [ 59617] ERROR - plication.impl.ApplicationImpl - java.lang.OutOfMemoryError: GC overhead limit exceeded
java.lang.RuntimeException: java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.intellij.execution.rmi.RemoteUtil.invokeRemote(RemoteUtil.java:185)
at com.intellij.execution.rmi.RemoteUtil.access$300(RemoteUtil.java:36)
at com.intellij.execution.rmi.RemoteUtil$2$1$1.compute(RemoteUtil.java:156)
at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:232)
at com.intellij.execution.rmi.RemoteUtil$2$1.invoke(RemoteUtil.java:153)
at com.sun.proxy.$Proxy84.getArchetypes(Unknown Source)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper$7.execute(MavenIndexerWrapper.java:178)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper$7.execute(MavenIndexerWrapper.java:175)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.getArchetypes(MavenIndexerWrapper.java:175)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.getArchetypes(MavenIndicesManager.java:326)
at org.jetbrains.idea.maven.wizards.MavenArchetypesStep.lambda$updateArchetypesList$3(MavenArchetypesStep.java:234)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:342)
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)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
at org.apache.lucene.index.SegmentTermEnum.termInfo(SegmentTermEnum.java:178)
at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:252)
at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:218)
at org.apache.lucene.index.SegmentTermDocs.seek(SegmentTermDocs.java:55)
at org.apache.lucene.index.MultiSegmentReader$MultiTermDocs.termDocs(MultiSegmentReader.java:608)
at org.apache.lucene.index.MultiSegmentReader$MultiTermDocs.next(MultiSegmentReader.java:559)
at org.apache.lucene.search.FieldCacheImpl$10.createValue(FieldCacheImpl.java:384)
at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:71)
at org.apache.lucene.search.FieldCacheImpl.getStringIndex(FieldCacheImpl.java:351)
at org.apache.lucene.search.FieldSortedHitQueue.comparatorString(FieldSortedHitQueue.java:415)
at org.apache.lucene.search.FieldSortedHitQueue$1.createValue(FieldSortedHitQueue.java:206)
at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:71)
at org.apache.lucene.search.FieldSortedHitQueue.getCachedComparator(FieldSortedHitQueue.java:167)
at org.apache.lucene.search.FieldSortedHitQueue.<init>(FieldSortedHitQueue.java:55)
at org.apache.lucene.search.TopFieldDocCollector.<init>(TopFieldDocCollector.java:43)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:121)
at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:113)
at org.apache.lucene.search.Hits.<init>(Hits.java:90)
at org.apache.lucene.search.Searcher.search(Searcher.java:61)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlat(DefaultSearchEngine.java:179)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlatPaged(DefaultSearchEngine.java:99)
at org.sonatype.nexus.index.DefaultSearchEngine.searchFlatPaged(DefaultSearchEngine.java:77)
at org.sonatype.nexus.index.DefaultNexusIndexer.searchFlat(DefaultNexusIndexer.java:386)
at org.sonatype.nexus.index.archetype.NexusArchetypeDataSource.getArchetypeCatalog(NexusArchetypeDataSource.java:55)
at org.jetbrains.idea.maven.server.Maven3ServerIndexerImpl.doCollectArchetypes(Maven3ServerIndexerImpl.java:338)
at org.jetbrains.idea.maven.server.Maven3ServerIndexerImpl.getArchetypes(Maven3ServerIndexerImpl.java:331)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:346)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
2017-09-13 14:04:20,898 [ 59618] ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 2017.2.4 Build #IU-172.4155.36
2017-09-13 14:04:20,898 [ 59618] ERROR - plication.impl.ApplicationImpl - JDK: 1.8.0_152-release
2017-09-13 14:04:20,898 [ 59618] ERROR - plication.impl.ApplicationImpl - VM: OpenJDK 64-Bit Server VM
2017-09-13 14:04:20,898 [ 59618] ERROR - plication.impl.ApplicationImpl - Vendor: JetBrains s.r.o
2017-09-13 14:04:20,898 [ 59618] ERROR - plication.impl.ApplicationImpl - OS: Windows 10
2017-09-13 14:04:20,898 [ 59618] ERROR - plication.impl.ApplicationImpl - Last Action:

Cancel -> Welcome/Configure -> Settings -> BED/Build Tools/Maven/Importing -> VM Options for importer:

* change -Xmx1024m to -Xmx1025m
* click apply
* change -Xmx1025m back to -Xmx1024m
* click apply, ok

Works now.

So something gets "reset" on simply temporarily changing the "VM Options for importer" in a minor way.

Bug or problem in my env?

0

I had the same problem with 2017.3 ultimate (Ubuntu 16.04). Changed the settings for maven to use the oracle 1.8 jdk to get it to work. Changing the xmx setting did not seem to help.  

By the way, the most annoying part is that it fails silently, leaving the "new project" window with the "Loading maven archetypes" message and an indicator that something is still happening. But after a long wait looked into the log where it showed OutOfMemoryError. Such a fatal error should at least be reported to the user because now it shows a marquee progress animation while already KIA.

0

Thanks for the feedback. We'll improve the error reporting, it could be very confusing right now.

0

Great. Also, it seems that my solution of using another jdk is only temporary. When restarting IDEA the problem loading the archetypes is back. Something then just needs to change to get it back to work. I need to change the xmx setting to get it working again. I did an extra test to confirm, but each time I start IDEA I need to change the xmx setting to resolve the problem of the hanging "Loading archetype list". Yesterday it did not seem to help changing the xmx setting but with the oracle jdk it does seem to help (although only for a single time). By the way, if any additional info is required to help resolve the issue it is no problem to provide that. Just let me know.

0

I attached the idea.log to issue IDEA-182483 as this seems the related issue.

https://youtrack.jetbrains.com/issue/IDEA-182483

0

请先登录再写评论。