Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332348

Summary: "-deltaRestore false" leads to product applicationXMI being ignored
Product: [Eclipse Project] e4 Reporter: Brian de Alwis <bsd>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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.