Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » openjdk 11, openjfx, eclipse rcp 2018-12
openjdk 11, openjfx, eclipse rcp 2018-12 [message #1800660] Fri, 04 January 2019 16:51 Go to next message
Eric Berryman is currently offline Eric BerrymanFriend
Messages: 16
Registered: January 2019
Junior Member
I'm attempting to migrate our rcp application to java 11 from java 8 oracle, and seem stuck as to why I'm getting this "java.lang.NoClassDefFoundError: javafx/embed/swt/FXCanvas" error.

Any help would appreciated.

openjdk 11,
openjfx 11.0.1,
eclipse 2018-12,
efxclipse 3.4.3

Require-Bundle: org.eclipse.ui,
org.eclipse.ui.console;bundle-version="3.8.300",
org.eclipse.core.runtime;bundle-version="3.15.100",
org.eclipse.help,
org.openjfx.javafx-base;bundle-version="11.0.1",
org.openjfx.javafx-base.linux;bundle-version="11.0.1",
org.openjfx.javafx-controls;bundle-version="11.0.1",
org.openjfx.javafx-controls.linux;bundle-version="11.0.1",
org.openjfx.javafx-graphics;bundle-version="11.0.1",
org.openjfx.javafx-graphics.linux;bundle-version="11.0.1",
org.eclipse.fx.ui.workbench3;bundle-version="3.4.3"

I'm getting the current stack trace in the log, and openjfx doesn't seem to load.
FXClassLoader#findClassJavaFX11 - started
FXClassLoader#findClassJavaFX11 - Loading class 'javafx.embed.swt.FXCanvas'
!SESSION 2019-01-04 10:51:16.636 -----------------------------------------------
eclipse.buildId=unknown
java.version=11.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product product.product
Command-line arguments:  -product product.product -data /home/user/workspace-2018-4/../runtime-.product -dev file:/home/user/workspace-2018-4/.metadata/.plugins/org.eclipse.pde.core/product/dev.properties -os linux -ws gtk -arch x86_64 -consoleLog

!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-01-04 10:51:43.569
!MESSAGE Unable to create class 'org.eclipse.ui.internal.e4.compatibility.CompatibilityView' from bundle '376'
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javafx/embed/swt/FXCanvas
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:422)
	at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:333)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:193)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:108)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:77)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:59)
	at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:1015)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:675)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$1.run(PartRenderingEngine.java:560)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:544)
	at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:73)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:1015)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:675)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:781)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:752)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:746)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:730)
	at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1295)
	at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:105)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:693)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:781)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:752)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:746)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:730)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.subscribeTopicToBeRendered(PartRenderingEngine.java:160)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
	at org.eclipse.e4.core.di.internal.extensions.EventObjectSupplier$DIEventHandler.handleEvent(EventObjectSupplier.java:91)
	at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:233)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
	at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:132)
	at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
	at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
	at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
	at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
	at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
	at org.eclipse.e4.ui.model.application.ui.impl.UIElementImpl.setToBeRendered(UIElementImpl.java:307)
	at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:636)
	at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:643)
	at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:605)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:791)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:762)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:684)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:679)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1231)
	at org.eclipse.ui.internal.WorkbenchPage.showPart(WorkbenchPage.java:1293)
	at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1282)
	at org.eclipse.ui.internal.WorkbenchPage.lambda$10(WorkbenchPage.java:4411)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:4409)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:4389)
	at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:135)
	at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:90)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:96)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:320)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:254)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:164)
	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:497)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:490)
	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:438)
	at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:449)
	at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.lambda$2(AbstractContributionItem.java:475)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5663)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1386)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4931)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4472)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:636)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
	at org.csstudio.utility.product.Workbench.runWorkbench(Workbench.java:99)
	at org.csstudio.startup.application.Application.startApplication(Application.java:265)
	at org.csstudio.startup.application.Application.start(Application.java:119)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1474)
Caused by: java.lang.NoClassDefFoundError: javafx/embed/swt/FXCanvas
	at org.eclipse.fx.ui.workbench3.FXViewPart.createPartControl(FXViewPart.java:28)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:156)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityView.createPartControl(CompatibilityView.java:152)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:367)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
	at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:1001)
	at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:966)
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:139)
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:411)
	... 108 more
Caused by: java.lang.ClassNotFoundException: javafx.embed.swt.FXCanvas cannot be found by org.eclipse.fx.ui.workbench3_3.4.3.201812060958
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 121 more

[Updated on: Fri, 11 January 2019 18:43]

