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

Bug 370538

Summary: APPLICATION_ELEMENT__PERSISTED_STATE
Product: [Eclipse Project] Platform Reporter: Thomas Kölling <spamdoggi>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: emoffatt, pwebster, remy.suen, tom.schindl
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Thomas Kölling CLA 2012-02-03 05:49:58 EST
Build Identifier: I20120127-1145

Click on any Part inside the XMI Editor, and this Error pops immediately on the screen.

Reproducible: Always

Steps to Reproduce:
1.Open Application.xmi in XMI Editor
2.Click on any Part in the Tree (In my case, the Part was among a PartSashContainer
3.Error APPLICATION_ELEMENT__PERSISTED_STATE pops up
Comment 1 Paul Webster CLA 2012-02-03 08:32:43 EST
Which XMI editor?  The e4xmi editor?  Or did you install the EMF SDK and are trying to use the reflective editor?

Which Application.xmi are you editing?

PW
Comment 2 Thomas Kölling CLA 2012-02-03 09:07:33 EST
(In reply to comment #1)
> Which XMI editor?  The e4xmi editor?  Or did you install the EMF SDK and are
> trying to use the reflective editor?
> 
> Which Application.xmi are you editing?
> 
> PW

Hi Paul,

i mean the The e4xmi Editor.
Comment 3 Thomas Kölling CLA 2012-02-03 09:11:45 EST
(In reply to comment #2)
> (In reply to comment #1)
> > Which XMI editor?  The e4xmi editor?  Or did you install the EMF SDK and are
> > trying to use the reflective editor?
> > 
> > Which Application.xmi are you editing?
> > 
> > PW
> 
> Hi Paul,
> 
> i mean the The e4xmi Editor.

And i edit the one Application.xmi which is there. I have only one.
Comment 4 Thomas Schindl CLA 2012-02-03 09:12:43 EST
Is there something in the log?
Comment 5 Thomas Kölling CLA 2012-02-03 09:18:22 EST
(In reply to comment #4)
> Is there something in the log?

Sorry i've forgot this. Here we go:

!ENTRY org.eclipse.jface 4 2 2012-02-03 15:16:38.165
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NoSuchFieldError: APPLICATION_ELEMENT__PERSISTED_STATE
	at org.eclipse.e4.tools.emf.ui.internal.common.component.PartEditor.createForm(PartEditor.java:289)
	at org.eclipse.e4.tools.emf.ui.internal.common.component.PartEditor.doGetEditor(PartEditor.java:130)
	at org.eclipse.e4.tools.emf.ui.common.component.AbstractComponentEditor.getEditor(AbstractComponentEditor.java:120)
	at org.eclipse.e4.tools.emf.ui.internal.common.ModelEditor$5$1.run(ModelEditor.java:522)
	at org.eclipse.core.databinding.observable.ObservableTracker.runAndCollect(ObservableTracker.java:150)
	at org.eclipse.core.databinding.ObservablesManager.runAndCollect(ObservablesManager.java:103)
	at org.eclipse.e4.tools.emf.ui.internal.common.ModelEditor$5.selectionChanged(ModelEditor.java:519)
	at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
	at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)
	at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188)
	at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211)
	at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241)
	at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239)
	at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233)
	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:999)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:893)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:85)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:579)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:534)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	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)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:352)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:624)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:579)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1433)
Comment 6 Paul Webster CLA 2012-02-03 09:30:08 EST
If you installed 4.2 M5 and then want to install the model editor, which update site did you use?  It looks like you're using a post-M5 version of the model editor.

http://download.eclipse.org/e4/updates/0.12-I-builds won't work to install from for 4.2 M5, but http://download.eclipse.org/e4/downloads/drops/S-0.12M5-201201271145/repository will.

You can uninstall the model editor tools from Help>About>Installation Details and either the Uninstall button on Installed Software or by rolling back your Installation History to before you installed them.

Then use the e4 0.12 M5 update site to install the compatible version.

PW
Comment 7 Thomas Kölling CLA 2012-02-06 04:43:34 EST
Hi Paul,

you've got it. i've installed the packages from the old repositorys. my fault sry.
is there a site where i can see the latest update sites for the stream integration builds incl. tooling?

greetings thomas

(In reply to comment #6)
> If you installed 4.2 M5 and then want to install the model editor, which update
> site did you use?  It looks like you're using a post-M5 version of the model
> editor.
> 
> http://download.eclipse.org/e4/updates/0.12-I-builds won't work to install from
> for 4.2 M5, but
> http://download.eclipse.org/e4/downloads/drops/S-0.12M5-201201271145/repository
> will.
> 
> You can uninstall the model editor tools from Help>About>Installation Details
> and either the Uninstall button on Installed Software or by rolling back your
> Installation History to before you installed them.
> 
> Then use the e4 0.12 M5 update site to install the compatible version.
> 
> PW
Comment 8 Paul Webster CLA 2012-02-06 08:44:11 EST
(In reply to comment #7)
> Hi Paul,
> 
> you've got it. i've installed the packages from the old repositorys. my fault
> sry.
> is there a site where i can see the latest update sites for the stream
> integration builds incl. tooling?
> 

http://wiki.eclipse.org/Eclipse_Project_Update_Sites

The 4.2 build and the e4 0.12 tooling build are both run at the same time and both match.  The I build sites are always in sync with the latest builds, but you have to update both 4.2 and 0.12 to remain compatible.  In your case, you needed to use the 0.12 M5 build to remain compatible with the 4.2 M5 build.

PW