Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Luna to Mars Migration(No application selection for org.eclipse.fx.ui.workbench.fx.application)
Luna to Mars Migration [message #1706348] Wed, 26 August 2015 07:48 Go to next message
Joe Van Steen is currently offline Joe Van SteenFriend
Messages: 25
Registered: March 2015
Junior Member
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 #1706350 is a reply to message #1706348] Wed, 26 August 2015 07:55 Go to previous messageGo to next message
Joe Van Steen is currently offline Joe Van SteenFriend
Messages: 25
Registered: March 2015
Junior Member
FWIW my Mars environment is a new Eclipse download. I was unable to migrate my old Luna environment due to an error which comes out of some Papyrus code in the migration process. So the Mars development environment is a new download of the Java Developers package with E(fx)clipse2.0 added. My old Luna application code was then imported and copied into a new workspace and updated for Mars and E(fx)clipse 2.0 in the new environment. It is that new environment that is having this issue.
Re: Luna to Mars Migration [message #1706351 is a reply to message #1706348] Wed, 26 August 2015 08:05 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
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 #1706404 is a reply to message #1706351] Wed, 26 August 2015 16:10 Go to previous messageGo to next message
Joe Van Steen is currently offline Joe Van SteenFriend
Messages: 25
Registered: March 2015
Junior Member
Tom,
Thank you. When I try that and run from within the development environment I get the following error:

!SESSION Wed Aug 26 09:01:28 PDT 2015 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2015-08-26 09:01:28.997
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:666)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
at org.eclipse.equinox.launcher.Main.main(Main.java:1488)

The earlier reported errors were what I got when I run a built exe application externally.

Isn't the source of my problem whatever is hiding, or not providing, the org.eclipse.fx.ui.workbench.fx.application in the application drop down control for the product?

I also think something from my "import" of the Luna/1.2 application is polluting my Mars/2.0 development environment, but I'm too much of an Eclipse newbie to know what it is. Either that, or I need to include something else in my development software, but I don't know what that might be either. Everything builds and compiles clean.
Re: Luna to Mars Migration [message #1706445 is a reply to message #1706404] Wed, 26 August 2015 21:17 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Well all this definately sounds like somethings completely wrong. Can
you post screenshots your target platform setup? What does validate give
you when running in the launch config? Is your product based on features
or on bundles?

Tom

On 26.08.15 18:10, Joe Van Steen wrote:
> Tom,
> Thank you. When I try that and run from within the development
> environment I get the following error:
>
> !SESSION Wed Aug 26 09:01:28 PDT 2015
> ------------------------------------------
> !ENTRY org.eclipse.equinox.launcher 4 0 2015-08-26 09:01:28.997
> !MESSAGE Exception launching the Eclipse Platform:
> !STACK
> java.lang.ClassNotFoundException:
> org.eclipse.core.runtime.adaptor.EclipseStarter
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:666)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
>
> The earlier reported errors were what I got when I run a built exe
> application externally.
>
> Isn't the source of my problem whatever is hiding, or not providing, the
> org.eclipse.fx.ui.workbench.fx.application in the application drop down
> control for the product?
>
> I also think something from my "import" of the Luna/1.2 application is
> polluting my Mars/2.0 development environment, but I'm too much of an
> Eclipse newbie to know what it is. Either that, or I need to include
> something else in my development software, but I don't know what that
> might be either. Everything builds and compiles clean.
Re: Luna to Mars Migration [message #1706459 is a reply to message #1706445] Thu, 27 August 2015 05:25 Go to previous messageGo to next message
Joe Van Steen is currently offline Joe Van SteenFriend
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 #1706460 is a reply to message #1706459] Thu, 27 August 2015 05:37 Go to previous messageGo to next message
Joe Van Steen is currently offline Joe Van SteenFriend
Messages: 25
Registered: March 2015
Junior Member
Attached are screen shots showing the product definition under Luna (1.2) and the current product definition under Mars. I have included 2 detail screen shots of the the detail content of the application drop down showing that the "fx" application selection does not appear in the list.

I know the SWT applications are not what I wanted. I tried the ui.ide.workbench just as a last resort, but that didn't work either. I believe I need to get a "fx workbench" entry into the list, but I'm at a losss as to where it comes from.

I'm hoping that this is as simple as a missing feature that needs to be included in the configuration.

I appreciate your help on time on helping to resolve this issue!
Re: Luna to Mars Migration [message #1706660 is a reply to message #1706460] Fri, 28 August 2015 13:02 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Your target platform is wrong:
* please remove http://download.eclipse.org/eclipse/updates/4.5 from your target
* the update site of efxclipse is wrong - you need to point to http://download.eclipse.org/efxclipse/runtime-released/2.0.0/site and then you need to select "Target platform feature"
Re: Luna to Mars Migration [message #1706930 is a reply to message #1706660] Mon, 31 August 2015 22:37 Go to previous messageGo to next message
Joe Van Steen is currently offline Joe Van SteenFriend
Messages: 25
Registered: March 2015
Junior Member
Tom,
That fixed the original problem, and I now am able to select org.eclipse.fx.ui.workbench.fx.application for my product. However, when I execute the Maven generated executable I get the following null pointer exception error:

!SESSION 2015-08-31 14:56:53.915 -----------------------------------------------
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-31 14:56:55.081
!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:115)
	... 12 more

This seems strange because it seems to be pointing at a missing logger component and I have never needed to do anything special for loggers for efxclipse. Also, when inspecting the plugin modules in the target the slf4j elements seem to be there.
Re: Luna to Mars Migration [message #1706951 is a reply to message #1706930] Tue, 01 September 2015 07:22 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Did you updated to the correct repository in your root-pom.xml? The
exception you present once more makes me believe you are running with
fx.core 1.2.0 (see the line number of the exception!)

Tom

On 01.09.15 00:37, Joe Van Steen wrote:
> Tom,
> That fixed the original problem, and I now am able to select
> org.eclipse.fx.ui.workbench.fx.application for my product. However, when
> I execute the Maven generated executable I get the following null
> pointer exception error:
>
> !SESSION 2015-08-31 14:56:53.915
> -----------------------------------------------
> 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-31 14:56:55.081
> !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:115)
>
> ... 12 more
>
> This seems strange because it seems to be pointing at a missing logger
> component and I have never needed to do anything special for loggers for
> efxclipse. Also, when inspecting the plugin modules in the target the
> slf4j elements seem to be there.
>
Re: Luna to Mars Migration [message #1707191 is a reply to message #1706951] Thu, 03 September 2015 01:43 Go to previous messageGo to next message
Joe Van Steen is currently offline Joe Van SteenFriend
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
Re: Luna to Mars Migration [message #1707197 is a reply to message #1707191] Thu, 03 September 2015 05:30 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Wild guess but if you look at the e4xmi is there an empty url at a menu element - simply remove the attribute from the xmi and things should start working ? Since 2.0 we also support icons on menus. Still this is a bug that needs to be fixed!
Re: Luna to Mars Migration [message #1707198 is a reply to message #1707197] Thu, 03 September 2015 05:31 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Oh the attribute is iconURI IIRC
Re: Luna to Mars Migration [message #1707216 is a reply to message #1707198] Thu, 03 September 2015 07:08 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Fixed the problem with
https://bugs.eclipse.org/bugs/show_bug.cgi?id=476498 unfortunately 2.1.0
is already released (although not publicly announced).

Customers with support contracts with BestSolution.at can request a back
port of the bugfix to a 2.1.1 codebase

Tom

On 03.09.15 07:31, Thomas Schindl wrote:
> Oh the attribute is iconURI IIRC
icon6.gif  Re: Luna to Mars Migration [message #1707327 is a reply to message #1707197] Thu, 03 September 2015 18:06 Go to previous message
Joe Van Steen is currently offline Joe Van SteenFriend
Messages: 25
Registered: March 2015
Junior Member
Tom, That was the last factor and I'm now up and running on Mars with Efxclipse 2.0.

Thank you very much for your help!!!
Previous Topic:Mars updates to tutorial 1
Next Topic:Is this the way "fillspace" designed to work?
Goto Forum:
  


Current Time: Thu Jan 23 03:57:46 GMT 2025

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

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

Back to the top