Report message to a moderator

Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1800752 is a reply to message #1800660] Mon, 07 January 2019 19:32 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6512
Registered: July 2009
Senior Member
You missed openjfx-swt repackaged module I think?
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1800833 is a reply to message #1800752] Tue, 08 January 2019 21:12 Go to previous messageGo to next message
Eric Berryman is currently offline Eric BerrymanFriend
Messages: 16
Registered: January 2019
Junior Member
This seems odd, if I turn on efxclipse.osgi.hook.debug=true

The first lines are:
FXClassLoader#findClassJavaFX11 - started
FXClassLoader#findClassJavaFX11 - Loading class 'org.apache.felix.shell.Command'
FXClassLoader#getDeployedJavaModuleBundlePaths - Loading libraries from deployed modules
FXClassLoader#getDeployedJavaModuleBundlePaths - Found OSGi-Module with JPMS-Module 'javafx.base'
FXClassLoader#getDeployedJavaModuleBundlePaths - Found Jar 'null'
FXClassLoader#getDeployedJavaModuleBundlePaths - Found OSGi-Module with JPMS-Module 'javafx.controls'
FXClassLoader#getDeployedJavaModuleBundlePaths - Found Jar 'null'
FXClassLoader#getDeployedJavaModuleBundlePaths - Found OSGi-Module with JPMS-Module 'javafx.graphics'
FXClassLoader#getDeployedJavaModuleBundlePaths - Found Jar 'null'
FXClassLoader#getDeployedJavaModuleBundlePaths - Found OSGi-Module with JPMS-Module 'javafx.swt'
FXClassLoader#getDeployedJavaModuleBundlePaths - Found Jar 'null'


I'm bundling my javafx.swt with bnd tools.
I have what seems like a normal manifest:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: 11.0.1 (Oracle Corporation)
Built-By: user
Build-Jdk: 11.0.1
Bnd-LastModified: 1546978454310
Bundle-ManifestVersion: 2
Bundle-Name: openjfx.swt
Bundle-SymbolicName: openjfx.swt
Bundle-Version: 11.0.1
Export-Package: javafx.embed.swt;uses:="javafx.beans,javafx.scene,java
 fx.scene.image,org.eclipse.swt.graphics,org.eclipse.swt.widgets";vers
 ion="11.0.1",-split-package:merge-last;version="11.0.1"
Import-Package: com.sun.glass.ui,com.sun.javafx.cursor,com.sun.javafx.
 embed,com.sun.javafx.stage,com.sun.javafx.tk,javafx.application,javaf
 x.beans,javafx.scene,javafx.scene.image,javafx.scene.input,javafx.sta
 ge,javafx.util,org.eclipse.swt,org.eclipse.swt.dnd,org.eclipse.swt.ev
 ents,org.eclipse.swt.graphics,org.eclipse.swt.widgets
Java-Module: javafx.swt
Tool: Bnd-3.3.0.201609221906


and the contents look fine:
META-INF/
META-INF/MANIFEST.MF
javafx/
javafx/embed/
javafx/embed/swt/
javafx/embed/swt/CustomTransfer.class
javafx/embed/swt/FXCanvas$5.class
javafx/embed/swt/FXCanvas$7.class
javafx/embed/swt/SWTCursors.class
javafx/embed/swt/SWTCursors$1.class
javafx/embed/swt/FXCanvas$HostContainer$2$1.class
javafx/embed/swt/FXCanvas$HostContainer.class
javafx/embed/swt/FXCanvas$1.class
javafx/embed/swt/FXCanvas$3.class
javafx/embed/swt/SWTFXUtils.class
javafx/embed/swt/FXCanvas.class
javafx/embed/swt/SWTEvents.class
javafx/embed/swt/FXCanvas$4.class
javafx/embed/swt/FXCanvas$2.class
javafx/embed/swt/FXCanvas$HostContainer$1.class
javafx/embed/swt/FXCanvas$HostContainer$2.class
javafx/embed/swt/FXCanvas$6.class


