Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Build e(fx)clipse Project not executing
Build e(fx)clipse Project not executing [message #1611233] Wed, 11 February 2015 08:26 Go to next message
The Forester is currently offline The ForesterFriend
Messages: 2
Registered: February 2015
Junior Member
Hello All,

i have installed the e(fx)clipse version of eclipse and set a e4 JavaFX application up and added a empty trimmed window so i can start the application from eclipse.

Now i started to build the application with maven (-install) and the build.xml provided by the *.releng project, all working fine.

When i try to execute the build project (the *.exe File) the window does not load correctly with this error log:

!SESSION 2015-02-11 08:33:00.686 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE

!ENTRY org.eclipse.equinox.ds 1 0 2015-02-11 08:33:02.187
!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]
!SESSION 2015-02-11 08:36:04.813 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE

!ENTRY org.eclipse.equinox.ds 1 0 2015-02-11 08:36:06.412
!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.e4.ui.workbench 4 0 2015-02-11 08:36:06.774
!MESSAGE Unable to create class 'org.eclipse.fx.ui.workbench.fx.PartRenderingEngine' from bundle '64'
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.IllegalArgumentException: Theme with id 'theme.default' is not known.
	at org.eclipse.e4.core.internal.di.ConstructorRequestor.execute(ConstructorRequestor.java:50)
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:335)
	at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:258)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:104)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.instantiateRenderer(E4Workbench.java:170)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
	at org.eclipse.fx.ui.workbench.fx.E4Application$1.lambda$0(E4Application.java:157)
	at org.eclipse.fx.ui.workbench.fx.E4Application$1$$Lambda$9/9984509.run(Unknown Source)
	at org.eclipse.fx.ui.workbench.fx.internal.UISynchronizeImpl.syncExec(UISynchronizeImpl.java:73)
	at org.eclipse.fx.ui.workbench.fx.E4Application$1.run(E4Application.java:151)
	at org.eclipse.fx.ui.workbench.fx.E4Application.jfxStart(E4Application.java:169)
	at org.eclipse.fx.ui.workbench.fx.DefaultJFXApp.start(DefaultJFXApp.java:57)
	at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837)
	at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:335)
	at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:301)
	at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:298)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:298)
	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.access$300(WinApplication.java:39)
	at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
	at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.IllegalArgumentException: Theme with id 'theme.default' is not known.
	at org.eclipse.fx.ui.theme.internal.DefaultThemeManager.setCurrentThemeId(DefaultThemeManager.java:152)
	at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.<init>(PartRenderingEngine.java:126)
	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:408)
	at org.eclipse.e4.core.internal.di.ConstructorRequestor.execute(ConstructorRequestor.java:41)
	... 25 more



My plugin.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension id="product" point="org.eclipse.core.runtime.products">
	<product name="tcr" application="org.eclipse.fx.ui.workbench.fx.application" >
		<property name="appName" value="tcr" />
		
		<property name="applicationXMI" value="tcr.app/Application.e4xmi" />
		
		<property name="cssTheme" value="theme.default" />
		
	</product>
	
</extension>
<extension  point="org.eclipse.fx.ui.theme">
	<theme id="theme.default" basestylesheet="css/default.css" />
</extension>
</plugin>




I tried to work with "platform:/plugin..." for the *.css access but no success, i hope that somebody can help me with this problem.


Re: Build e(fx)clipse Project not executing [message #1611694 is a reply to message #1611233] Wed, 11 February 2015 14:57 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

What version of e(fx)clipse have you used to generate the application?
What target platform do you use when running inside eclipse? What target
platform did you use for building the application?

My guess you use 1.1.0 inside Eclipse but you are doing the build
against the nightly side which already holds 2.0.0 where the theme
definition with the use of extension points has been removed.

My suggest would be to:
a) update your IDE plugins to 1.2.0
b) update your target platform to point to 1.2.0
c) generate once more an application using the wizard
=> this will get you theme management using OSGi-Services

Naturally you could also switch to 2.0.0 nightlies directly so that you
work with what we are releaseing as part of Luna. Our nightlies are
fairly stable but sometimes we break things.

Tom

