Bug 14990 - NPE during open project
Summary: NPE during open project
Status: RESOLVED DUPLICATE of bug 14192
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P1 critical (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-01 09:49 EDT by Mariano Kamp CLA
Modified: 2002-05-03 10:58 EDT (History)
1 user (show)

See Also:


Attachments
test (3.97 KB, patch)
2002-05-03 10:58 EDT, Martin Aeschlimann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mariano Kamp CLA 2002-05-01 09:49:58 EDT
Using M5 on WinNT I encounter the following error after opening a project:

<log-entry date="Wed May 01 15:38:26 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.ui"
     severity="WARNING"
     message="Problems occurred when invoking code from plug-in: 
org.eclipse.ui."
     code="2">
    <exception
       message="null"
       trace="
java.lang.NullPointerException
        at 
org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyViewPart.restoreState
(TypeHierarch
yViewPart.java:1210)
        at 
org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyViewPart.createPartContro
l(TypeHie
rarchyViewPart.java:652)
        at org.eclipse.ui.internal.PartPane$1.run(PartPane.java:53)
        at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:838)
        at org.eclipse.core.runtime.Platform.run(Platform.java:411)
        at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:51)
        at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:93)
        at org.eclipse.ui.internal.ViewPane.createControl(ViewPane.java:177)
        at org.eclipse.ui.internal.PartTabFolder.createPartTab
(PartTabFolder.java:245)
        at org.eclipse.ui.internal.PartTabFolder.createControl
(PartTabFolder.java:217)
        at org.eclipse.ui.internal.PartSashContainer.createControl
(PartSashContainer.java:177)
        at org.eclipse.ui.internal.PerspectivePresentation.activate
(PerspectivePresentation.java:88)
        at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:565)
        at org.eclipse.ui.internal.WorkbenchPage.onActivate
(WorkbenchPage.java:1410)
        at org.eclipse.ui.internal.WorkbenchWindow$6.run
(WorkbenchWindow.java:1068)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56)
        at org.eclipse.ui.internal.WorkbenchWindow.setActivePage
(WorkbenchWindow.java:1055)
        at org.eclipse.ui.internal.WorkbenchWindow.restoreState
(WorkbenchWindow.java:972)
        at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:794)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:632)
        at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:838)
        at org.eclipse.core.runtime.Platform.run(Platform.java:411)
        at org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState
(Workbench.java:610)
        at org.eclipse.ui.internal.Workbench.openWindows(Workbench.java:667)
        at org.eclipse.ui.internal.Workbench.init(Workbench.java:503)
        at org.eclipse.ui.internal.Workbench.run(Workbench.java:816)
        at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:777)
        at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:190)
        at org.eclipse.core.launcher.Main.run(Main.java:549)
        at org.eclipse.core.launcher.Main.main(Main.java:390)
">
    </exception>
  </status>
</log-entry>

Eclipse itstelf just silently crashs (the vm is discarded).

I used to close and re(open) projects on a regular basis (in order to speed up 
the workbench), but this never happened before. I thought about what is the 
difference today, but even after some hard thinking I don't have a clue. The 
only thing, which comes to my mind is that I changed the timestamp of Java file 
from the closed project before reopening it. Actually I did a checkout in PVCS 
(standalone, not integrated in eclipse). 

There are other messages in the logfile which don't look promissing to me, but 
nonetheless I did attach the whole file. 

The c:\temp\platform directory is empty.

If you want to query me personally about other circumstances +49 173 5471 763.

One last information which I regard as not related: I am always running eclipse 
with the -data argument. 

C:\eclipse20020416\eclipse>type c:\ws\.metadata\.log
<?xml version="1.0" encoding="UTF-8"?>
<log>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:21 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:21 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:22 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore editor - cannot instantiate input element: 
org.eclipse.ui.part.FileE
ditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:22 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore editor - cannot instantiate input element: 
org.eclipse.ui.part.FileE
ditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:22 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore editor - cannot instantiate input element: 
org.eclipse.ui.part.FileE
ditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:22 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore editor -^C
C:\eclipse20020416\eclipse>type c:\ws\.metadata\.log | more
<?xml version="1.0" encoding="UTF-8"?>
<log>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:20 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:21 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:21 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore mru list - cannot instantiate input element: 
org.eclipse.ui.part.Fil
eEditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:22 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore editor - cannot instantiate input element: 
org.eclipse.ui.part.FileE
ditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:22 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore editor - cannot instantiate input element: 
org.eclipse.ui.part.FileE
ditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:22 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore editor - cannot instantiate input element: 
org.eclipse.ui.part.FileE
ditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:22 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore editor - cannot instantiate input element: 
org.eclipse.ui.part.FileE
ditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:22 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore editor - cannot instantiate input element: 
org.eclipse.ui.part.FileE
ditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:22 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore editor - cannot instantiate input element: 
org.eclipse.ui.part.FileE
ditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:22 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore editor - cannot instantiate input element: 
org.eclipse.ui.part.FileE
ditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:22 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore editor - cannot instantiate input element: 
org.eclipse.ui.part.FileE
ditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:22 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.core.resources"
     severity="INFO"
     message="Unable to restore editor - cannot instantiate input element: 
org.eclipse.ui.part.FileE
ditorInputFactory"
     code="4">
  </status>