But, I noticed if I use the bundled javafx.swt from:
https://downloads.efxclipse.bestsolution.at/p2-repos/openjfx-11/repository/repository/
which is embedding the java-swt.jar in another jar:
https://github.com/BestSolution-at/openjfx-osgi/blob/master/parent/openjfx.swt/pom.xml
I get this for the first lines:
FXClassLoader#findClassJavaFX11 - started
FXClassLoader#findClassJavaFX11 - Loading class 'org.apache.felix.shell.Command'
FXClassLoader#getDeployedJavaModuleBundlePaths - Loading libraries from deployed modules
FXClassLoader#getDeployedJavaModuleBundlePaths - Found OSGi-Module with JPMS-Module 'javafx.base'
FXClassLoader#getDeployedJavaModuleBundlePaths - Found Jar 'null'
FXClassLoader#getDeployedJavaModuleBundlePaths - Found OSGi-Module with JPMS-Module 'javafx.controls'
FXClassLoader#getDeployedJavaModuleBundlePaths - Found Jar 'null'
FXClassLoader#getDeployedJavaModuleBundlePaths - Found OSGi-Module with JPMS-Module 'javafx.graphics'
FXClassLoader#getDeployedJavaModuleBundlePaths - Found Jar 'null'
FXClassLoader#getDeployedJavaModuleBundlePaths - Found OSGi-Module with JPMS-Module 'javafx.swt'
FXClassLoader#getDeployedJavaModuleBundlePaths - Found Jar '[url]bundleentry://1108.fwk1788545647/javafx.swt.jar[/url]'
FXClassLoader#getDeployedJavaModuleBundlePaths - Converted URL: file:/home/user/workspace-2018-4/.metadata/.plugins/org.eclipse.pde.core/product.product/org.eclipse.osgi/1108/0/.cp/javafx.swt.jar
FXClassLoader#defaultModuleLayerBootstrapjavafx.swt => /home/user/workspace-2018-4/.metadata/.plugins/org.eclipse.pde.core/product.product/org.eclipse.osgi/1108/0/.cp/javafx.swt.jar


Although, even with this bundle, my javafx pages die with the same error:
!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-01-08 15:57:17.517
!MESSAGE Unable to create class 'org.eclipse.ui.internal.e4.compatibility.CompatibilityView' from bundle '808'
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javafx/embed/swt/FXCanvas


Is efxclipse expecting specific openjfx bundles?


[Updated on: Fri, 11 January 2019 18:42]

Report message to a moderator

Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1800905 is a reply to message #1800833] Wed, 09 January 2019 14:58 Go to previous messageGo to next message
Eric Berryman is currently offline Eric BerrymanFriend
Messages: 16
Registered: January 2019
Junior Member
After using the special openjfx packaging, javafx screens work:
https://downloads.efxclipse.bestsolution.at/p2-repos/openjfx-11/repository/repository/
(notice the repo in a repo here seems to be a mistake on the deployment)
I do think it is odd to expect a jar in a jar. It seems normal jars with correct manifests should work.

But the Navigator, Welcome, and many eclipse views are broken with what looks to be CSS issues.
Any ideas?
!ENTRY org.eclipse.e4.ui.css.swt.theme 4 0 2019-01-09 09:39:08.717
!MESSAGE 
!STACK 0
java.lang.NullPointerException
	at org.eclipse.e4.ui.css.swt.properties.custom.CSSPropertyTabRendererSWTHandler.applyCSSProperty(CSSPropertyTabRendererSWT
Handler.java:52)
	at org.eclipse.e4.ui.css.swt.properties.AbstractCSSPropertySWTHandler.applyCSSProperty(AbstractCSSPropertySWTHandler.java:
35)
	at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyCSSProperty(AbstractCSSEngine.java:726)
	at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyleDeclaration(AbstractCSSEngine.java:536)
	at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:404)
	at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:358)
	at org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngine.applyStyles(ThemeEngine.java:538)


org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.ui.ide" was unable to instantiate class "org.eclipse.ui.views.navigator.ResourceNavigator".
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:216)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:208)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:934)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
	at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:62)
	at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:104)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPart(CompatibilityPart.java:305)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:343)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
	at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:1001)
	at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:966)
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:139)
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:411)
	at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:333)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:193)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:108)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:77)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:59)
	at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:1015)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:675)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$1.run(PartRenderingEngine.java:560)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:544)
	at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:73)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:1015)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:675)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:781)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:752)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:746)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:730)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:112)
	at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:147)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:5807)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:219)
	at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
	at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:233)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
	at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:132)
	at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
	at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
	at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
	at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
	at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
	at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:177)
	at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:110)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:693)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:781)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:752)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:746)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:730)
	at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:72)
	at org.eclipse.e4.ui.workbench.renderers.swt.SashRenderer.processContents(SashRenderer.java:140)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:689)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:781)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:752)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:746)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:730)
	at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:72)
	at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:51)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:689)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:781)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:752)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:746)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:730)
	at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:82)
	at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.lambda$0(LazyStackRenderer.java:75)
	at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:147)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:5807)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:219)
	at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
	at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:233)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
	at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:132)
	at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
	at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
	at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
	at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
	at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
	at org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveStackImpl.setSelectedElement(PerspectiveStackImpl.java:139)
	at org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveStackImpl.setSelectedElement(PerspectiveStackImpl.java:1)
	at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:4187)
	at org.eclipse.ui.internal.WorkbenchWindow.setup(WorkbenchWindow.java:747)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
	at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:1001)
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:139)
	at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:95)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.inject(ContextInjectionFactory.java:77)
	at org.eclipse.ui.internal.Workbench.createWorkbenchWindow(Workbench.java:1487)
	at org.eclipse.ui.internal.Workbench.getActiveWorkbenchWindow(Workbench.java:1458)
	at org.eclipse.ui.internal.services.WorkbenchSourceProvider.updateActiveShell(WorkbenchSourceProvider.java:910)
	at org.eclipse.ui.internal.services.WorkbenchSourceProvider.getCurrentState(WorkbenchSourceProvider.java:118)
	at org.eclipse.ui.internal.services.WorkbenchSourceProvider.lambda$2(WorkbenchSourceProvider.java:671)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1726)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1385)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1412)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1391)
	at org.eclipse.swt.widgets.Shell.gtk_focus_in_event(Shell.java:1479)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1960)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:6298)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5880)
	at org.eclipse.swt.internal.gtk.GTK._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.GTK.gtk_main_do_event(GTK.java:3969)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1385)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1581)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4470)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:636)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
	at org.csstudio.utility.product.Workbench.runWorkbench(Workbench.java:99)
	at org.csstudio.startup.application.Application.startApplication(Application.java:265)
	at org.csstudio.startup.application.Application.start(Application.java:119)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1474)
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:206)
	... 153 more
