My computer lost power while Eclipse was running, and when I restarted, my
remembered file wasn't displaied, there was an exception instead: "File
/<Project>/<path to file> does not exist."

The Package Explorer and Navigator are both empty, although the Outline is
populated with the correct structure. My log is posted below, but after I
closed the editors, exited, and restarted Eclipse, I now do not get
anything in my .log file when I start Eclipse. Only the version.ini
timestamp gets modified now.

How do I get it to load my project? It is pointing to the correct
workspace. Trying to "Switch Workspace" to it makes no difference.

!ENTRY org.eclipse.ui.workbench 4 2 2006-02-24 12:16:40.230
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.ui.workbench".
!STACK 0
java.lang.NullPointerException
at org.eclipse.ui.internal.EditorManager$7.run(EditorManager.ja va:1328)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.ui.internal.EditorManager.saveEditorState(Editor Manager.java:1287)
at
org.eclipse.ui.internal.EditorManager.saveState(EditorManage r.java:1208)
at
org.eclipse.ui.internal.WorkbenchPage.saveState(WorkbenchPag e.java:2779)
at
org.eclipse.ui.internal.WorkbenchWindow.saveState(WorkbenchW indow.java:2288)
at org.eclipse.ui.internal.Workbench.saveState(Workbench.java:1 733)
at
org.eclipse.ui.internal.Workbench.recordWorkbenchState(Workb ench.java:1469)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:14 66)
at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:559)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:5 57)
at org.eclipse.ui.internal.Workbench.access$8(Workbench.java:52 2)
at org.eclipse.ui.internal.Workbench$13.run(Workbench.java:713)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:711)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:686)
at
org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchW indow.java:643)
at
org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWi ndow.java:627)
at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindo w.java:728)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindo w.java:726)
at org.eclipse.jface.window.Window.handleShellCloseEvent(Window .java:727)
at org.eclipse.jface.window.Window$3.shellClosed(Window.java:67 4)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:159)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations. java:257)
at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.jav a:1649)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3040 )
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1582)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:410)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1582)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:410)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1582)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:16 56)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2711)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

!ENTRY org.eclipse.ui.workbench 4 2 2006-02-24 12:16:40.245
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.ui.workbench".
!STACK 0
java.lang.NullPointerException
at org.eclipse.ui.internal.EditorManager$7.run(EditorManager.ja va:1328)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.ui.internal.EditorManager.saveEditorState(Editor Manager.java:1287)
at
org.eclipse.ui.internal.EditorManager.saveState(EditorManage r.java:1208)
at
org.eclipse.ui.internal.WorkbenchPage.saveState(WorkbenchPag e.java:2779)
at
org.eclipse.ui.internal.WorkbenchWindow.saveState(WorkbenchW indow.java:2288)
at org.eclipse.ui.internal.Workbench.saveState(Workbench.java:1 733)
at
org.eclipse.ui.internal.Workbench.recordWorkbenchState(Workb ench.java:1469)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:14 66)
at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:559)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:5 57)
at org.eclipse.ui.internal.Workbench.access$8(Workbench.java:52 2)
at org.eclipse.ui.internal.Workbench$13.run(Workbench.java:713)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:711)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:686)
at
org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchW indow.java:643)
at
org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWi ndow.java:627)
at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindo w.java:728)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindo w.java:726)
at org.eclipse.jface.window.Window.handleShellCloseEvent(Window .java:727)
at org.eclipse.jface.window.Window$3.shellClosed(Window.java:67 4)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:159)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations. java:257)
at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.jav a:1649)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3040 )
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1582)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:410)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1582)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:410)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1582)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:16 56)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2711)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

Sounds like a file corruption case. It's difficult to know what advice to give you given that almost any file could be broken. I'd recommend taking a backup of your hard drive (if possible) and then try to run file system checks like chkdsk to see if there's any file corruption. Sometimes it will be able to save it; other times it won't.

I'd recommend getting rid of your entire workspace/.metadata directory, in case any of those files have been corrupted. I'd also recommend that you get rid of the configuration directory, and replace it with any default files that are in the Eclipse install (though IIRC the configuration directory is created the first time you run Eclipse).

You should also check your project's files out too. I'd recommend backing those up; for example, creating a Zip file. You should then be able to import the existing project into the workspace.

If you have the bandwidth available, it might just be easier to download a new 3.1.2 install and put that in a fresh place. You can then use the zip file you created above to import it into an entirely new workspace, and once you're happy with the contents, you can get rid of the old install.

