Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Errors Creating Addons
Errors Creating Addons [message #1126248] Sat, 05 October 2013 10:20 Go to next message
Ghislain Mustermann is currently offline Ghislain Mustermann
Messages: 24
Registered: April 2013
Junior Member
Hello Everyone,

im building a E4 Application with e(fx)clipse. I tried to create a Addon for my Trimmed Window like this :

package de.demo.app.handlers;

import javax.annotation.PostConstruct;

import org.eclipse.e4.ui.model.application.MApplication;
import org.eclipse.e4.ui.model.application.ui.basic.MTrimmedWindow;

public class InitWindowAddon {

	@PostConstruct
	void init(MApplication application) {
		/*
		 * Preconditions.checkArgument(application != null,
		 * "Application dont exist!");
		 * 
		 * Preconditions.checkArgument(!application.getChildren().isEmpty(),
		 * "Application has no Children!");
		 */

		if (application.getChildren().get(0) instanceof MTrimmedWindow) {

			MTrimmedWindow window = (MTrimmedWindow) application.getChildren()
					.get(0);

			window.setLabel("Es ist perfekt!!!");
		}
	}
}


I also tried to used Guava Librairies without success. But after a while when i run my product i see those Errors :


Quote:
!ENTRY org.eclipse.emf.ecore 2 0 2013-10-05 11:56:12.455
!MESSAGE Both 'org.eclipse.e4.tools.css.editor.ui' and 'org.eclipse.fx.ide.css.ui' register an extension parser for 'css'
Invalid type stored in transient data with the key binding
Invalid type stored in transient data with the key binding


Quote:
!ENTRY org.eclipse.equinox.event 4 0 2013-10-05 11:56:13.216
!MESSAGE Exception while dispatching event org.osgi.service.event.Event [topic=org/eclipse/e4/ui/model/ui/UIElement/widget/SET] to handler org.eclipse.e4.ui.services.internal.events.UIEventHandler@6d9ef75f
!STACK 0
java.lang.ClassCastException: org.eclipse.fx.ui.workbench.renderers.fx.DefWindowRenderer$WWindowImpl cannot be cast to org.eclipse.swt.widgets.Widget


I has already such Errors in the past, and i removed from my run configurations all SWT Plugins. But this Errors suddenly come again.

Why and How can i solve this?
Re: Errors Creating Addons [message #1127070 is a reply to message #1126248] Sun, 06 October 2013 08:10 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5331
Registered: July 2009
Senior Member
On 05.10.13 14:22, Ghislain Mustermann wrote:
> Hello Everyone,
>
> im building a E4 Application with e(fx)clipse. I tried to create a Addon
> for my Trimmed Window like this :
>
>
> package de.demo.app.handlers;
>
> import javax.annotation.PostConstruct;
>
> import org.eclipse.e4.ui.model.application.MApplication;
> import org.eclipse.e4.ui.model.application.ui.basic.MTrimmedWindow;
>
> public class InitWindowAddon {
>
> @PostConstruct
> void init(MApplication application) {
> /*
> * Preconditions.checkArgument(application != null,
> * "Application dont exist!");
> * *
> Preconditions.checkArgument(!application.getChildren().isEmpty(),
> * "Application has no Children!");
> */
>
> if (application.getChildren().get(0) instanceof MTrimmedWindow) {
>
> MTrimmedWindow window = (MTrimmedWindow)
> application.getChildren()
> .get(0);
>
> window.setLabel("Es ist perfekt!!!");
> }
> }
> }
> I also tried to used Guava Librairies without success. But after a while
> when i run my product i see those Errors :
>
>
> Quote:
>> !ENTRY org.eclipse.emf.ecore 2 0 2013-10-05 11:56:12.455
>> !MESSAGE Both 'org.eclipse.e4.tools.css.editor.ui' and
>> 'org.eclipse.fx.ide.css.ui' register an extension parser for 'css'
>> Invalid type stored in transient data with the key binding
>> Invalid type stored in transient data with the key binding
>

So where do you see this message, when you launch your app? This makes
no sense at all. You noted the term "ide" in the package name? To me it
looks like you are not launching the e4 app but an inner IDE.

>
> Quote:
>> !ENTRY org.eclipse.equinox.event 4 0 2013-10-05 11:56:13.216
>> !MESSAGE Exception while dispatching event
>> org.osgi.service.event.Event
>> [topic=org/eclipse/e4/ui/model/ui/UIElement/widget/SET] to handler
>> org.eclipse.e4.ui.services.internal.events.UIEventHandler@6d9ef75f
>> !STACK 0
>> java.lang.ClassCastException:
>> org.eclipse.fx.ui.workbench.renderers.fx.DefWindowRenderer$WWindowImpl
>> cannot be cast to org.eclipse.swt.widgets.Widget
>

So are you writing an SWT e4 app which embeds JavaFX or a pure e4 JavaFX
application? If it is the latter please make sure that you've set an
appropriate target platform (this would make your first problem
disappear as well).

In case you want to embed JavaFX into e4 you need to make sure that the
rendering engine of SWT is used.

Tom
Re: Errors Creating Addons [message #1127155 is a reply to message #1127070] Sun, 06 October 2013 10:23 Go to previous messageGo to next message
Ghislain Mustermann is currently offline Ghislain Mustermann
Messages: 24
Registered: April 2013
Junior Member
Hallo Tom,

i just want to use a pure e4 JavaFX. I follow your tipps and tried to set a new Target Platform for my Project like this : wiki.eclipse.org/Efxclipse/Tutorials/Tutorial4.
Im using Eclipse Kepler and after set the Target Platform i see an Error saying that Quote:
You have selected a target with a newer version than your current Eclipse Installation. This can cause unexpected behaviour in PDE. Please use a newer version of eclipse.


And when im running the product.launch : Quote:
"org.eclipse.fx.ui.workbench.fx" was unable to instantiate class "org.eclipse.fx.ui.workbench.fx.E4Application".


By the way my Project is build like i already wrote on Google Groups : groups.google.com/forum/#!topic/efxclipse/olNlqcbkhe8.

Thanks

[Updated on: Sun, 06 October 2013 11:07]

Report message to a moderator

Re: Errors Creating Addons [message #1127190 is a reply to message #1127155] Sun, 06 October 2013 11:18 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5331
Registered: July 2009
Senior Member
On 06.10.13 12:23, Ghislain Mustermann wrote:
> Hallo Tom,
>
> i just want to use a pure e4 JavaFX. I follow your tipps and tried to
> set a new Target Platform for my Project like this :
> wiki.eclipse.org/Efxclipse/Tutorials/Tutorial4. Im using Eclipse Kepler
> and after set the Target Platform i see an Error saying that Quote:
>> You have selected a target with a newer version than your current
>> Eclipse Installation. This can cause unexpected behaviour in PDE.
>> Please use a newer version of eclipse.

That's not a problem!

>
>
> And when im running the product.launch : Quote:
>> "org.eclipse.fx.ui.workbench.fx" was unable to instantiate class
>> "org.eclipse.fx.ui.workbench.fx.E4Application".

Not sure what's wrong with your launch config. Does the project itself
compile?

Tom
Re: Errors Creating Addons [message #1127215 is a reply to message #1127190] Sun, 06 October 2013 11:51 Go to previous messageGo to next message
Ghislain Mustermann is currently offline Ghislain Mustermann
Messages: 24
Registered: April 2013
Junior Member
Hi Tom,

Yes the Project itself compile (mvn clean install). But when i run it (right click -> run as.. ), it dont show my application anymore and show this error message. Thats happend since i touched the Target Platform in Eclipse Preferences.

Here the Whole Error :

Quote:
!ENTRY org.eclipse.equinox.app 4 0 2013-10-06 14:20:51.421
!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:186)
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:724)
Caused by: java.lang.NullPointerException: A null service reference is not allowed.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(BundleContextImpl.java:586)
at org.eclipse.fx.osgi.util.LoggerCreator.createLogger(LoggerCreator.java:37)
at org.eclipse.fx.ui.workbench.fx.E4Application.<init>(E4Application.java:94)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:374)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
... 6 more



Thanks

[Updated on: Sun, 06 October 2013 12:22]

Report message to a moderator

Re: Errors Creating Addons [message #1127254 is a reply to message #1127215] Sun, 06 October 2013 12:54 Go to previous messageGo to next message
Ghislain Mustermann is currently offline Ghislain Mustermann
Messages: 24
Registered: April 2013
Junior Member
Well! My Bad!

I forgot after changing the Platform to go into my product :

1. Into my Product Overview -> Product Definition Tab -> set Product and set Application

After that i opened the Run Configuration -> Plugins -> press Add required Plugins.

Now my Application run without any Errors. I hope i have now the right settings.

Thanks to Tom.
Re: Errors Creating Addons [message #1127275 is a reply to message #1127254] Sun, 06 October 2013 13:25 Go to previous messageGo to next message
Ghislain Mustermann is currently offline Ghislain Mustermann
Messages: 24
Registered: April 2013
Junior Member
To Close my Post. I see into the Plugins Librairies that efxclipse use Guava is that the same version than this one : code.google.com/p/guava-libraries/wiki/Release15 ??

Thanks
Re: Errors Creating Addons [message #1127320 is a reply to message #1127275] Sun, 06 October 2013 14:28 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5331
Registered: July 2009
Senior Member
No ours is 10.0.1.v201203051515

Tom

On 06.10.13 15:25, Ghislain Mustermann wrote:
> To Close my Post. I see into the Plugins Librairies that efxclipse use
> Guava is that the same version than this one :
> code.google.com/p/guava-libraries/wiki/Release15 ??
>
> Thanks
icon9.gif  Re: Errors Creating Addons [message #1256884 is a reply to message #1126248] Tue, 25 February 2014 22:39 Go to previous messageGo to next message
Betsy Kramer is currently offline Betsy Kramer
Messages: 12
Registered: February 2014
Junior Member
I am getting this error also but when trying to run from a deployed version of the app, any ideas? do I have to set a classpath somewhere to find the fx jars?

MESSAGE Plug-in "org.eclipse.fx.ui.workbench.fx" was unable to instantiate class "org.eclipse.fx.ui.workbench.fx.E4Application".

Please help, I am desparate, I've been trying to get this to run for a week
Re: Errors Creating Addons [message #1256892 is a reply to message #1256884] Tue, 25 February 2014 22:47 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5331
Registered: July 2009
Senior Member
So there has to be much more in your log!

Tom

On 25.02.14 23:39, Sue Collins wrote:
> I am getting this error also but when trying to run from a deployed
> version of the app, any ideas? do I have to set a classpath somewhere to
> find the fx jars?
>
> MESSAGE Plug-in "org.eclipse.fx.ui.workbench.fx" was unable to
> instantiate class "org.eclipse.fx.ui.workbench.fx.E4Application".
>
> Please help, I am desparate, I've been trying to get this to run for a week
Re: Errors Creating Addons [message #1257633 is a reply to message #1256892] Wed, 26 February 2014 16:48 Go to previous messageGo to next message
Betsy Kramer is currently offline Betsy Kramer
Messages: 12
Registered: February 2014
Junior Member
Hi Tom,
Not too much, this is the complete log.

!SESSION 2014-02-25 17:53:11.839 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.equinox.app 4 0 2014-02-25 17:53:13.351
!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:186)
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:744)
Caused by: java.lang.NullPointerException: A null service reference is not allowed.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(BundleContextImpl.java:586)
at org.eclipse.fx.osgi.util.LoggerCreator.createLogger(LoggerCreator.java:52)
at org.eclipse.fx.ui.workbench.fx.E4Application.<init>(E4Application.java:107)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:374)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
... 6 more

does it help at all?
Re: Errors Creating Addons [message #1257657 is a reply to message #1257633] Wed, 26 February 2014 17:19 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5331
Registered: July 2009
Senior Member
Hi,

sort of helps so can you check if DS is in your product definition and
that it is starting at the right level?

Tom

On 26.02.14 17:48, Sue Collins wrote:
> Hi Tom,
> Not too much, this is the complete log.
>
> !SESSION 2014-02-25 17:53:11.839
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.7.0_51
> java.vendor=Oracle Corporation
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Command-line arguments: -os linux -ws gtk -arch x86_64
>
> !ENTRY org.eclipse.equinox.app 4 0 2014-02-25 17:53:13.351
> !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:186)
>
> 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:744)
> Caused by: java.lang.NullPointerException: A null service reference is
> not allowed.
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(BundleContextImpl.java:586)
>
> at
> org.eclipse.fx.osgi.util.LoggerCreator.createLogger(LoggerCreator.java:52)
> at
> org.eclipse.fx.ui.workbench.fx.E4Application.<init>(E4Application.java:107)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at java.lang.Class.newInstance(Class.java:374)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
>
> ... 6 more
>
> does it help at all?
>
Re: Errors Creating Addons [message #1257676 is a reply to message #1257657] Wed, 26 February 2014 17:38 Go to previous messageGo to next message
Betsy Kramer is currently offline Betsy Kramer
Messages: 12
Registered: February 2014
Junior Member
Hi Tom,
This is what I have in the product definition and I really don't know what the order should be or if all of these eclipse plugins should even be here. I set it up based on googling for solutions.

org.eclipse.core.runtime start level default
org.eclipse.equinox.common start level 2
org.eclipse.osgi start level -1
org.eclipse.equinox.ds start level 1
myplugin start level default

it looks to me like I might be missing a bundle but I haven't a clue as to what I need Sad

[Updated on: Wed, 26 February 2014 18:49]

Report message to a moderator

Re: Errors Creating Addons [message #1258529 is a reply to message #1257676] Thu, 27 February 2014 13:26 Go to previous messageGo to next message
Betsy Kramer is currently offline Betsy Kramer
Messages: 12
Registered: February 2014
Junior Member
ok so I am so sorry I have to keep bothering you about this but it's driving me to drink (tequila so it's not all bad) but....
it looks for certain that the ds is not starting up but I don't know how to write the config.ini file to make it start up.
Any and all help is greatly appreciated!!
Re: Errors Creating Addons [message #1259297 is a reply to message #1258529] Fri, 28 February 2014 08:20 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5331
Registered: July 2009
Senior Member
a) I don't think you need to set a start level for your myplugin
b) if you launch the application with a -console -noexit and do an
ss ds
In which state is ds? If it is not in running state then try to
start it using start <ID_OF_DS_BUNDLE>

If you have used the wizards to create an JavaFX application they would
have appropriately created the .product file for you.

Tom

On 27.02.14 14:26, Sue Collins wrote:
> ok so I am so sorry I have to keep bothering you about this but it's
> driving me to drink (tequila so it's not all bad) but....
> it looks for certain that the ds is not starting up but I don't know how
> to write the config.ini file to make it start up.
> Any and all help is greatly appreciated!!
Re: Errors Creating Addons [message #1262391 is a reply to message #1259297] Mon, 03 March 2014 15:37 Go to previous messageGo to next message
Betsy Kramer is currently offline Betsy Kramer
Messages: 12
Registered: February 2014
Junior Member
I changed the order to start the ds first and then the core rumtime. This is what I see:

"Framework is launched."


id State Bundle
14 ACTIVE org.eclipse.e4.core.commands_0.10.2.v20131007-1653
46 ACTIVE org.eclipse.core.commands_3.6.100.v20130515-1857
74 ACTIVE org.eclipse.equinox.ds_1.4.200.v20131126-2331

I'm also getting this now which I didn't before. Is there something wrong with my classpath?

MyBundleClassLoader#createJREBundledClassloader - Started
MyBundleClassLoader#createJREBundledClassloader - Assumed location (Java 8/Java 7): /usr/home/ekramer/jdk1.7.0_51/jre/lib/ext/jfxrt.jar
MyBundleClassLoader#createJREBundledClassloader - Assumed location (Java 7): /usr/home/ekramer/jdk1.7.0_51/jre/lib/jfxrt.jar
MyBundleClassLoader#createJREBundledClassloader - Ended

[Updated on: Mon, 03 March 2014 15:58]

Report message to a moderator

Re: Errors Creating Addons [message #1262641 is a reply to message #1262391] Mon, 03 March 2014 21:25 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5331
Registered: July 2009
Senior Member
Ok that looks ok next lets:

a) check if org.eclipse.fx.core is at least resolved
b) check the OSGi-Registry to see services published you use

services (objectclass=org.eclipse.fx.core.log.LoggerFactory)

in the OSGi-Console

There should at least be a result like:

> osgi> services (objectclass=org.eclipse.fx.core.log.LoggerFactory)
> {org.eclipse.fx.core.log.LoggerFactory}={component.name=org.eclipse.fx.core.jlogger, component.id=16, service.id=48, service.scope=bundle}
> "Registered by bundle:" org.eclipse.fx.core_1.0.0.qualifier [48]
> "Bundles using service"
> org.eclipse.fx.ui.workbench.base_1.0.0.qualifier [45]
> org.eclipse.e4.ui.workbench_1.1.0.v20140123-1829 [12]
> org.eclipse.fx.ui.workbench.fx_1.0.0.qualifier [22]

Tom

On 03.03.14 16:37, Sue Collins wrote:
> Hi Tom,
> This is what I see:
>
> id State Bundle
> 131 RESOLVED org.eclipse.core.commands_3.6.100.v20130515-1857
> 146 STARTING org.eclipse.e4.core.commands_0.10.2.v20130515-1857
> 186 ACTIVE org.eclipse.equinox.ds_1.4.101.v20130813-1853
> osgi>
Re: Errors Creating Addons [message #1264072 is a reply to message #1262641] Wed, 05 March 2014 01:06 Go to previous messageGo to next message
Betsy Kramer is currently offline Betsy Kramer
Messages: 12
Registered: February 2014
Junior Member
I'm getting excited, I feel so close. I get a command window when I launch the app now but it still doesn't render the trimmedwindow, I get this error:

mpl$1 error
SEVERE: Failed to create the presentation engine for URI: bundleclass://org.ecli
pse.fx.ui.workbench.fx/org.eclipse.fx.ui.workbench.fx.PartRenderingEngine

But I feel oh so close! Now what?
Re: Errors Creating Addons [message #1264505 is a reply to message #1264072] Wed, 05 March 2014 09:16 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5331
Registered: July 2009
Senior Member
Same procedure - see if the bundle - org.eclipse.fx.ui.workbench.fx - is
resolved. What I'm wondering is how you defined your product? Did you
use the features we generate for you?

Tom

On 05.03.14 02:06, Sue Collins wrote:
> I'm getting excited, I feel so close. I get a command window when I
> launch the app now but it still doesn't render the trimmedwindow, I get
> this error:
>
> mpl$1 error
> SEVERE: Failed to create the presentation engine for URI:
> bundleclass://org.ecli
> pse.fx.ui.workbench.fx/org.eclipse.fx.ui.workbench.fx.PartRenderingEngine
>
> But I feel oh so close! Now what?
>
Re: Errors Creating Addons [message #1264784 is a reply to message #1264505] Wed, 05 March 2014 13:55 Go to previous messageGo to next message
Betsy Kramer is currently offline Betsy Kramer
Messages: 12
Registered: February 2014
Junior Member
Hi Tom,
Yes, I kept all the generated packages. But I'm not running feature based, I'm running plugin-based. Could that be the problem?
I'm not sure how to run with the console/noexit except through eclipse. How is this specified when launching from a generated launcher? Is it part of the ini file?
Re: Errors Creating Addons [message #1264786 is a reply to message #1264784] Wed, 05 March 2014 14:00 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5331
Registered: July 2009
Senior Member
a) you need to add the felix-bundles & equinox.console
b) you can put those into your .product in the Program Arguments

Well it looks like you have not used the e4 project wizard to bootstrap
your application. In the end it does not really matter if you use a
plugin-based product or one based on features.

The advantage of the feature-based product would have been that all
appropriate dependencies would have been in the feature already and you
would not have to worry about them.

Tom

On 05.03.14 14:55, Sue Collins wrote:
> Hi Tom,
> Yes, I kept all the generated packages. But I'm not running feature
> based, I'm running plugin-based. Could that be the problem?
> I'm not sure how to run with the console/noexit except through eclipse.
> How is this specified when launching from a generated launcher? Is it
> part of the ini file?
Re: Errors Creating Addons [message #1265753 is a reply to message #1264786] Thu, 06 March 2014 14:09 Go to previous messageGo to next message
Betsy Kramer is currently offline Betsy Kramer
Messages: 12
Registered: February 2014
Junior Member
I did use the wizard and it defaulted to feature based, but I have another plugin (given to me from another developer) that doesn't have the same version qualifier and when I tried to run my plugin that depends on this other plugin (in Eclipse) it complained that it couldn't find the other feature with the same version number as the feature I was trying to run. When I clicked on the run with plugins instead of run with features radio button in the Eclipse runtime configuration, it did let me run my plugin so I want that route.
Re: Errors Creating Addons [message #1265762 is a reply to message #1265753] Thu, 06 March 2014 14:18 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5331
Registered: July 2009
Senior Member
You should have simply updated the feature and add the plugin or even
better the other devs should have provided you a 2nd feature which you
could have referenced in your own one.

Tom

On 06.03.14 15:09, Sue Collins wrote:
> I did use the wizard and it defaulted to feature based, but I have
> another plugin (given to me from another developer) that doesn't have
> the same version qualifier and when I tried to run my plugin that
> depends on this other plugin (in Eclipse) it complained that it couldn't
> find the other feature with the same version number as the feature I was
> trying to run. When I clicked on the run with plugins instead of run
> with features radio button in the Eclipse runtime configuration, it did
> let me run my plugin so I want that route.
Previous Topic:Re: JavaFX with JRE only?
Next Topic:Exception when running demo application
Goto Forum:
  


Current Time: Mon Sep 22 20:28:09 GMT 2014

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

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