Caused by: java.lang.NullPointerException
	at org.eclipse.ui.views.navigator.ResourceNavigator.<init>(ResourceNavigator.java:261)
	... 158 more

[Updated on: Fri, 11 January 2019 18:41]

Report message to a moderator

Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1800906 is a reply to message #1800905] Wed, 09 January 2019 15:15 Go to previous messageGo to next message
Eric Berryman is currently offline Eric BerrymanFriend
Messages: 16
Registered: January 2019
Junior Member
slf4j conflicting versions ?seemed? to cause the above errors. I removed all but one slf4j from the runtime configuration plugins.

The first time I open a JavaFX view, it looks fine, the second time I open it, I get this error:
java.lang.IllegalStateException: Not on FX application thread; currentThread = JavaFX Application Thread
	at javafx.graphics/com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:291)
	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:424)
	at javafx.graphics/javafx.stage.Window.setShowing(Window.java:1173)
	at javafx.graphics/javafx.stage.Window.show(Window.java:1189)
	at javafx.graphics/com.sun.javafx.stage.EmbeddedWindow.show(EmbeddedWindow.java:71)
	at javafx.swt/javafx.embed.swt.FXCanvas.setScene(FXCanvas.java:457)
	at org.eclipse.fx.ui.workbench3.FXViewPart.createPartControl(FXViewPart.java:29)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:156)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityView.createPartControl(CompatibilityView.java:152)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:367)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
	at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:1001)
	at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:966)
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:139)
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:411)
	at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:333)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:193)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:108)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:77)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:59)
	at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:1015)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:675)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$1.run(PartRenderingEngine.java:560)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:544)
	at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:73)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:1015)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:675)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:781)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:752)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:746)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:730)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:112)
	at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:147)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:5807)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:219)
	at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
	at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:233)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
	at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:132)
	at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
	at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
	at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
	at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
	at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
	at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:177)
	at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:110)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:693)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:781)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:752)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:746)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:730)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.subscribeTopicToBeRendered(PartRenderingEngine.java:160)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
	at org.eclipse.e4.core.di.internal.extensions.EventObjectSupplier$DIEventHandler.handleEvent(EventObjectSupplier.java:91)
	at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:233)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
	at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:132)
	at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
	at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
	at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
	at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
	at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
	at org.eclipse.e4.ui.model.application.ui.impl.UIElementImpl.setToBeRendered(UIElementImpl.java:307)
	at org.eclipse.e4.ui.workbench.addons.cleanupaddon.CleanupAddon.subscribeRenderingChanged(CleanupAddon.java:314)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
	at org.eclipse.e4.ui.internal.di.UIEventObjectSupplier$UIEventHandler$1.run(UIEventObjectSupplier.java:67)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:147)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:5807)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:219)
	at org.eclipse.e4.ui.internal.di.UIEventObjectSupplier$UIEventHandler.handleEvent(UIEventObjectSupplier.java:64)
	at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:233)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
	at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:132)
	at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
	at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
	at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
	at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
	at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
	at org.eclipse.e4.ui.model.application.ui.impl.UIElementImpl.setToBeRendered(UIElementImpl.java:307)
	at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:636)
	at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:605)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:791)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:762)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:684)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:679)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1231)
	at org.eclipse.ui.internal.WorkbenchPage.showPart(WorkbenchPage.java:1293)
	at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1282)
	at org.eclipse.ui.internal.WorkbenchPage.lambda$10(WorkbenchPage.java:4411)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:4409)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:4389)
	at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:135)
	at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:90)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:96)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:320)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:254)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:164)
	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:497)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:490)
	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:438)
	at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:449)
	at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.lambda$2(AbstractContributionItem.java:475)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5663)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1386)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4931)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4472)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:636)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
	at org.csstudio.utility.product.Workbench.runWorkbench(Workbench.java:99)
	at org.csstudio.startup.application.Application.startApplication(Application.java:265)
	at org.csstudio.startup.application.Application.start(Application.java:119)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1474)

