2015-05-08 305 views
1

我是Intellij插件開發新手。目前,我正在爲一個項目創建Intellij IDEA插件。當我點擊運行按鈕時,它會成功構建並向我顯示新IDEA的第一個窗口,但是當我點擊打開新項目時,它會給我提供這些錯誤和異常。Intellij IDEA插件無法運行

[ 20681] ERROR - llij.ide.plugins.PluginManager - null 
java.lang.NullPointerException 
    at com.intellij.ide.util.projectWizard.ModuleBuilder.getModuleTypeName(ModuleBuilder.java:384) 
    at com.intellij.ide.util.projectWizard.ModuleBuilder.getPresentableName(ModuleBuilder.java:380) 
    at com.intellij.ide.util.newProjectWizard.TemplatesGroup.<init>(TemplatesGroup.java:61) 
    at com.intellij.ide.projectWizard.ProjectTypeStep.fillTemplatesMap(ProjectTypeStep.java:298) 
    at com.intellij.ide.projectWizard.ProjectTypeStep.<init>(ProjectTypeStep.java:136) 
    at com.intellij.ide.projectWizard.NewProjectWizard.init(NewProjectWizard.java:50) 
    at com.intellij.ide.projectWizard.NewProjectWizard.<init>(NewProjectWizard.java:39) 
    at com.intellij.ide.actions.NewProjectAction.actionPerformed(NewProjectAction.java:30) 
    at com.intellij.ui.components.labels.ActionLink$1.linkSelected(ActionLink.java:64) 
    at com.intellij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:106) 
    at com.intellij.ui.components.labels.ActionLink.doClick(ActionLink.java:77) 
    at com.intellij.ui.components.labels.LinkLabel$MyMouseHandler.mouseReleased(LinkLabel.java:277) 
    at java.awt.Component.processMouseEvent(Component.java:6525) 
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3321) 
    at java.awt.Component.processEvent(Component.java:6290) 
    at java.awt.Container.processEvent(Container.java:2234) 
    at java.awt.Component.dispatchEventImpl(Component.java:4881) 
    at java.awt.Container.dispatchEventImpl(Container.java:2292) 
    at java.awt.Component.dispatchEvent(Component.java:4703) 
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898) 
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533) 
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462) 
    at java.awt.Container.dispatchEventImpl(Container.java:2278) 
    at java.awt.Window.dispatchEventImpl(Window.java:2739) 
    at java.awt.Component.dispatchEvent(Component.java:4703) 
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746) 
    at java.awt.EventQueue.access$400(EventQueue.java:97) 
    at java.awt.EventQueue$3.run(EventQueue.java:697) 
    at java.awt.EventQueue$3.run(EventQueue.java:691) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) 
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86) 
    at java.awt.EventQueue$4.run(EventQueue.java:719) 
    at java.awt.EventQueue$4.run(EventQueue.java:717) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) 
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:716) 
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:734) 
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:565) 
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382) 
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) 
    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) 
[ 20694] ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 14.1.2 Build #IC-141.713.2 
[ 20694] ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_25 
[ 20695] ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM 
[ 20695] ERROR - llij.ide.plugins.PluginManager - Vendor: Oracle Corporation 
[ 20695] ERROR - llij.ide.plugins.PluginManager - OS: Windows 8.1 
[ 20696] ERROR - llij.ide.plugins.PluginManager - Last Action: 
[ 28044] WARN - api.vfs.impl.local.FileWatcher - Watcher terminated with exit code 0 
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=250m; support was removed in 8.0 

請幫我擺脫這種和運行我的插件,如果任何人有任何想法..謝謝...

+1

你已經有了一個空指針異常 – duffymo

+0

是的,我明白,但是這是什麼 llij.ide.plugins.PluginManager –

+0

@PrasadLakmal這意味着你已經註冊一些不正確的,損壞的內部數據結構。 –

回答

1

我有我剛剛卸載了同樣的問題,重新安裝了IntelliJ IDEA的和重新開放該項目。這解決了我的問題。

+0

謝謝,我照你說的做了,它解決了問題:) –