</log-entry>
<log-entry date="Wed May 01 15:38:26 GMT+02:00 2002">
  <status
     plugin-id="org.eclipse.ui"
     severity="WARNING"
     message="Problems occurred when invoking code from plug-in: 
org.eclipse.ui."
     code="2">
    <exception
       message="null"
       trace="
java.lang.NullPointerException
        at 
org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyViewPart.restoreState
(TypeHierarch
yViewPart.java:1210)
        at 
org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyViewPart.createPartContro
l(TypeHie
rarchyViewPart.java:652)
        at org.eclipse.ui.internal.PartPane$1.run(PartPane.java:53)
        at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:838)
        at org.eclipse.core.runtime.Platform.run(Platform.java:411)
        at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:51)
        at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:93)
        at org.eclipse.ui.internal.ViewPane.createControl(ViewPane.java:177)
        at org.eclipse.ui.internal.PartTabFolder.createPartTab
(PartTabFolder.java:245)
        at org.eclipse.ui.internal.PartTabFolder.createControl
(PartTabFolder.java:217)
        at org.eclipse.ui.internal.PartSashContainer.createControl
(PartSashContainer.java:177)
        at org.eclipse.ui.internal.PerspectivePresentation.activate
(PerspectivePresentation.java:88)
        at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:565)
        at org.eclipse.ui.internal.WorkbenchPage.onActivate
(WorkbenchPage.java:1410)
        at org.eclipse.ui.internal.WorkbenchWindow$6.run
(WorkbenchWindow.java:1068)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56)
        at org.eclipse.ui.internal.WorkbenchWindow.setActivePage
(WorkbenchWindow.java:1055)
        at org.eclipse.ui.internal.WorkbenchWindow.restoreState
(WorkbenchWindow.java:972)
        at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:794)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:632)
        at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:838)
        at org.eclipse.core.runtime.Platform.run(Platform.java:411)
        at org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState
(Workbench.java:610)
        at org.eclipse.ui.internal.Workbench.openWindows(Workbench.java:667)
        at org.eclipse.ui.internal.Workbench.init(Workbench.java:503)
        at org.eclipse.ui.internal.Workbench.run(Workbench.java:816)
        at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:777)
        at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:190)
        at org.eclipse.core.launcher.Main.run(Main.java:549)
        at org.eclipse.core.launcher.Main.main(Main.java:390)
">
    </exception>
  </status>
</log-entry>


C:\eclipse20020416\eclipse>
Comment 1 Mariano Kamp CLA 2002-05-01 10:40:59 EDT
Things are getting worse. I tried to delete the project (leaving the files 
intact) -> ok -> Created a new project with the same location -> ok -> set up 
the classpath -> ok -> recompile during this -> crash!!! It is not possible to 
restart eclipse anymore now -> JVM terminated. Exit code=-1073741819 .... 

No log was written and it is happening every time. There is also nothing on 
stdout/err.


Quick question. Why wasn't it possible to attach a file in the bug entry 
screen, but it is now? Wouldn't it make sense to have this feature on the first 
screen already? (At least I would have used it then). The other problem is that 
I get a page not found or similar when trying to upload anything.
Comment 2 Mariano Kamp CLA 2002-05-01 11:08:08 EDT
I get the same error with the build as of the 25th of April.

When starting with a fresh repository I can startup eclipse but then the same 
story begins ;-(

It seems that I need to look for a new project to work on ;-) Any workarounds I 
haven't tried yet?
Comment 3 Martin Aeschlimann CLA 2002-05-01 12:30:05 EDT
The walkback you get is similar to bug 14192. This bug is fixed in 0425.

We are working with 0425, it is stable. Do you start up with the same workspace 
as before? Is it possible to set up a fresh workspace.

What is your VM? Note that IBM 1.3.1 has shown problems with the JIT.
Comment 4 Mariano Kamp CLA 2002-05-01 16:26:59 EDT
Martin, thanks for caring. 
You've probably not seen my other comments as I was bloating this bug report 
with the full log. As I stated in the other comments I tried with 0425 with no 
luck and also with a fresh workspace - same effect.

The only thing which kept the same was the project directory. I was reluctant 
to delete it as it takes me about 4 hours to get my sources back from pvcs as I 
am on a remote location and it always takes me a couple of tries. Anyway I did 
that, just finished, and now eclipse is starting again and I can work again.

Unfortunately I didn't save the .classpath and .project files. I think they 
could have been of help, but I didn't think about it before.

Regarding your question about the vm: I am using sun's JDK1.4rc inside eclipse 
and eclipse self is launched by sun's jre1.3.

Looking at bug http://bugs.eclipse.org/bugs/show_bug.cgi?id=14192 you're right, 
the symptoms seem the same. So this seems to be a duplicate (though I checked 
first ??). The value of this bug report could be the attempts to work around 
the problem.
Comment 5 Martin Aeschlimann CLA 2002-05-03 03:40:23 EDT
It seems that you workspace got corrupted. Do you still have the workspace? 
Could you post it?

I'm resolving the bug as a duplicate of bug 14192 (Although that fix cares only 
about the symptoms of the real problem)

*** This bug has been marked as a duplicate of 14192 ***
Comment 6 Martin Aeschlimann CLA 2002-05-03 10:58:28 EDT
Created attachment 743 [details]
test