[Updated on: Fri, 11 January 2019 18:40]

Report message to a moderator

Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1800915 is a reply to message #1800906] Wed, 09 January 2019 16:17 Go to previous messageGo to next message
Eric Berryman is currently offline Eric BerrymanFriend
Messages: 16
Registered: January 2019
Junior Member
It seems openjfx has a new feature that implicitly exits when the last instance is closed.

adding this fixes it:
import javafx.application.Platform;
Platform.setImplicitExit(false);


Considering the jar in jar openjfx bundles do not export any paths, this doesn't work well with a Tycho build, since all javafx.* imports can not be resolved. How is this suppose to work?

[Updated on: Fri, 11 January 2019 18:39]

Report message to a moderator

Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1800927 is a reply to message #1800915] Wed, 09 January 2019 21:33 Go to previous messageGo to next message
Eric Berryman is currently offline Eric BerrymanFriend
Messages: 16
Registered: January 2019
Junior Member
adding the extraclasspath to the tycho-compiler-plugin fixes the tycho build:
<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-compiler-plugin</artifactId>
					<version>${tycho-version}</version>
					<configuration>
						<encoding>UTF-8</encoding>
						<source>11</source>
						<target>11</target>
						<extraClasspathElements>
							<extraClasspathElement>
								<groupId>org.openjfx</groupId>
								<artifactId>javafx-base</artifactId>
								<version>11</version>
							</extraClasspathElement>
							<extraClasspathElement>
								<groupId>org.openjfx</groupId>
								<artifactId>javafx-graphics</artifactId>
								<version>11</version>
							</extraClasspathElement>
							<extraClasspathElement>
								<groupId>org.openjfx</groupId>
								<artifactId>javafx-controls</artifactId>
								<version>11</version>
							</extraClasspathElement>
							<extraClasspathElement>
								<groupId>org.openjfx</groupId>
								<artifactId>javafx-fxml</artifactId>
								<version>11</version>
							</extraClasspathElement>
							<extraClasspathElement>
								<groupId>org.openjfx</groupId>
								<artifactId>javafx-media</artifactId>
								<version>11</version>
							</extraClasspathElement>
							<extraClasspathElement>
								<groupId>org.openjfx</groupId>
								<artifactId>javafx-web</artifactId>
								<version>11</version>
							</extraClasspathElement>
						</extraClasspathElements>
					</configuration>
				</plugin>

[Updated on: Fri, 11 January 2019 18:38]

Report message to a moderator

Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1801059 is a reply to message #1800927] Fri, 11 January 2019 18:38 Go to previous messageGo to next message
Eric Berryman is currently offline Eric BerrymanFriend
Messages: 16
Registered: January 2019
Junior Member

Compiled with Tycho, executing the resulting product, I get the following error, but only sometimes.

Jan 11, 2019 1:35:36 PM org.product.startup.application.Application start
SEVERE: Application Main Loop Error
java.lang.IllegalStateException: Workspace is closed.
	at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:432)
	at org.product.startup.module.defaults.DefaultProject.openProjects(DefaultProject.java:39)
	at org.product.startup.application.Application.openProjects(Application.java:430)
	at org.product.startup.application.Application.startApplication(Application.java:253)
	at org.product.startup.application.Application.start(Application.java:119)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1474)
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1801079 is a reply to message #1801059] Sat, 12 January 2019 10:28 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6512
Registered: July 2009
Senior Member
I doubt this has something to do with openjfx
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1801161 is a reply to message #1801079] Mon, 14 January 2019 17:39 Go to previous messageGo to next message
Eric Berryman is currently offline Eric BerrymanFriend
Messages: 16
Registered: January 2019
Junior Member
But, I don't have this exception when I remove the org.eclipse.fx.osgi_3.4.3.201812060958.jar plugin.

(of course, javafx no longer works)

But, if I remove this jar from the classpath, I don't get the "Workspace is closed" exception. Add the jar back to the classpath, I get the exception back.

