IntelliJ中的Codename One插件中的例外

时间:2018-03-03 15:14:31

标签: intellij-idea codenameone

我昨天(2018年3月2日)下载了IntelliJ Idea和Codename One插件的更新,现在我无法创建新表单:

我使用Hello World模板启动了一个新的Codename One项目。我编译并运行它。在不更改任何代码的情况下,我右键单击了我的src文件夹并选择了New / Codename One Form(AutoLayout)。

IntelliJ IDEA 2017.3.4(社区版) Build#IC-173.4548.28,建于2018年1月30日 JRE:1.8.0_152-release-1024-b11 x86_64 JVM:JetBrains s.r.o的OpenJDK 64位服务器VM Mac OS X 10.13.3

Codename One插件3.8.3

错误消息:

空 显示java.lang.NullPointerException     在com.codename1.plugin.intellij.filesystem.ResourceEditorMonitor $ 2.run(ResourceEditorMonitor.java:235)     在com.intellij.openapi.application.RunResult.run(RunResult.java:35)     在com.intellij.openapi.application.WriteAction.execute(WriteAction.java:38)     在com.codename1.plugin.intellij.filesystem.ResourceEditorMonitor.updateGUIBuilderFile(ResourceEditorMonitor.java:263)     在com.codename1.plugin.intellij.filesystem.ResourceEditorMonitor $ 3.contentsChanged(ResourceEditorMonitor.java:282)     at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     在com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:99)     在com.intellij.util.EventDispatcher.access $ 200(EventDispatcher.java:35)     在com.intellij.util.EventDispatcher $ 2.invoke(EventDispatcher.java:79)     在com.sun.proxy。$ Proxy17.contentsChanged(未知来源)     在com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter.fireAfter(BulkVirtualFileListenerAdapter.java:65)     在com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter.after(BulkVirtualFileListenerAdapter.java:56)     at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:117)     在com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:449)     at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:410)     at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:399)     在com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:380)     在com.intellij.util.messages.impl.MessageBusImpl.access $ 200(MessageBusImpl.java:45)     在com.intellij.util.messages.impl.MessageBusImpl $ 2.invoke(MessageBusImpl.java:231)     at com.sun.proxy。$ Proxy15.after(Unknown Source)     在com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl $ 2.close(PersistentFSImpl.java:651)     在com.intellij.openapi.vfs.VirtualFile.setBinaryContent(VirtualFile.java:570)     在com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.setBinaryContent(VirtualFileImpl.java:166)     在com.intellij.openapi.vfs.VirtualFile.setBinaryContent(VirtualFile.java:562)     在com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.setBinaryContent(VirtualFileImpl.java:172)     在com.intellij.openapi.vfs.VirtualFile.setBinaryContent(VirtualFile.java:558)     在com.intellij.openapi.vfs.VfsUtil.saveText(VfsUtil.java:53)     在com.codename1.plugin.intellij.actions.NewGuiBuilderFormAction $ 2.run(NewGuiBuilderFormAction.java:104)     在com.intellij.openapi.application.RunResult.run(RunResult.java:35)     在com.intellij.openapi.application.WriteAction.execute(WriteAction.java:38)     at com.codename1.plugin.intellij.actions.NewGuiBuilderFormAction.actionPerformed(NewGuiBuilderFormAction.java:106)     在com.intellij.openapi.actionSystem.ex.ActionUtil $ 1.run(ActionUtil.java:220)     在com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:237)     at com.intellij.openapi.actionSystem.impl.ActionMenuItem $ ActionTransmitter.lambda $ actionPerformed $ 0(ActionMenuItem.java:321)     在com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:911)     在com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:136)     at com.intellij.openapi.actionSystem.impl.ActionMenuItem $ ActionTransmitter.actionPerformed(ActionMenuItem.java:311)     在javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)     在com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda $ fireActionPerformed $ 0(ActionMenuItem.java:130)     at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)     at com.intellij.openapi.application.TransactionGuardImpl.lambda $ submitTransaction $ 1(TransactionGuardImpl.java:111)     在com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120)     在com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:122)     在com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:130)     在com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:521)     在com.intellij.ui.plaf.beg.BegMenuItemUI.access $ 300(BegMenuItemUI.java:48)     在com.intellij.ui.plaf.beg.BegMenuItemUI $ MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:541)     at java.awt.Component.processMouseEvent(Component.java:6541)     在javax.swing.JComponent.processMouseEvent(JComponent.java:3324)     at java.awt.Component.processEvent(Component.java:6306)     at java.awt.Container.processEvent(Container.java:2237)     at java.awt.Component.dispatchEventImpl(Component.java:4897)     at java.awt.Container.dispatchEventImpl(Container.java:2295)     at java.awt.Component.dispatchEvent(Component.java:4719)     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)     at java.awt.Container.dispatchEventImpl(Container.java:2281)     at java.awt.Window.dispatchEventImpl(Window.java:2746)     at java.awt.Component.dispatchEvent(Component.java:4719)     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)     at java.awt.EventQueue.access $ 500(EventQueue.java:98)     at java.awt.EventQueue $ 3.run(EventQueue.java:715)     at java.awt.EventQueue $ 3.run(EventQueue.java:709)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)     at java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)     at java.awt.EventQueue $ 4.run(EventQueue.java:737)     at java.awt.EventQueue $ 4.run(EventQueue.java:735)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)     at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)     在com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:822)     在com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:646)     在com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)     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)     在java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

1 个答案:

答案 0 :(得分:0)

那里似乎有一个错误。首先,请确保在包中创建GUI构建器文件,而不是直接在src目录中创建。

如果您右键单击该项目并选择Codename One - >刷新cn1libs它应解决这个问题。

此问题已触发,因为尚未创建某些目录,刷新cn1libs将强制构建/创建目录。