Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » Eclipse 3.7 RCP app -> e4 RCP
Eclipse 3.7 RCP app -> e4 RCP [message #1794798] Thu, 06 September 2018 13:17 Go to next message
Eclipse UserFriend
Howdy,

I'm endeavoring to update the target platform for an Eclipse RCP app originally built upon Eclipse 3.7.

I've added all the Eclipse deps to Photon version and am getting the following startup error:

!ENTRY org.eclipse.e4.ui.workbench 4 0 2018-09-05 15:58:31.103
!MESSAGE Unable to load resource platform:/plugin/<deleted>.ui/Application.e4xmi
!STACK 0
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: java.io.FileNotFoundException: /Application.e4xmi
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:406)
at org.eclipse.e4.ui.internal.workbench.ResourceHandler.getResource(ResourceHandler.java:282)
at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadResource(ResourceHandler.java:258)
at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadMostRecentModel(ResourceHandler.java:177)
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:656)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
at org.eclipse.equinox.launcher.Main.main(Main.java:1471)
Caused by: java.io.FileNotFoundException: /Application.e4xmi
at org.eclipse.osgi.storage.url.bundleentry.Handler.findBundleEntry(Handler.java:51)
at org.eclipse.osgi.storage.url.BundleResourceHandler.openConnection(BundleResourceHandler.java:169)
at java.net.URL.openConnection(URL.java:979)
at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:112)
at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:93)
at org.eclipse.core.internal.boot.PlatformURLConnection.getInputStream(PlatformURLConnection.java:228)
at org.eclipse.emf.ecore.resource.impl.URIHandlerImpl.createInputStream(URIHandlerImpl.java:207)
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:360)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1314)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:259)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
... 20 more

!ENTRY org.eclipse.osgi 4 0 2018-09-05 15:58:31.161
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadMostRecentModel(ResourceHandler.java:178)
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:656)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
at org.eclipse.equinox.launcher.Main.main(Main.java:1471)
An error has occurred. See the log file

Of course there is no Application.e4xmi file, as it was an Eclipse 3.7 RCP app. But...I've been away from RCP for a while...I had thought that there was a compatibility mode for RCP 3.x plugins...or perhaps that has gone away? Is there any way to just use the old product config and app plugin.xml and run on Eclipse e4 now?...e.g. with some legacy .e3xml file, or perhapsthe old rcp stuff in plugin.xml be converted to Application.e4xmi and then be run?

Thanksinadvance for any information or pointers,

Scott
Re: Eclipse 3.7 RCP app -> e4 RCP [message #1794803 is a reply to message #1794798] Thu, 06 September 2018 14:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi Scott,
It seems you have started your product using the E4Application when you should start the original e3 application. Maybe, you have unintentionally selected the E4Application in your run config?
Re: Eclipse 3.7 RCP app -> e4 RCP [message #1794808 is a reply to message #1794803] Thu, 06 September 2018 16:09 Go to previous message
Eclipse UserFriend
Erdal Karaca wrote on Thu, 06 September 2018 14:54
Hi Scott,
It seems you have started your product using the E4Application when you should start the original e3 application. Maybe, you have unintentionally selected the E4Application in your run config?


Hi Erdal,

I had not synchronized the product config with the application since moving into Photon workspace and it was launching the wrong application...so you were right! Appreciate it!

Thanks much.

Scott


Previous Topic:How to setup a droptarget for the E4 main window
Next Topic:Building pure e4 application with maven/tycho
Goto Forum:
  


Current Time: Sat Jul 12 16:02:05 EDT 2025

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

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

Back to the top