It seems the osgi.framework.extension is somehow involved.
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1801163 is a reply to message #1801161] Mon, 14 January 2019 18:12 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6512
Registered: July 2009
Senior Member
Hm i've never seen this not sure you could try at the equinox forum - does it happen in an inner eclipse as well so that you can debug it?
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1801221 is a reply to message #1801161] Tue, 15 January 2019 15:12 Go to previous messageGo to next message
Eric Berryman is currently offline Eric BerrymanFriend
Messages: 16
Registered: January 2019
Junior Member
Upgrading to org.eclipse.fx.osgi_3.5.0.201901150600.jar

I started to get this error again, and the "Workspace is closed", and sometimes it all "works":
!ENTRY org.eclipse.e4.ui.css.swt.theme 4 0 2019-01-09 09:39:08.717
!MESSAGE 
!STACK 0
java.lang.NullPointerException
	at org.eclipse.e4.ui.css.swt.properties.custom.CSSPropertyTabRendererSWTHandler.applyCSSProperty(CSSPropertyTabRendererSWT
Handler.java:52)
	at org.eclipse.e4.ui.css.swt.properties.AbstractCSSPropertySWTHandler.applyCSSProperty(AbstractCSSPropertySWTHandler.java:
35)
	at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyCSSProperty(AbstractCSSEngine.java:726)
	at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyleDeclaration(AbstractCSSEngine.java:536)
	at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:404)
	at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:358)
	at org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngine.applyStyles(ThemeEngine.java:538)


It seems the extension is messing up the start level order, right? The Workspace error would mean org.eclipse.core.runtime isn't started, right?

I could bring the efxclipse-rt github repo into my environment, but I'm not sure what I am looking for here. I would be just putting random breakpoints in https://github.com/eclipse-efx/efxclipse-rt/blob/master/modules/core/org.eclipse.fx.osgi/src/main/java/org/eclipse/fx/osgi/fxloader/FXClassLoader.java
Do you have some ideas on how the new java11 commits have changed the behavior for my product?
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1801361 is a reply to message #1801221] Thu, 17 January 2019 13:28 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6512
Registered: July 2009
Senior Member
well I think you don't have to import anything in your eclipse workspace - what you need to do is to set a break-point in the ResourcesPlugin (in the start and stop methods) - the only possibility to have workspace set to NULL is if something stopped the core.resoures bundle or the start-method has never been invoked
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1801714 is a reply to message #1801221] Fri, 25 January 2019 07:15 Go to previous messageGo to next message
William Riley is currently offline William RileyFriend
Messages: 1
Registered: February 2017
Junior Member
I'm seeing a similar issue trying to use e(fx)clipse with java 11. Once org.eclipse.fx.osgi is present in the application it breaks.

Setting the start level of org.eclipse.core.runtime to 0 allows the application to actually start most of the time. But once it does I still get lots of errors, it appears that most of the plugin activators are no longer being called.

e.g. One of the repeatable errors is:
!ENTRY org.eclipse.ui 4 4 2019-01-25 15:43:57.281
!MESSAGE Unable to initialize part
!STACK 0
java.lang.NullPointerException
	at org.eclipse.ui.internal.views.log.LogView.getLogSettings(LogView.java:1569)
	at org.eclipse.ui.internal.views.log.LogView.readSettings(LogView.java:1577)
	at org.eclipse.ui.internal.views.log.LogView.init(LogView.java:1193)
	at org.eclipse.ui.internal.ViewReference.initialize(ViewReference.java:129)


This corresponds to the following line:
IDialogSettings settings = Activator.getDefault().getDialogSettings();


If I set breakpoints on that line, then in start() & stop() of the activator then when the application starts broken I see that the code is invoked before the plugin containing it has been activated. In the cases it works there the breakpoints are hit in the expected order.

I'm using the latest nightly org.eclipse.fx.osgi
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1801757 is a reply to message #1801361] Fri, 25 January 2019 17:25 Go to previous messageGo to next message
Eric Berryman is currently offline Eric BerrymanFriend
Messages: 16
Registered: January 2019
Junior Member

This issue ticket / commit fixed the problems above.

https://github.com/eclipse-efx/efxclipse-rt/issues/292
https://github.com/eclipse-efx/efxclipse-rt/commit/a31e471372709853f5f2a3c37f1935e0216f9d20

Things seem to be working as expected now.

Thank you!
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1801758 is a reply to message #1801757] Fri, 25 January 2019 17:41 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6512
Registered: July 2009
Senior Member
Yeah when I started revisting the code I could not believe how stupid I was when implementing it! As my main working are was (and is) pure fx did not run in this. We've been lucky that there's been a customer with a support contract running into this as well and cut put the hours on to their payment slip.
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1801763 is a reply to message #1801758] Fri, 25 January 2019 20:28 Go to previous messageGo to next message
Eric Berryman is currently offline Eric BerrymanFriend
Messages: 16
Registered: January 2019
Junior Member
You have some important changes on you 3.x branch, when do think the next release will be here:
https://download.eclipse.org/efxclipse/runtime-released/

