Skip to Content
avatar image
Former Member

org.eclipse.core.runtime.CoreException: Text editor does not have a documen

Hi all,

strangely on most hprof-files while opening them as snapshot

I get a org.eclipse.core.runtime.CoreException (see below the stack trace).

This happens indipendently if launching MemoryAnalyzer as standalone (MemoryAnalyzer.sh)

or within my Eclipse SDK platform (Version: 3.3.2).

It seems to depend of the hprof-files itself, if the error raises or not.

For example the HeapDumpSamples from the snapshots dir are not affect to this problem,

maybe the size of the dumpfile is deterministic ? Any help or hint is welcome, thanks.

org.eclipse.core.runtime.CoreException: Text editor does not have a document provider

at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:3947)

at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:190)

at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1225)

at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:168)

at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3003)

at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)

at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)

at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:758)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)

at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:755)

at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2451)

at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3021)

at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3048)

at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:794)

at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:643)

at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)

at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)

at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:263)

at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2739)

at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)

at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)

at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2557)

at com.sap.tools.memory.ui.core.actions.OpenSnapshotAction$1.visit(OpenSnapshotAction.java:68)

at com.sap.tools.memory.ui.core.actions.OpenSnapshot$Visitor.go(OpenSnapshot.java:78)

at com.sap.tools.memory.ui.core.actions.OpenSnapshotAction.run(OpenSnapshotAction.java:57)

at com.sap.tools.memory.ui.core.actions.OpenSnapshotAction.run(OpenSnapshotAction.java:52)

at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)

at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)

at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)

at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)

at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)

at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)

at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)

at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

...

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 03, 2008 at 02:39 PM

    Hi Guenther,

    I have a guess...

    The Memory Analyzer is implemented as an Eclipse editor. That means, Eclipse decides based on the extension what editor to open. We have registered the editor for the hprof extension.

    Sometimes, heap dumps end with the timestamp, like java_pid282.hprof.200804031745. If you use "Open Heap Dump" then we will try to rename the file. If you use "Open File", it will try to open the heap dump with the default editor as it doesn't know the 200804xxx extension. The default editor is the text editor and that will not work. So the work-around is renaming the file.

    Kind regards,

    - Andreas.

    Add comment
    10|10000 characters needed characters exceeded