Community
Participate
Working Groups
Build Identifier: 4.2.0.I20111028-100 Following NPE always occurs if the option -deltaRestore is set to false (Model will be saved) and the application model was not been saved before when starting my e4 application. I have a second xmi which i have referenced in my plugin.xml. Model objects from that xmi don't work until i restart the application. java.lang.NullPointerException at org.eclipse.e4.ui.internal.workbench.ModelAssembler.processModel(ModelAssembler.java:118) at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadMostRecentModel(ResourceHandler.java:292) at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:353) at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:217) at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:534) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:520) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.in2soft.eDive.rcp.EDiveApplication.start(EDiveApplication.java:55) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) Reproducible: Always Steps to Reproduce: 1. Set deltaRestore to false 2. Add fragment.xmi to plugin.xml 3. Start e4 application the first time (means with no previous saved model)
Hi, any ongoing progress on that issue? Isn't it a common usecase to extract some model code in different .xmi files? Regards, Matthias
The uncommon thing is that you are not using delta-restore. Is there are reason for that?
If I set delta-restore the model doesn't get persistet. E.g. The layout gets resettet. Is there an other way to achieve that?
Are you running with -clean? You should not need to pass any special flag in e4 to get old state restored.
No, I'm just running with "-deltaRestore false -persistState true". Otherwise the perspective is set to default after restarting. Any hints?
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.