Thank you again!
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1801764 is a reply to message #1801763] Fri, 25 January 2019 20:59 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6512
Registered: July 2009
Senior Member
Fairly soon next 2-3 weeks
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1802712 is a reply to message #1800660] Thu, 14 February 2019 12:43 Go to previous messageGo to next message
Patrick Schulz is currently offline Patrick SchulzFriend
Messages: 11
Registered: February 2019
Junior Member
I'm attempting to migrate a rcp application from java 10 Oracle to java 11 OpenJDK. I tried to follow your steps and use your rebundled javafx downloads.efxclipse.bestsolution.at and the org.eclipse.fx.osgi_3.5.0.201902140600.jar.

Everything seems to work, but when I try to use javafx.scene.web.WebView the application dies in the jdk.internal.loader.BuiltinClassLoader with ClassNotFoundException after trying to load com.sun.webkit.MainThread class.

I tried to investigate the problem and it seems like the FXClassloader loads some FX-Classes, because I can open gui-elements which use for example javafx.embed.swt.FXCanvas, but does not even try to load the MainThread class.

Do I miss something?
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1802756 is a reply to message #1801764] Fri, 15 February 2019 08:35 Go to previous messageGo to next message
Patrick Schulz is currently offline Patrick SchulzFriend
Messages: 11
Registered: February 2019
Junior Member
Hi,
I investigated my problem a little further and could nail it down to these lines:

final String img = "iVBORw0KGgoAAAANSUhEUgAAAGQAAAAKCAYAAABCHPt+AAAAKUlEQVR42u3RAQ0AAAgDIG1u81vDTahAZyrFGS1ECEKEIEQIQoQg5LcF678Y92/zlF8AAAAASUVORK5CYII=";
webView.getEngine().loadContent("<img src=\"data:image/png;base64," + img + "\">");

When I do this, I get the class not found exception for com.sun.webkit.MainThread in BuildinClassLoader.

Seems to be related to:
https://github.com/javafxports/openjdk-jfx/issues/220
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1803719 is a reply to message #1802756] Thu, 07 March 2019 14:40 Go to previous messageGo to next message
Patrick Schulz is currently offline Patrick SchulzFriend
Messages: 11
Registered: February 2019
Junior Member
Tried release version 3.5.0 of org.eclipse.fx.osgi but still get the same ClassNotFoundException. Can anyone help me or at least confirm there is a bug in the fxclipse.osgi.hook when trying to load base64 encoded images?
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1803731 is a reply to message #1803719] Thu, 07 March 2019 19:10 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6512
Registered: July 2009
Senior Member
Please file an issue so we can track the problem
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1803861 is a reply to message #1803731] Tue, 12 March 2019 15:05 Go to previous messageGo to next message
Manuel Baena is currently offline Manuel BaenaFriend
Messages: 1
Registered: March 2019
Junior Member
Hello,

First of all, thanks to all the people in this conversation, you saved me a lot of time investigating (I am very new with e(fx)clipse and JavaFX).

That being said, I have been following the same steps as Eric Berryman to migrate my Eclipse RCP application from Java 8 to Java 11 (I am using e(fx)clipse RCP 3.5.0). The problem that I found is that I am using the FXCanvas to display JavaFX content into an SWT Composite, but I could not do it because javafx-swt needs to access the SWT bundle, and this is not possible. Am I right?

In Eclipse I am seeing an issue indicating:

The project was not built since its build path is incomplete. Cannot find the class file for org.eclipse.swt.widgets.Composite. Fix the build path then try building this project
The type org.eclipse.swt.widgets.Composite cannot be resolved. It is indirectly referenced from required .class files


Could you please give me some idea about which is the best approach to fix this issue? Or send me a link to documentation or other forum thread where this is explained? I would really appreciate your help.
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1803913 is a reply to message #1803861] Wed, 13 March 2019 15:09 Go to previous messageGo to next message
Eric Berryman is currently offline Eric BerrymanFriend
Messages: 16
Registered: January 2019
Junior Member
You need to have the swt bundle load the javafx.swt bundle.
Which is what efxclipse does with this:
-Dorg.osgi.framework.bundle.parent=ext
-Dosgi.framework.extensions=org.eclipse.fx.osgi
added parameters to the product arguments.

