Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » e4 fragments from Eclipse 4.4 not working in 4.7
e4 fragments from Eclipse 4.4 not working in 4.7 [message #1785124] Mon, 09 April 2018 18:29 Go to next message
Mihael Schmidt is currently offline Mihael SchmidtFriend
Messages: 81
Registered: August 2010
Member
Hi,

I have a pure e4 application developed with Eclipse 4.4. Now I want to update to the current Eclipse version Oxygen (4.7) but when I start the application I get an IllegalArgumentException:

!ENTRY org.eclipse.e4.ui.workbench 2 0 2018-04-09 20:18:12.170
!MESSAGE Could not resolve an import element for 'null'

!ENTRY org.eclipse.e4.ui.workbench 2 0 2018-04-09 20:18:12.172
!MESSAGE Could not resolve an import element for 'null'

!ENTRY org.eclipse.e4.ui.workbench 2 0 2018-04-09 20:18:12.176
!MESSAGE Could not resolve an import element for 'null'

!ENTRY org.eclipse.e4.ui.workbench 2 0 2018-04-09 20:18:12.178
!MESSAGE Could not resolve import for null

!ENTRY org.eclipse.e4.ui.workbench 4 0 2018-04-09 20:18:12.178
!MESSAGE Replacing

!ENTRY org.eclipse.osgi 4 0 2018-04-09 20:18:12.190
!MESSAGE Application error
!STACK 1
java.lang.IllegalArgumentException: The 'no null' constraint is violated
	at org.eclipse.emf.common.util.AbstractEList.validate(AbstractEList.java:99)
	at org.eclipse.emf.ecore.util.EcoreEList.validate(EcoreEList.java:63)
	at org.eclipse.emf.common.util.BasicEList.setUnique(BasicEList.java:397)
	at org.eclipse.emf.common.notify.impl.NotifyingListImpl.doSetUnique(NotifyingListImpl.java:1247)
	at org.eclipse.emf.common.notify.impl.NotifyingListImpl.setUnique(NotifyingListImpl.java:1222)
	at org.eclipse.emf.common.util.AbstractEList.set(AbstractEList.java:270)
	at org.eclipse.e4.ui.internal.workbench.ModelAssembler$1.run(ModelAssembler.java:431)
	at org.eclipse.e4.ui.internal.workbench.ModelAssembler.resolveImports(ModelAssembler.java:443)
	at org.eclipse.e4.ui.internal.workbench.ModelAssembler.processFragment(ModelAssembler.java:199)
	at org.eclipse.e4.ui.internal.workbench.ModelAssembler.processFragments(ModelAssembler.java:145)
	at org.eclipse.e4.ui.internal.workbench.ModelAssembler.processFragments(ModelAssembler.java:133)
	at org.eclipse.e4.ui.internal.workbench.ModelAssembler.processModel(ModelAssembler.java:99)
	at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadMostRecentModel(ResourceHandler.java:197)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:378)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:253)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:149)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1472)


My fragment.e4xmi looks like this: https://pastebin.com/P5NJr5dA
Re: e4 fragments from Eclipse 4.4 not working in 4.7 [message #1785126 is a reply to message #1785124] Mon, 09 April 2018 18:44 Go to previous message
Mihael Schmidt is currently offline Mihael SchmidtFriend
Messages: 81
Registered: August 2010
Member
Got it.

Part descriptor didn't have a Label set. This doesn't seem to be necessary in 4.4. During runtime the label is set anyway programmatically. The fragment editor should display the Label as a requirement for Part Descriptors.
Previous Topic:intro page not displaying in e4 application
Next Topic:Issue with E4 ProgressView
Goto Forum:
  


Current Time: Fri Mar 29 08:31:48 GMT 2024

Powered by FUDForum. Page generated in 0.02841 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top