Home » Eclipse Projects » e(fx)clipse » Luna to Mars Migration(No application selection for org.eclipse.fx.ui.workbench.fx.application)
| |
Re: Luna to Mars Migration [message #1706351 is a reply to message #1706348] |
Wed, 26 August 2015 08:05 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
Did you try to check "Clear the configuration area before launching" on
the Configuration Tab? From the exception below it looks like you are
still loading Util.class from 1.2.0.
1.2.0:
http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/bundles/runtime/org.eclipse.fx.core/src/org/eclipse/fx/core/Util.java?h=1.2.0
2.0.0:
http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/bundles/runtime/org.eclipse.fx.core/src/org/eclipse/fx/core/Util.java?h=2.0.0
Tom
On 26.08.15 09:48, Joe Van Steen wrote:
> I have a E(fx)clipse application that runs as a Luna application. I have
> tried to convert it from Luna (efxclipse 1.2) to Mars (efxclipse 2.0).
> I've worked through a number of migration issues. However, I am finding
> in my product definition I not longer have a selection for
> org.eclipse.fx.ui.workbench.fx.application. This in turn causes the
> project to fail when executed with an error:
>
> eclipse.buildId=unknown
> java.version=1.8.0_40
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
> Framework arguments: -clearPersistedState
> Command-line arguments: -os win32 -ws win32 -arch x86_64
> -clearPersistedState
>
> !ENTRY org.eclipse.equinox.app 4 0 2015-08-26 00:40:02.690
> !MESSAGE Plug-in "org.eclipse.fx.ui.workbench.fx" was unable to
> instantiate class "org.eclipse.fx.ui.workbench.fx.E4Application".
> !STACK 0
> org.eclipse.core.runtime.CoreException: Plug-in
> "org.eclipse.fx.ui.workbench.fx" was unable to instantiate class
> "org.eclipse.fx.ui.workbench.fx.E4Application".
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:188)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
>
> at
> org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
>
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.ExceptionInInitializerError
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
> at java.lang.Class.newInstance(Class.java:442)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
>
> ... 6 more
> Caused by: java.lang.NullPointerException
> at java.util.Arrays.stream(Arrays.java:5004)
> at java.util.stream.Stream.of(Stream.java:1000)
> at org.eclipse.fx.core.Util._lookupServiceList(Util.java:157)
> at org.eclipse.fx.core.Util._lookupService(Util.java:92)
> at org.eclipse.fx.core.Util.lookupService(Util.java:207)
> at
> org.eclipse.fx.core.log.LoggerCreator.createLogger(LoggerCreator.java:34)
> at
> org.eclipse.fx.ui.workbench.base.AbstractE4Application.<clinit>(AbstractE4Application.java:113)
>
> ... 12 more
>
>
> If instead of leaving the application selection blank I select
> org.eclipse.ui.ide.workbench I get the execution error:
>
> eclipse.buildId=unknown
> java.version=1.8.0_40
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
> Framework arguments: -clearPersistedState
> Command-line arguments: -os win32 -ws win32 -arch x86_64
> -clearPersistedState
>
> !ENTRY org.eclipse.osgi 4 0 2015-08-26 00:13:41.478
> !MESSAGE Application error
> !STACK 1
> java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench"
> could not be found in the registry. The applications available are:
> org.eclipse.equinox.app.error, org.eclipse.fx.ui.workbench.fx.application.
> at
> org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
>
> at
> org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
>
> 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:380)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
>
> 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:497)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
>
> This seems to indicate that org.eclipse.fx.ui.workbench.fx.application
> is known to the system even though it does not appear as an application
> selection in my product definition UI.
>
> Can anyone explain to me what I need to do to fix this issue? Am I
> missing something in my development environment? Did I mess something
> up in my Luna to Mars migration?
> Thanks!
>
|
|
| | |
Re: Luna to Mars Migration [message #1706459 is a reply to message #1706445] |
Thu, 27 August 2015 05:25 |
Joe Van Steen Messages: 25 Registered: March 2015 |
Junior Member |
|
|
Hi Tom,
My product is based on features, and I am using a Maven build process. What I am seeing when I try to launch internally is an error. If I force the error, I get the "ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter" error. This refers to a detail message "Attribute 'application' of element 'product' must be defined."
Of course, I'm aware of that and that is what I have pointed out above. The problem is, I'm not sure how I lost the org.eclipse.fx.ui.workbench.fx.application specification in in the application drop down or how to get it back.
Screen shots of the target platform are attached:
TargetDefinition_Definition.pdf provides the overview.
TargetDefinition_Content1 & 2 show the content tab fully scrolled so you can see all entries.
I have also provided two views of the target content for my product as it was defined under the Luna version of my code, with selection showing the efxclipse content. One showing the 1.2 features, and the second showing the 1.2 fx.ui.workbench.xxx plugins which do not seem to have corollaries in my Mars environment. It seems to me that there are a lot more efxclipse components in Luna rather than Mars, but that could be either a function of your packaging, or indicate missing components on my part. You would be the expert on which case reflects reality.
I will follow this with a second reply that will contain screen shots of my new and old product definition.
|
|
| | | | |
Re: Luna to Mars Migration [message #1707191 is a reply to message #1706951] |
Thu, 03 September 2015 01:43 |
Joe Van Steen Messages: 25 Registered: March 2015 |
Junior Member |
|
|
Tom,
At this point I'm pretty sure I'm making progress and fully running an efxclipse 2.0 environment. I have what reports to be a clean project. However, when I start the application it aborts just as the e4 GUI should be starting. My own code shows my startup processing, then a shutdown triggers when the exception happens. This is an e4 app. I seem to get the same error both when I execute both from the product definition overview "Launch an Eclipse Application" and when I launch the Maven created executable.
Has something else changed from 1.2 to 2.0 that would affect my GUI startup?
!SESSION 2015-09-02 18:18:14.596 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_60
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -clearPersistedState
Command-line arguments: -os win32 -ws win32 -arch x86_64 -clearPersistedState
!ENTRY org.eclipse.equinox.ds 1 0 2015-09-02 18:18:17.204
!MESSAGE Could not bind a reference of component org.eclipse.fx.core.log4j.Log4JLoggerFactory. The reference is: Reference[name = registerAppender, interface = org.apache.log4j.Appender, policy = dynamic, policy-option = greedy, cardinality = 0..n, target = null, bind = registerAppender, unbind = unregisterAppender, updated = null]
!ENTRY org.eclipse.equinox.ds 1 0 2015-09-02 18:18:17.207
!MESSAGE Could not bind a reference of component org.eclipse.fx.core.internal.JUtilLoggerFactory. The reference is: Reference[name = registerHandler, interface = java.util.logging.Handler, policy = dynamic, policy-option = greedy, cardinality = 0..n, target = null, bind = registerHandler, unbind = unregisterHandler, updated = null]
!ENTRY org.eclipse.equinox.ds 1 0 2015-09-02 18:18:17.643
!MESSAGE Could not bind a reference of component org.eclipse.fx.ui.theme.thememanager. The reference is: Reference[name = Theme, interface = org.eclipse.fx.ui.services.theme.Theme, policy = dynamic, cardinality = 0..n, target = null, bind = registerTheme, unbind = unregisterTheme]
!ENTRY org.eclipse.equinox.app 4 0 2015-09-02 18:18:18.946
!MESSAGE Exception in Application start method
!STACK 0
java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$156(LauncherImpl.java:182)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.eclipse.e4.core.di.InjectionException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:68)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:115)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:345)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:264)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.createWidget(BaseRenderer.java:186)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.createWidget(BaseRenderer.java:1)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createWidget(PartRenderingEngine.java:246)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:211)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:311)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.engineCreateWidget(BaseRenderer.java:603)
at org.eclipse.fx.ui.workbench.renderers.base.BaseMenuBarRenderer.doProcessContent(BaseMenuBarRenderer.java:52)
at org.eclipse.fx.ui.workbench.renderers.base.BaseMenuBarRenderer.doProcessContent(BaseMenuBarRenderer.java:1)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.processContent(BaseRenderer.java:697)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:214)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:311)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.engineCreateWidget(BaseRenderer.java:603)
at org.eclipse.fx.ui.workbench.renderers.base.BaseWindowRenderer.doProcessContent(BaseWindowRenderer.java:350)
at org.eclipse.fx.ui.workbench.renderers.base.BaseWindowRenderer.doProcessContent(BaseWindowRenderer.java:1)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.processContent(BaseRenderer.java:697)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:214)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:311)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.run(PartRenderingEngine.java:434)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.fx.ui.workbench.fx.E4Application$1.lambda$0(E4Application.java:181)
at org.eclipse.fx.ui.workbench.fx.internal.UISynchronizeImpl.syncExec(UISynchronizeImpl.java:88)
at org.eclipse.fx.ui.workbench.fx.E4Application$1.run(E4Application.java:170)
at org.eclipse.fx.ui.workbench.fx.E4Application.jfxStart(E4Application.java:193)
at org.eclipse.fx.ui.workbench.fx.DefaultJFXApp.start(DefaultJFXApp.java:57)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$149(WinApplication.java:191)
... 1 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1931)
at org.eclipse.fx.core.SimpleURI.parseURI(SimpleURI.java:71)
at org.eclipse.fx.core.SimpleURI.<init>(SimpleURI.java:42)
at org.eclipse.fx.core.URI.create(URI.java:69)
at org.eclipse.fx.ui.workbench.fx.internal.GraphicsLoaderImpl.replaceDynamicValues(GraphicsLoaderImpl.java:144)
at org.eclipse.fx.ui.workbench.fx.internal.GraphicsLoaderImpl.getGraphicsNode(GraphicsLoaderImpl.java:120)
at org.eclipse.fx.ui.workbench.renderers.fx.DefMenuRenderer$MenuImpl.setIconURI(DefMenuRenderer.java:183)
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:497)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
... 37 more
|
|
| | | | |
Goto Forum:
Current Time: Wed Feb 05 04:52:41 GMT 2025
Powered by FUDForum. Page generated in 0.06193 seconds
|