https://github.com/eclipse-efx/efxclipse-eclipse/wiki/Eclipse4-application-on-OpenJFX-11
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1803914 is a reply to message #1803913] Wed, 13 March 2019 15:12 Go to previous messageGo to next message
Eric Berryman is currently offline Eric BerrymanFriend
Messages: 16
Registered: January 2019
Junior Member
The swt java FX bundle isn't in maven. You can package it yourself from the SDK or use the p2 packaging provided in the link above.
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1803972 is a reply to message #1803914] Thu, 14 March 2019 15:36 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6512
Registered: July 2009
Senior Member
http://downloads.efxclipse.bestsolution.at/p2-repos/openjfx-11/repository/ holds the swt bundle!
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1810752 is a reply to message #1803972] Mon, 19 August 2019 08:52 Go to previous messageGo to next message
Patrick Schulz is currently offline Patrick SchulzFriend
Messages: 11
Registered: February 2019
Junior Member
Hi,

I filed an issue, but there is no reaction after several months.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=545203

The people at openjfx don't have time or are not interested in debugging it.

By the way: Is there any eclipse p2-repo for the openjfx-bundles? The version bestsolution provides seems outdated.

Thanks
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1810794 is a reply to message #1810752] Mon, 19 August 2019 18:34 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6512
Registered: July 2009
Senior Member
You can build it yourself - all is opensource. Can you point me to the openjfx issue?
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1810831 is a reply to message #1810794] Tue, 20 August 2019 09:56 Go to previous messageGo to next message
Patrick Schulz is currently offline Patrick SchulzFriend
Messages: 11
Registered: February 2019
Junior Member
I can just extend the openjfx-jars with an osgi-header to use them in my rcp-app?

The opejfx issue is https://github.com/javafxports/openjdk-jfx/issues/220

Thanks
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1810853 is a reply to message #1810831] Tue, 20 August 2019 15:43 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6512
Registered: July 2009
Senior Member
Yes you can but OpenJFX is only tested on the module path - is it an option to ship a custom jre, then you could jlink openjfx into it
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1810876 is a reply to message #1810853] Wed, 21 August 2019 08:19 Go to previous messageGo to next message
Patrick Schulz is currently offline Patrick SchulzFriend
Messages: 11
Registered: February 2019
Junior Member
Thanks for your answers, but I am not sure I do understand you. By saying it is only tested on the module path you mean it is not a bug, one can just not rely on it to be working in osgi due to the fact that it was built to be used on the module path?

I thought the way to use openjfx in osgi is to use these bundles provided by bestsolution (or in the future by eclipse.org)?
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1810886 is a reply to message #1810876] Wed, 21 August 2019 10:11 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6512
Registered: July 2009
Senior Member
The bundles we provide are running on the module-path - we dynamicylly spin up a JPMS-Layer and run the bundles in there - I described some parts of that in https://tomsondev.bestsolution.at/2018/10/24/building-dyamic-java-module-system-layers-to-integrate-javafx-11-in-equinox/
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1811053 is a reply to message #1810886] Mon, 26 August 2019 06:54 Go to previous messageGo to next message
Patrick Schulz is currently offline Patrick SchulzFriend
Messages: 11
Registered: February 2019
Junior Member
Thanks for your link. Do you have an idea how I can deal with the dying jvm when loading 64bit encoded pictures in WebView?
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1811085 is a reply to message #1811053] Mon, 26 August 2019 17:20 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6512
Registered: July 2009
Senior Member
No not really - I think we first need a simple reproducer without OSGi , ...
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1811170 is a reply to message #1811085] Wed, 28 August 2019 06:17 Go to previous messageGo to next message
Patrick Schulz is currently offline Patrick SchulzFriend
Messages: 11
Registered: February 2019
Junior Member
Okay, I thought it is breaking because of OSGi and it's different classloaders and it is unlikely to be reproduced without OSGi?
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1811207 is a reply to message #1811170] Wed, 28 August 2019 16:30 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6512
Registered: July 2009
Senior Member
Well as you see in the referenced ticket it is also happening on IJ who does not use OSGi - what needs to be done and demostrated is that it happens in plain java (forcing it to load through a custom classloader)
Re: openjdk 11, openjfx, eclipse rcp 2018-12 [message #1816808 is a reply to message #1811207] Thu, 07 November 2019 12:33 Go to previous message
govind Ra is currently offline govind RaFriend
Messages: 95
Registered: July 2009
Member
Hello Thomas,

I am trying to use efx for my RCP project with OpenJDK 11 and OpenJFx, Would bundling of the JavaFX jars have license issues?
http://downloads.efxclipse.bestsolution.at/p2-repos/openjfx-11/repository/plugins/

Not sure if this answered elsewhere?

Thanks and Regards,
Govind R
Previous Topic:Upgrading to Eclipse 2019-06 and it cannot find the FXCanvas class
Next Topic:"the import of javafx cannot be resolved"
Goto Forum:
  


Current Time: Mon Nov 18 08:35:01 GMT 2019

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

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

Back to the top