How to resolve these errors?

it appear when the application closing...

-----------------------------------------------------------------------------------------------------------------------------------------
[ 149208]  ERROR - api.util.objectTree.ObjectNode - Editor of class com.intellij.openapi.editor.impl.EditorImpl hasn't been released:
--------------Creation trace:
java.lang.Throwable
 at com.intellij.openapi.editor.impl.EditorImpl.<init>(EditorImpl.java:148)
 at com.intellij.openapi.editor.impl.EditorFactoryImpl.a(EditorFactoryImpl.java:192)
 at com.intellij.openapi.editor.impl.EditorFactoryImpl.createViewer(EditorFactoryImpl.java:173)
 at com.intellij.execution.impl.ConsoleViewUtil.setupConsoleEditor(ConsoleViewUtil.java:63)
 at cn.fishy.plugin.idea.logviewer.LogViewerConsole.createLogEditor(LogViewerConsole.java:100)
 at cn.fishy.plugin.idea.logviewer.LogViewerConsole.access$000(LogViewerConsole.java:54)
 at cn.fishy.plugin.idea.logviewer.LogViewerConsole$1.compute(LogViewerConsole.java:61)
 at cn.fishy.plugin.idea.logviewer.LogViewerConsole$1.compute(LogViewerConsole.java:57)
 at com.intellij.openapi.util.NotNullLazyValue.getValue(NotNullLazyValue.java:39)
 at cn.fishy.plugin.idea.logviewer.LogViewerConsole.getConsoleEditor(LogViewerConsole.java:133)
 at cn.fishy.plugin.idea.logviewer.LogViewerConsole.<init>(LogViewerConsole.java:81)
 at cn.fishy.plugin.idea.logviewer.LVToolWindowFactory.CreateTab(LVToolWindowFactory.java:63)
 at cn.fishy.plugin.idea.logviewer.LVToolWindowFactory.CreateSavedTabs(LVToolWindowFactory.java:52)
 at cn.fishy.plugin.idea.logviewer.LVToolWindowFactory.createToolWindowContent(LVToolWindowFactory.java:32)
 at com.intellij.openapi.wm.impl.ToolWindowImpl.ensureContentInitialized(ToolWindowImpl.java:510)
 at com.intellij.openapi.wm.impl.ToolWindowManagerImpl$11.run(ToolWindowManagerImpl.java:520)
 at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:332)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:738)
 at java.awt.EventQueue.access$300(EventQueue.java:103)
 at java.awt.EventQueue$3.run(EventQueue.java:699)
 at java.awt.EventQueue$3.run(EventQueue.java:697)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:708)
 at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:734)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
--------------Kill trace:
java.lang.Throwable
 at com.intellij.openapi.util.TraceableDisposable.kill(TraceableDisposable.java:41)
 at com.intellij.openapi.editor.impl.EditorImpl.release(EditorImpl.java:815)
 at com.intellij.openapi.editor.impl.EditorFactoryImpl.releaseEditor(EditorFactoryImpl.java:211)
 at com.intellij.openapi.editor.impl.EditorFactoryImpl.validateEditorsAreReleased(EditorFactoryImpl.java:99)
 at com.intellij.openapi.editor.impl.EditorFactoryImpl$1$1.dispose(EditorFactoryImpl.java:66)
 at com.intellij.openapi.util.Disposer$1.execute(Disposer.java:47)
 at com.intellij.openapi.util.Disposer$1.execute(Disposer.java:44)
 at com.intellij.openapi.util.objectTree.ObjectNode$1.execute(ObjectNode.java:132)
 at com.intellij.openapi.util.objectTree.ObjectNode$1.execute(ObjectNode.java:106)
 at com.intellij.openapi.util.objectTree.ObjectTree.executeActionWithRecursiveGuard(ObjectTree.java:146)
 at com.intellij.openapi.util.objectTree.ObjectNode.execute(ObjectNode.java:106)
 at com.intellij.openapi.util.objectTree.ObjectNode$1.execute(ObjectNode.java:122)
 at com.intellij.openapi.util.objectTree.ObjectNode$1.execute(ObjectNode.java:106)
 at com.intellij.openapi.util.objectTree.ObjectTree.executeActionWithRecursiveGuard(ObjectTree.java:146)
 at com.intellij.openapi.util.objectTree.ObjectNode.execute(ObjectNode.java:106)
 at com.intellij.openapi.util.objectTree.ObjectTree.executeAll(ObjectTree.java:132)
 at com.intellij.openapi.util.Disposer.dispose(Disposer.java:108)
 at com.intellij.openapi.util.Disposer.dispose(Disposer.java:104)
 at com.intellij.openapi.project.impl.ProjectManagerImpl$14.run(ProjectManagerImpl.java:855)
 at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:931)
 at com.intellij.openapi.project.impl.ProjectManagerImpl.closeProject(ProjectManagerImpl.java:841)
 at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:302)
 at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
 at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
 at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
 at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:299)
 at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:780)
 at com.intellij.openapi.application.impl.ApplicationImpl.access$700(ApplicationImpl.java:87)
 at com.intellij.openapi.application.impl.ApplicationImpl$11.run(ApplicationImpl.java:756)
 at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:762)
 at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:711)
 at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:706)
 at com.intellij.openapi.wm.impl.IdeFrameImpl$4$1.run(IdeFrameImpl.java:253)
 at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:332)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:738)
 at java.awt.EventQueue.access$300(EventQueue.java:103)
 at java.awt.EventQueue$3.run(EventQueue.java:699)
 at java.awt.EventQueue$3.run(EventQueue.java:697)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:708)
 at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:734)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
