- This topic has 12 replies, 5 voices, and was last updated 4 years ago by Maxime.
-
AuthorPosts
-
cseeParticipantHi Support Team,
after installing the latest codemix plugin from the eclipse marketplace, my freshly (re-)installed Ecplipe Spring Tools Suite (sts-4.8.0.RELEASE) always crashes on Startup even for a new, empty workspace.
The eclipse log file displays the following errors:
!ENTRY com.genuitec.eclipse.code.ui 4 0 2020-10-06 18:43:05.612 !MESSAGE FrameworkEvent ERROR !STACK 0 java.lang.IllegalStateException: Invalid class loader from a refreshed bundle is being used: com.genuitec.eclipse.code.ui_3.6.0.202007202201 at org.eclipse.osgi.internal.loader.BundleLoader.getProviderLoader(BundleLoader.java:982) at org.eclipse.osgi.internal.loader.BundleLoader.findRequiredSource(BundleLoader.java:1216) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:467) at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at com.genuitec.eclipse.code.ui.CodeUI.lambda$1(CodeUI.java:212) at org.eclipse.swt.widgets.RunnableLock._run(RunnableLock.java:40) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:50) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4988) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4510) at org.eclipse.ui.internal.Workbench.spinEventQueueToUpdateSplash(Workbench.java:835) at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:625) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:153) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:150) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401) 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:657) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438) !ENTRY org.eclipse.osgi 4 0 2020-10-06 18:43:05.962 !MESSAGE Application error !STACK 1 org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoClassDefFoundError: org/eclipse/ui/internal/dialogs/FilteredPreferenceDialog) at org.eclipse.swt.SWT.error(SWT.java:4869) at org.eclipse.swt.SWT.error(SWT.java:4784) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:188) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4988) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4510) at org.eclipse.ui.internal.Workbench.spinEventQueueToUpdateSplash(Workbench.java:835) at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:625) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:153) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:150) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401) 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:657) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438) Caused by: java.lang.NoClassDefFoundError: org/eclipse/ui/internal/dialogs/FilteredPreferenceDialog at com.genuitec.eclipse.code.ui.CodeUI.lambda$1(CodeUI.java:212) at org.eclipse.swt.widgets.RunnableLock._run(RunnableLock.java:40) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:50) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185) ... 21 more Caused by: java.lang.ClassNotFoundException: org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog cannot be found by com.genuitec.eclipse.code.ui_3.6.0.202007202201 at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:516) at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 25 more
OpenJDK on Ubuntu:
openjdk version "11.0.7" 2020-04-14 OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu219.10) OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu219.10, mixed mode, sharing)
Thanks for your help and kind regards
Christian
Aaron LaraMemberHello! I’m sorry you are having issues with CodeMix. The error indicates the class
org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog
cannot be found. Can you check your installed plugins (Help > About... Installation Details
) and share the version you see fororg.eclipse.ui.workbench
plugin?Also, I would recommend running STS with
-clean
flag at least once. To do this edit the.ini
file located in the same directory as the STS executable and add-clean
in a new line at the very top of it. Then launch it and see if it works. Just remember to remove this later as it will slow down startup.Cheers!
Aaron Lara
cseeParticipantHi Aaron,
thanks for your quick reply! I started Eclipse with “clean” flag in a completely new workspace and eclipse crashed again.
My Eclipse STS ini:
-clean
-verbose
-startup
plugins/org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.1300.v20200819-0940
-product
org.springframework.boot.ide.branding.sts4
--launcher.defaultAction
openFile
-vm
-vmargs
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms512m
-Xmx3048m
--add-modules=ALL-SYSTEM
The empty workspace containing the startup log is attached as workspace-spring-tool-suite-4-4.8.0.RELEASE_CLEAN.zip
As Eclipse crashes, I cannot list the installed plugins via “Help > About… Installation Details”, but plugins with substing “workbench” do exist as follows:
org.eclipse.e4.ui.model.workbench_2.1.800.v20200828-0938.jar
org.eclipse.e4.ui.workbench_1.11.400.v20200828-0938.jar
org.eclipse.e4.ui.workbench3_0.15.400.v20191216-0805.jar
org.eclipse.e4.ui.workbench.addons.swt_1.3.1100.v20200703-0611.jar
org.eclipse.e4.ui.workbench.renderers.swt_0.14.1300.v20200829-1411.jar
org.eclipse.e4.ui.workbench.swt_0.14.1100.v20200619-0644.jar
org.eclipse.jem.workbench_2.0.400.v201903222024.jar
org.eclipse.mylyn.commons.workbench_3.25.2.v20200813-0821.jar
org.eclipse.ui.workbench_3.120.0.v20200829-1411.jar
org.eclipse.ui.workbench.texteditor_3.15.0.v20200812-2334.jar
org.eclipse.wst.common.emfworkbench.integration_1.2.102.v202007161535.jar
org.jkiss.dbeaver.ext.format.sqlworkbenchj_1.0.48.202009201907.jar
Cheers, Christian
Attachments:
You must be logged in to view attached files.
support-swapnaModeratorChristian,
Thank you for the details and the log file.
1. Can you please clarify if STS 4.8 worked fine without crashing before installing CodeMix?
2. Please let us know what features of CodeMix you have installed.
3. In the .ini file you shared, I see that there is no path mentioned for JDK after-vm
entry. By default, the ini file points to the JDK 14 that is shipped along with the STS 4.8. On Windows, the path is :
plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_14.0.2.v20200815-0932\jre\bin
Can you please edit the ini file, point to the shipped JDK instead to rule out JDK related issues and check if it still crashes?
-vm plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_14.0.2.v20200815-0932\jre\bin
4. If the above suggestion does not help, then please install CodeMix to a fresh install of STS 4.8 to rule out incomplete or corrupted installation with the previous one.
Apologies for inconvenience caused. Please let us know how you get on with it.
–Swapna
Genuitec Support
cseeParticipantHi Swapna,
thank you for your input, here are my answers:
1. Yes, STS 4.8 worked just works installing the Codemix Plugin. As I am on a virtual machine with an appropriate snapshot set, I can switch to this state at any time. Hint: I have been using codemix for a year right now and had never problems before. Problems started approx. one month ago, but I was not able to identify the corrupting action (update/plugin install) so far. The state represents already one of my test steps to reproduce the corrupting action.
2. I already tried all different combinations of codemix features, always the same crashing result. (the first try was everything, but Angular, as I remember…)
3. I also tried starting eclipse with
-vm plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_14.0.2.v20200815-0932/jre/bin
or
-vm /usr/lib/jvm/java-11-openjdk-amd64/bin/
same crash during startup.
4. STS reinstall
I performed a new STS Install via download from https://download.springsource.com/release/STS4/4.8.0.RELEASE/dist/e4.17/spring-tool-suite-4-4.8.0.RELEASE-e4.17.0-linux.gtk.x86_64.tar.gz
installed plugins:
Codemix (without Angular and Slack)
Groovy Development Tools (https://dist.springsource.org/release/GRECLIPSE/e4.17)
Enhanced Class Decompiler (-> Marketplace Menu gone in Eclipse, install via https://ecd-plugin.github.io/update/)Eclipse is corrupt again (no marketplace client, no codemix submenu)
I will analyze, which step exactly corrupts the installation and will come back on to you! Probably these are the two plugins, which also cause the initially reported problem.
Kind regards Christian
vincenzo-cerboneParticipantHi,
I’m having same issue as Cristian:Caused by: java.lang.ClassNotFoundException: org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog cannot be found by com.genuitec.eclipse.code.ui_3.6.0.202007202201
Removing
CodeMix Essentials 3.6.0.202007221454 com.genuitec.eclipse.code.feature.feature.group Genuitec, LLCso basically CodeMix altogether, eclipse starts fine.
I use eclipse-jee-2020-09 and groovy development tools installed via Eclipse MarketPlacePlease let me know.
- This reply was modified 4 years, 1 month ago by vincenzo-cerbone.
support-swapnaModeratorvincenzo-cerbone,
Sorry that you are seeing this issue. I could replicate the crash with Eclipse 2020-09 installation and Groovy tools. I have filed a bug report with the dev team to investigate further. We will keep you posted about our findings soon.
Apologies for inconvenience caused. Thank you for reporting it.
–Swapna
Genuitec Support
vincenzo-cerboneParticipantHi,
is there any update about this bug? I cannot make use of any part of genuitec in eclipse..Thanks
V
Aaron LaraMemberHello! Unfortunately, the only workaround right now is to remove Groovy tools as it seems to cause conflicts with CodeMix. In addition to that you should install this fix to be able to run CodeMix on top of Eclipse 2020-09.
All this will be fixed in our next CodeMix release, but we don’t have a fixed date yet.
Cheers!
Aaron Lara
MaximeParticipantSame problem here : since upgrading to STS 4.8, my workspace has been upgraded and Codemix makes Eclipse crash on startup systematically. There is no rollback possible for me in a reasonable time span.
I have reinstalled STS 4.8 without codemix for now, while waiting for the fixed version. I miss many functionalities of Codemix.
Thanks
Max
Aaron LaraMember
Aaron LaraMemberFollowing up on this issue. I have just installed STS 4.8 and CodeMix on top of it with no issues, it just came up fine after installation. I still had to apply the patch for compatibility with 2020-09 but I don’t see the crash on Windows. We might need more details on the type of installation.
Does it fail for you with STS Standalone? or is this STS installed on a Vanilla Eclipse?
Also, does it only fail when you update STS from an older version? Does it work for you too if you just install STS 4.8 from scratch?Cheers!
Aaron Lara
MaximeParticipantHello Aaron,
I reinstalled STS standalone. Indeed, reinstalling Codemix on top of a fresh STS 4.8 install now works.
So it seems the issue was with the update from the old version (STS 4.6) combined with a Codemix update. It was a big update, since I switched from a JDK 8 to a JDK14 to run STS, and had a few crashes on startup before realizing sts4.8 required java 11+; I switched the -vm argument to a jdk 14, restarted with -clean, and then I had constant crashes with codemix.At least now the problem is solved for me. Thanks.
-
AuthorPosts