On 11.02.15 15:46, The Forester wrote:
> Hello All,
>
> i have installed the e(fx)clipse version of eclipse and set a e4 JavaFX
> application up and added a empty trimmed window so i can start the
> application from eclipse.
>
> Now i started to build the application with maven (-install) and the
> build.xml provided by the *.releng project, all working fine.
>
> When i try to execute the build project (the *.exe File) the window does
> not load correctly with this error log:
>
>
> !SESSION 2015-02-11 08:33:00.686
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.8.0
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
>
> !ENTRY org.eclipse.equinox.ds 1 0 2015-02-11 08:33:02.187
> !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]
> !SESSION 2015-02-11 08:36:04.813
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.8.0
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
>
> !ENTRY org.eclipse.equinox.ds 1 0 2015-02-11 08:36:06.412
> !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.e4.ui.workbench 4 0 2015-02-11 08:36:06.774
> !MESSAGE Unable to create class
> 'org.eclipse.fx.ui.workbench.fx.PartRenderingEngine' from bundle '64'
> !STACK 0
> org.eclipse.e4.core.di.InjectionException:
> java.lang.IllegalArgumentException: Theme with id 'theme.default' is not
> known.
> at
> org.eclipse.e4.core.internal.di.ConstructorRequestor.execute(ConstructorRequestor.java:50)
>
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:335)
>
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:258)
> at
> org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
>
> at
> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:104)
>
> at
> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73)
>
> at
> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55)
>
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.instantiateRenderer(E4Workbench.java:170)
>
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
>
> at
> org.eclipse.fx.ui.workbench.fx.E4Application$1.lambda$0(E4Application.java:157)
>
> at
> org.eclipse.fx.ui.workbench.fx.E4Application$1$$Lambda$9/9984509.run(Unknown
> Source)
> at
> org.eclipse.fx.ui.workbench.fx.internal.UISynchronizeImpl.syncExec(UISynchronizeImpl.java:73)
>
> at
> org.eclipse.fx.ui.workbench.fx.E4Application$1.run(E4Application.java:151)
> at
> org.eclipse.fx.ui.workbench.fx.E4Application.jfxStart(E4Application.java:169)
>
> at
> org.eclipse.fx.ui.workbench.fx.DefaultJFXApp.start(DefaultJFXApp.java:57)
> at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837)
> at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:335)
> at
> com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:301)
> at
> com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:298)
> at java.security.AccessController.doPrivileged(Native Method)
> at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:298)
> 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.access$300(WinApplication.java:39)
> at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
> at java.lang.Thread.run(Thread.java:744)
> Caused by: java.lang.IllegalArgumentException: Theme with id
> 'theme.default' is not known.
> at
> org.eclipse.fx.ui.theme.internal.DefaultThemeManager.setCurrentThemeId(DefaultThemeManager.java:152)
>
> at
> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.<init>(PartRenderingEngine.java:126)
>
> 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:408)
> at
> org.eclipse.e4.core.internal.di.ConstructorRequestor.execute(ConstructorRequestor.java:41)
>
> ... 25 more
>
>
>
> My plugin.xml looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.0"?>
> <plugin>
> <extension id="product" point="org.eclipse.core.runtime.products">
> <product name="tcr"
> application="org.eclipse.fx.ui.workbench.fx.application" >
> <property name="appName" value="tcr" />
>
> <property name="applicationXMI"
> value="tcr.app/Application.e4xmi" />
>
> <property name="cssTheme" value="theme.default" />
>
> </product>
>
> </extension>
> <extension point="org.eclipse.fx.ui.theme">
> <theme id="theme.default" basestylesheet="css/default.css" />
> </extension>
> </plugin>
>
>
>
>
> I tried to work with "platform:/plugin..." for the *.css access but no
> success, i hope that somebody can help me with this problem.
>
>
Re: Build e(fx)clipse Project not executing [message #1612825 is a reply to message #1611694] Thu, 12 February 2015 08:19 Go to previous message
The Forester is currently offline The ForesterFriend
Messages: 2
Registered: February 2015
Junior Member
Hello Thomas,

i tried your solution, set everything to 1.2.0 and its working now.

Thank you very much!
Previous Topic:Warning from CssStyleHelper
Next Topic:org.eclipse.fx.ui.dialogs not found
Goto Forum:
  


Current Time: Tue Apr 23 07:18:31 GMT 2024

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

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

Back to the top