Announcement Announcement Module
No announcement yet.
STS Fails with "org.eclipse.ui.PartInitException: The file does not exist." Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • STS Fails with "org.eclipse.ui.PartInitException: The file does not exist."

    All of a sudden, after working just fine since installation. STS 2.9.2.RELEASE fails to load with:

    "Could not open the editor: org.eclipse.ui.PartInitException: The file does not exist."

    I've seen threads on Google that indicate it's a missing file in /.metadata/ but deleting /YOUR PATH TO WORKSPACE/.metadata/.plugins/org.eclipse.core.resources doesn't correct the issue.

    Here's what's relevant in ../.metadata/.log:

    !ENTRY org.eclipse.ui 2 2 2012-06-21 13:12:21.392
    !MESSAGE Ignored attempt to add saveable that was already registered
    !STACK 0
    org.eclipse.core.runtime.AssertionFailedException: unknown saveable: org.eclipse.ui.internal.DefaultSaveable@17d2482 from part: org.eclipse.ui.internal.ErrorEditorPart@17d2482
    	at org.eclipse.ui.internal.SaveablesList.logWarning(
    	at org.eclipse.ui.internal.SaveablesList.addModel(
    	at org.eclipse.ui.internal.SaveablesList.addModels(
    	at org.eclipse.ui.internal.SaveablesList.postOpen(
    	at org.eclipse.ui.internal.PartList.partOpened(
    	at org.eclipse.ui.internal.PartList.access$0(
    	at org.eclipse.ui.internal.PartList$1.propertyChanged(
    	at org.eclipse.ui.internal.WorkbenchPartReference.fireInternalPropertyChange(
    	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(
    	at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(
    	at org.eclipse.ui.internal.EditorManager.setVisibleEditor(
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    	at java.lang.reflect.Method.invoke(
    Anyone have any idea how to recover without creating a new workspace?


  • #2
    Just an FYI for anyone who comes after. I couldn't find an answer that worked, so I renamed the workspace folder, created a new one, and imported my existing projects into the new folder.


    • #3
      Try restarting STS with the -clean option. This may work.