Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332348 - "-deltaRestore false" leads to product applicationXMI being ignored
Summary: "-deltaRestore false" leads to product applicationXMI being ignored
Status: CLOSED INVALID
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-10 17:44 EST by Brian de Alwis CLA
Modified: 2012-08-06 08:32 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian de Alwis CLA 2010-12-10 17:44:20 EST
BuildId: e4 M4 candidate (I20101209-1653, SDK I20101209-1744)

I receive an NPE when running an app with "-deltaRestore false".  For some reason the application resource is being returned as 'file:/Users/bsd/Manumitting/Projects/Capiche/dev/runtime-debug2.product/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi'

Haven't traced through this yet.

Running with '-clearPersistedState true' works fine though and should be an equivalent workaround.

Daemon Thread [Thread-0] (Suspended (exception NullPointerException))	
	ModelAssembler.processModel() line: 117	
	ResourceHandler.loadMostRecentModel() line: 279	
	E4Application.loadApplicationModel(IApplicationContext, IEclipseContext) line: 323	
	E4Application.createE4Workbench(IApplicationContext, Display) line: 191	
	E4Application.start(IApplicationContext) line: 116	
	EclipseAppHandle.run(Object) line: 196	
	EclipseAppLauncher.runApplication(Object) line: 110	
	EclipseAppLauncher.start(Object) line: 79	
	EclipseStarter.run(Object) line: 369	
	EclipseStarter.run(String[], Runnable) line: 179	
	NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]	
	NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39	
	DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25	
	Method.invoke(Object, Object...) line: 597	
	Main.invokeFramework(String[], URL[]) line: 622	
	Main.basicRun(String[]) line: 577	
	Main.run(String[]) line: 1410	
	Main.main(String[]) line: 1386
Comment 1 Remy Suen CLA 2010-12-10 17:53:51 EST
This likely indicates it's trying to load the model from disk but since one was never persisted, the load fials.
Comment 2 Brian de Alwis CLA 2012-08-06 08:32:18 EDT
Not applicable any more since we're not saving deltas.