-------------Own trace:
com.intellij.openapi.util.TraceableDisposable$DisposalException: Editor of class com.intellij.openapi.editor.impl.EditorImpl hasn't been released:
 at com.intellij.openapi.util.TraceableDisposable.throwDisposalError(TraceableDisposable.java:46)
 at com.intellij.openapi.editor.impl.EditorImpl.throwDisposalError(EditorImpl.java:807)
 at com.intellij.openapi.editor.impl.EditorFactoryImpl.throwNotReleasedError(EditorFactoryImpl.java:108)
 at com.intellij.openapi.editor.impl.EditorFactoryImpl.validateEditorsAreReleased(EditorFactoryImpl.java:96)
 at com.intellij.openapi.editor.impl.EditorFactoryImpl$1$1.dispose(EditorFactoryImpl.java:66)
 at com.intellij.openapi.util.Disposer$1.execute(Disposer.java:47)
 at com.intellij.openapi.util.Disposer$1.execute(Disposer.java:44)
 at com.intellij.openapi.util.objectTree.ObjectNode$1.execute(ObjectNode.java:132)
 at com.intellij.openapi.util.objectTree.ObjectNode$1.execute(ObjectNode.java:106)
 at com.intellij.openapi.util.objectTree.ObjectTree.executeActionWithRecursiveGuard(ObjectTree.java:146)
 at com.intellij.openapi.util.objectTree.ObjectNode.execute(ObjectNode.java:106)
 at com.intellij.openapi.util.objectTree.ObjectNode$1.execute(ObjectNode.java:122)
 at com.intellij.openapi.util.objectTree.ObjectNode$1.execute(ObjectNode.java:106)
 at com.intellij.openapi.util.objectTree.ObjectTree.executeActionWithRecursiveGuard(ObjectTree.java:146)
 at com.intellij.openapi.util.objectTree.ObjectNode.execute(ObjectNode.java:106)
 at com.intellij.openapi.util.objectTree.ObjectTree.executeAll(ObjectTree.java:132)
 at com.intellij.openapi.util.Disposer.dispose(Disposer.java:108)
 at com.intellij.openapi.util.Disposer.dispose(Disposer.java:104)
 at com.intellij.openapi.project.impl.ProjectManagerImpl$14.run(ProjectManagerImpl.java:855)
 at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:931)
 at com.intellij.openapi.project.impl.ProjectManagerImpl.closeProject(ProjectManagerImpl.java:841)
 at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:302)
 at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
 at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
 at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
 at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:299)
 at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:780)
 at com.intellij.openapi.application.impl.ApplicationImpl.access$700(ApplicationImpl.java:87)
 at com.intellij.openapi.application.impl.ApplicationImpl$11.run(ApplicationImpl.java:756)
 at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:762)
 at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:711)
 at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:706)
 at com.intellij.openapi.wm.impl.IdeFrameImpl$4$1.run(IdeFrameImpl.java:253)
 at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:332)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:738)
 at java.awt.EventQueue.access$300(EventQueue.java:103)
 at java.awt.EventQueue$3.run(EventQueue.java:699)
 at java.awt.EventQueue$3.run(EventQueue.java:697)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:708)
 at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:734)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
[ 149212]  ERROR - api.util.objectTree.ObjectNode - IntelliJ IDEA 14.1.4  Build #IU-141.1532.4
[ 149212]  ERROR - api.util.objectTree.ObjectNode - JDK: 1.7.0_75
[ 149212]  ERROR - api.util.objectTree.ObjectNode - VM: Java HotSpot(TM) 64-Bit Server VM
[ 149212]  ERROR - api.util.objectTree.ObjectNode - Vendor: Oracle Corporation
[ 149212]  ERROR - api.util.objectTree.ObjectNode - OS: Windows 7
[ 149212]  ERROR - api.util.objectTree.ObjectNode - Last Action:  
[ 149213]  ERROR - api.util.objectTree.ObjectNode - Current Command: Exit
[ 149630]   WARN - api.vfs.impl.local.FileWatcher - Watcher terminated with exit code 0

3 comments
Comment actions Permalink

Every editor instance created with EditorFactory.createEditor() needs to be disposed by calling EditorFactory.releaseEditor().

0
Comment actions Permalink

Hi, I am creating an editor
using editorFactory.getInstance.CreateEditor()
and embedded editor.getComponent() in a JFrame and
on clicking 'ok' I am disposing the frame. This is not causing any such kind of error.
Is it expected to be function like this?

Thanks
Preetam

0
Comment actions Permalink

It is not enough to dispose of the JFrame.

You need to release the editor explicitly by calling  EditorFactory.getInstance().releaseEditor(myEditor);

0

Please sign in to leave a comment.