Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338444 - Unable to restart after upgrade
Summary: Unable to restart after upgrade
Status: VERIFIED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 0.2   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: 4.1 M6   Edit
Assignee: Remy Suen CLA
QA Contact: Remy Suen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-28 13:27 EST by John Arthorne CLA
Modified: 2011-03-09 14:46 EST (History)
3 users (show)

See Also:


Attachments
Error log (122.48 KB, text/plain)
2011-02-28 13:27 EST, John Arthorne CLA
no flags Details
Old delta file that caused the failure on restart (230.05 KB, application/octet-stream)
2011-03-02 10:21 EST, Olivier Thomann CLA
no flags Details
Reconciler patch v1 (1.44 KB, patch)
2011-03-02 10:40 EST, Remy Suen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2011-02-28 13:27:08 EST
I upgraded from I20110114 to I20110225. After the upgrading, the workbench will not start. There are a large number of NPE's in the log. I will attach the whole log, but here are some example:

Caused by: java.lang.NullPointerException
	at org.eclipse.ui.internal.Workbench.contains(Workbench.java:1870)
	at org.eclipse.ui.internal.Workbench.defineBindingTable(Workbench.java:1852)


java.lang.NullPointerException
	at org.eclipse.ui.internal.Workbench.setReference(Workbench.java:1681)
	at org.eclipse.ui.internal.Workbench.access$19(Workbench.java:1677)
Comment 1 John Arthorne CLA 2011-02-28 13:27:38 EST
Created attachment 189979 [details]
Error log
Comment 2 John Arthorne CLA 2011-02-28 13:29:26 EST
I was able to restart by deleting my deltas.xml file. However this is not an acceptable step to require users to make on upgrade.
Comment 3 Paul Webster CLA 2011-02-28 13:30:56 EST
As it stands now this is a known problem and a won't fix.  Any change to the schema is un-upgradable at the moment.



PW
Comment 4 John Arthorne CLA 2011-02-28 13:36:36 EST
Preserving UI state after upgrade isn't critical, but having an upgrade result in a broken install that can never be started is no good. I would hope that we can at least detect that the deltas.xml refers to an old model version, and discard it automatically to allow the UI to come up.
Comment 5 Olivier Thomann CLA 2011-03-02 10:21:13 EST
Created attachment 190157 [details]
Old delta file that caused the failure on restart

The file is zipped to make it smaller.
Comment 6 Remy Suen CLA 2011-03-02 10:40:32 EST
Created attachment 190164 [details]
Reconciler patch v1

The old (and now unknown) changes are technically already being discarded but it seems that this causes a discord in the entire system preventing it from running. I have increased the version of the reconciler so that it will discard the deltas of previous versions.

Unfortunately, this will mean that your deltas will be discarded when the next build shows up (even though you are not actually affected by it anymore since you've been using a recent build). If you care about your state then modify your deltas.xml file manually by changing <changes version="1.0"> to <changes version="1.1">.
Comment 7 Remy Suen CLA 2011-03-02 10:41:35 EST
(In reply to comment #6)
> Created attachment 190164 [details]
> Reconciler patch v1

Patch released to CVS HEAD.
Comment 8 Remy Suen CLA 2011-03-09 14:46:32 EST
Verified that a workspace previously opened by I20110114-1005 can be opened by I20110307-2200.