Incidentally, this is one of the arguments for using a version control system like CVS or SVN, even when you're the only one doing any work. If there's a problem with the hard drive, you've at least got a second copy of it somewhere else on the hard drive, though it's better still if it's on a different hard drive or another computer.

We ARE using Subversion (Subclipse), and I have all my files. In fact, my
current directory structure is just fine. It is just Eclipse that isn't
showing anything. All my files are there, and I can even open up my
project with Eclipse 3.0 (using an old workspace, of course).

However, it is a royal pain in the rear to get a new project set up (we
have a ton of 'ignore' files, I'm pretty particular about how my editors
are configured, etc). I just want to tell Eclipse to re-compute the
project and find my files again.

> We ARE using Subversion (Subclipse), and I have all my files. In fact, my
> current directory structure is just fine. It is just Eclipse that isn't
> showing anything. All my files are there, and I can even open up my
> project with Eclipse 3.0 (using an old workspace, of course).

> However, it is a royal pain in the rear to get a new project set up (we
> have a ton of 'ignore' files, I'm pretty particular about how my editors
> are configured, etc). I just want to tell Eclipse to re-compute the
> project and find my files again.

If the .project and .classpath files still exist in the root of your
project, then Eclipse will be able to recognize you project automatically.
These files define what is included in your project. Use
File->New->Project to select Java Project. From the wizard select the
Create project from existing source and select the project root.

make sure that the ignore file filters are not also filtering out your
java sources.

vijay

Buddha wrote:
> I'm afraid I didn't express myself very well.
>
> We ARE using Subversion (Subclipse), and I have all my files. In fact,
> my current directory structure is just fine. It is just Eclipse that
> isn't showing anything. All my files are there, and I can even open up
> my project with Eclipse 3.0 (using an old workspace, of course).
>
> However, it is a royal pain in the rear to get a new project set up
> (we have a ton of 'ignore' files, I'm pretty particular about how my
> editors are configured, etc). I just want to tell Eclipse to
> re-compute the project and find my files again.
>
>

> make sure that the ignore file filters are not also filtering out your
> java sources.

> vijay

I have not modified my filters at all. Java files definately not in the
ignore filter. When I launch Eclipse, as long as I didn't have any
existing files opened up when I last quit, the log doesn't get touched at
all. Not even the "!SESSION" line or buildID log line. If I did have a
Java file opened, then I get the exception noted on my initial post.

> If the .project and .classpath files still exist in the root of your
> project, then Eclipse will be able to recognize you project automatically.
> These files define what is included in your project. Use
> File->New->Project to select Java Project. From the wizard select the
> Create project from existing source and select the project root.

The only thing in the .project is the name of the project, the
buildCommand, and the nature. The only thing in the .classpath is, of
course, the classpath. All my other project settings will still be lost.

Since this was a recent event, without any modifications to my Project
itself (just in the source code), I took a look at all project files
modified in the past month. I have a bunch of files from the 22nd that are
all null. They have length, but no data.

All of these were at 4:40 pm, which may have been around the time of a
power outage. I tried restoring the dialog_settings.xml, .markers, and
syncinfo files from my previous 3.0 project, and just deleting the
workspace\.metadata\.plugins\org.eclipse.core.resources\proj ects\ <My
Project>\.indexes\15 folder, but it made no difference.

I just have to assume that the project was lost to the gods of file
corruption, and I'll have to recreate it. :-(

I had the same kind of condition, except it happened to me without reason. This morning I worked with Eclipse and closed it properly, and when opening Eclipse again this evening, the projects were gone, and the still open editors showed "The file <> does not exist".

Luckily I had a backup on another computer because I use dropbox as a repository, and I was able to determine which files were effectively causing this.

Left is the working copy, right is the erroneous copy.

Just copying the red files didn't work. Just copying the green files didn't work. Copying everything except the log, the 192.tree and the workbench file worked for me.

On 14.07.2011 15:03, forums-noreply@eclipse.org wrote:
> I had the same kind of condition, except it happened to me without reason. This morning I worked with Eclipse and closed it properly, and when opening Eclipse again this evening, the projects were gone, and the still open editors showed "The file<> does not exist".
>
> Luckily I had a backup on another computer because I use dropbox as a repository, and I was able to determine which files were effectively causing this.
>
>
>
> Left is the working copy, right is the erroneous copy.
>
> Just copying the red files didn't work. Just copying the green files didn't work. Copying everything except the log, the 192.tree and the workbench file worked for me.

Please open a bug against Platform Resources and fill in all that
information.