码迷,mamicode.com
首页 > 其他好文 > 详细

InteliJ idea兼容性问题

时间:2019-10-12 01:10:36      阅读:357      评论:0      收藏:0      [点我收藏+]

标签:inject   prot   adapter   edm   startup   app   processor   gen   ast   

最近在win10机器上安装InteliJ idea2006.2版本时,发现pom文件总是创建失败。

idea的报错日志如下:

2019-10-11 14:40:23,125 [ 137608]  ERROR - Templates.impl.DefaultTemplate - IntelliJ IDEA 2016.2.1  Build #IU-162.1447.26 
2019-10-11 14:40:23,125 [ 137608]  ERROR - Templates.impl.DefaultTemplate - JDK: 1.8.0_221 
2019-10-11 14:40:23,125 [ 137608]  ERROR - Templates.impl.DefaultTemplate - VM: Java HotSpot(TM) 64-Bit Server VM 
2019-10-11 14:40:23,125 [ 137608]  ERROR - Templates.impl.DefaultTemplate - Vendor: Oracle Corporation 
2019-10-11 14:40:23,125 [ 137608]  ERROR - Templates.impl.DefaultTemplate - OS: Windows 10 
2019-10-11 14:40:23,125 [ 137608]  ERROR - Templates.impl.DefaultTemplate - Last Action:  
2019-10-11 14:40:23,125 [ 137608]  ERROR - Templates.impl.DefaultTemplate - Current Command: Create new Maven module 
2019-10-11 14:40:23,126 [ 137609]  ERROR - Templates.impl.DefaultTemplate - Entry fileTemplates//j2ee/Vaadin6ClientWidget.java.ft not found in E:/install/IntelliJ IDEA 2016.2.1/plugins/vaadin/lib/resources_en.jar 
java.io.FileNotFoundException: Entry fileTemplates//j2ee/Vaadin6ClientWidget.java.ft not found in E:/install/IntelliJ IDEA 2016.2.1/plugins/vaadin/lib/resources_en.jar
	at com.intellij.util.io.URLUtil.openJarStream(URLUtil.java:101)
	at com.intellij.util.io.URLUtil.openStream(URLUtil.java:62)
	at com.intellij.ide.fileTemplates.impl.UrlUtil.loadText(UrlUtil.java:46)
	at com.intellij.ide.fileTemplates.impl.DefaultTemplate.a(DefaultTemplate.java:53)
	at com.intellij.ide.fileTemplates.impl.DefaultTemplate.<init>(DefaultTemplate.java:46)
	at com.intellij.ide.fileTemplates.impl.FileTemplatesLoader.a(FileTemplatesLoader.java:183)
	at com.intellij.ide.fileTemplates.impl.FileTemplatesLoader.a(FileTemplatesLoader.java:143)
	at com.intellij.ide.fileTemplates.impl.FileTemplatesLoader.<init>(FileTemplatesLoader.java:88)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
	at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:220)
	at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
	at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
	at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:58)
	at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.getComponentInstance(ServiceManagerImpl.java:232)
	at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:246)
	at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:212)
	at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.picocontainer.defaults.ImmutablePicoContainerProxyFactory.invoke(ImmutablePicoContainerProxyFactory.java:73)
	at com.sun.proxy.$Proxy47.getComponentInstance(Unknown Source)
	at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:217)
	at org.picocontainer.defaults.BasicComponentParameter.resolveInstance(BasicComponentParameter.java:77)
	at org.picocontainer.defaults.ComponentParameter.resolveInstance(ComponentParameter.java:114)
	at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getConstructorArguments(ConstructorInjectionComponentAdapter.java:257)
	at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:217)
	at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
	at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
	at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:58)
	at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.getComponentInstance(ServiceManagerImpl.java:232)
	at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:246)
	at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:212)
	at com.intellij.openapi.components.ServiceManager.doGetService(ServiceManager.java:46)
	at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:41)
	at com.intellij.ide.fileTemplates.FileTemplateManager.getInstance(FileTemplateManager.java:55)
	at org.jetbrains.idea.maven.utils.MavenUtil.runOrApplyFileTemplate(MavenUtil.java:332)
	at org.jetbrains.idea.maven.utils.MavenUtil.runOrApplyMavenProjectFileTemplate(MavenUtil.java:317)
	at org.jetbrains.idea.maven.utils.MavenUtil.runOrApplyMavenProjectFileTemplate(MavenUtil.java:282)
	at org.jetbrains.idea.maven.wizards.MavenModuleBuilderHelper$1.run(MavenModuleBuilderHelper.java:97)
	at com.intellij.openapi.application.RunResult.run(RunResult.java:35)
	at com.intellij.openapi.command.WriteCommandAction$2.run(WriteCommandAction.java:113)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:129)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:100)
	at com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:108)
	at com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:83)
	at org.jetbrains.idea.maven.wizards.MavenModuleBuilderHelper.configure(MavenModuleBuilderHelper.java:114)
	at org.jetbrains.idea.maven.wizards.MavenModuleBuilder$1.run(MavenModuleBuilder.java:87)
	at com.intellij.util.DisposeAwareRunnable.run(DisposeAwareRunnable.java:82)
	at com.intellij.ide.startup.impl.StartupManagerImpl.a(StartupManagerImpl.java:342)
	at com.intellij.ide.startup.impl.StartupManagerImpl.a(StartupManagerImpl.java:334)
	at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.java:175)
	at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:343)
	at com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:326)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:863)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:699)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

  

原因不是maven版本问题,也不是idea的设置问题,是因为idea兼容问题,idea2016.2在win7上可以很顺利的使用,但是启动略慢。

解决方案是:使用idea2019.2,不用改变任何设置。

另推荐用新版本的开发工具,idea2019.2,比2016年的版本的启用和运行速度都明显快。

InteliJ idea兼容性问题

标签:inject   prot   adapter   edm   startup   app   processor   gen   ast   

原文地址:https://www.cnblogs.com/geektcp/p/11657789.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!