eclipse-windowbuilder / windowbuilder

Eclipse Windowbuilder
https://projects.eclipse.org/projects/tools.windowbuilder
Eclipse Public License 1.0
80 stars 30 forks source link

When updated to the latest version, bad things happened #629

Closed yalongy closed 4 months ago

yalongy commented 1 year ago

Eclipse IDE Version: 2022-03 (4.23.0) Build id: 20220310-1457

Scene:Update in Eclipse Market

then step 1,create a JFrame

` public class TTT extends JFrame {

private static final long serialVersionUID = 1L;
private JPanel contentPane;

/**
 * Launch the application.
 */
public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            try {
                TTT frame = new TTT();
                frame.setVisible(true);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    });
}

/**
 * Create the frame.
 */
public TTT() {
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setBounds(100, 100, 450, 300);
    contentPane = new JPanel();
    contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));

    setContentPane(contentPane);
}

} `

step 2,open with windowbuilder - design
step3,where is my frame? frame can not display normally

ptziegler commented 1 year ago

The code itself looks fine and I can open it just fine with the editor, so I assume that there is something wrong with the project itself.

Does the Java class contain compile errors? Can you provide a screenshot of the Eclipse IDE or at least the problem view? Because right now I'm suspecting this to be already resolved by #623

yalongy commented 1 year ago

There is no other plugin updated in Eclipse , only WindowBuilder plugin

here is msg tip when clicking 'design' after opened with WindowBuilder Editor Plugin :

`Internal Error

WindowBuilder encountered unexpected internal error.

This could be caused by a WindowBuilder bug or by a misconfiguration issue, conflict, partial update, etc.

org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.wb.xwt" was unable to instantiate class "org.eclipse.wb.internal.xwt.gefTree.EditPartFactory".

Hide stack trace. Stack trace:

java.lang.ClassNotFoundException: com.google.common.collect.ImmutableList cannot be found by org.eclipse.wb.xwt_1.9.1.202203170939 at org.eclipse.osgi.internal.loader.BundleLoader.generateException(BundleLoader.java:529) at org.eclipse.osgi.internal.loader.BundleLoader.findClass0(BundleLoader.java:524) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:416) at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:168) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) at org.eclipse.wb.internal.xwt.gefTree.EditPartFactory.(EditPartFactory.java:27) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:204) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:920) 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.wb.internal.core.utils.external.ExternalFactoriesHelper.lambda$1(ExternalFactoriesHelper.java:183) at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runObject(ExecutionUtils.java:252) at org.eclipse.wb.internal.core.utils.external.ExternalFactoriesHelper.createExecutableExtension(ExternalFactoriesHelper.java:171) at org.eclipse.wb.internal.core.utils.external.ExternalFactoriesHelper.getElementsInstances(ExternalFactoriesHelper.java:156) at org.eclipse.wb.internal.core.gefTree.EditPartFactory.getFactories(EditPartFactory.java:116) at org.eclipse.wb.internal.core.gefTree.EditPartFactory.createEditPartPure(EditPartFactory.java:80) at org.eclipse.wb.internal.core.gefTree.EditPartFactory.createEditPart(EditPartFactory.java:55) at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setInput(AbstractEditPartViewer.java:140) at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage.setInput(ComponentsTreePage.java:283) at org.eclipse.wb.internal.core.editor.structure.DesignComponentsComposite.setInput(DesignComponentsComposite.java:90) at org.eclipse.wb.internal.core.editor.JavaDesignComposite.refresh(JavaDesignComposite.java:139) at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:604) at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:468) at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236) at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133) at org.eclipse.swt.widgets.Display.syncExec(Display.java:5186) at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:464) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:434) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:352) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:470) at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:484) at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:432) at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:389) at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90) at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:275) at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:252) at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:127) at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4579) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1547) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1532) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1325) at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3248) at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1882) at org.eclipse.swt.custom.CTabFolder.lambda$0(CTabFolder.java:331) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4579) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1547) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1532) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1325) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4365) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3941) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155) at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644) 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:156) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136) 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:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596) at org.eclipse.equinox.launcher.Main.run(Main.java:1467) Full context stack trace:

org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.wb.xwt" was unable to instantiate class "org.eclipse.wb.internal.xwt.gefTree.EditPartFactory". at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:212) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:206) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:920) 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.wb.internal.core.utils.external.ExternalFactoriesHelper.lambda$1(ExternalFactoriesHelper.java:183) at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runObject(ExecutionUtils.java:252) at org.eclipse.wb.internal.core.utils.external.ExternalFactoriesHelper.createExecutableExtension(ExternalFactoriesHelper.java:171) at org.eclipse.wb.internal.core.utils.external.ExternalFactoriesHelper.getElementsInstances(ExternalFactoriesHelper.java:156) at org.eclipse.wb.internal.core.gefTree.EditPartFactory.getFactories(EditPartFactory.java:116) at org.eclipse.wb.internal.core.gefTree.EditPartFactory.createEditPartPure(EditPartFactory.java:80) at org.eclipse.wb.internal.core.gefTree.EditPartFactory.createEditPart(EditPartFactory.java:55) at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setInput(AbstractEditPartViewer.java:140) at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage.setInput(ComponentsTreePage.java:283) at org.eclipse.wb.internal.core.editor.structure.DesignComponentsComposite.setInput(DesignComponentsComposite.java:90) at org.eclipse.wb.internal.core.editor.JavaDesignComposite.refresh(JavaDesignComposite.java:139) at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:604) at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:468) at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236) at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133) at org.eclipse.swt.widgets.Display.syncExec(Display.java:5186) at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:464) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:434) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:352) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:470) at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:484) at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:432) at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:389) at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90) at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:275) at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:252) at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:127) at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4579) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1547) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1532) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1325) at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3248) at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1882) at org.eclipse.swt.custom.CTabFolder.lambda$0(CTabFolder.java:331) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4579) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1547) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1532) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1325) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4365) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3941) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155) at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644) 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:156) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136) 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:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596) at org.eclipse.equinox.launcher.Main.run(Main.java:1467) Caused by: java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableList at org.eclipse.wb.internal.xwt.gefTree.EditPartFactory.(EditPartFactory.java:27) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:204) ... 70 more Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableList cannot be found by org.eclipse.wb.xwt_1.9.1.202203170939 at org.eclipse.osgi.internal.loader.BundleLoader.generateException(BundleLoader.java:529) at org.eclipse.osgi.internal.loader.BundleLoader.findClass0(BundleLoader.java:524) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:416) at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:168) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) ... 77 more`

yalongy commented 1 year ago

There is no other plugin updated in Eclipse , only WindowBuilder plugin

here is msg tip when clicking 'design' after opened with WindowBuilder Editor Plugin :

`Internal Error

WindowBuilder encountered unexpected internal error.

This could be caused by a WindowBuilder bug or by a misconfiguration issue, conflict, partial update, etc.

org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.wb.xwt" was unable to instantiate class "org.eclipse.wb.internal.xwt.gefTree.EditPartFactory".

Hide stack trace. Stack trace:

java.lang.ClassNotFoundException: com.google.common.collect.ImmutableList cannot be found by org.eclipse.wb.xwt_1.9.1.202203170939 at org.eclipse.osgi.internal.loader.BundleLoader.generateException(BundleLoader.java:529) at org.eclipse.osgi.internal.loader.BundleLoader.findClass0(BundleLoader.java:524) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:416) at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:168) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) at org.eclipse.wb.internal.xwt.gefTree.EditPartFactory.(EditPartFactory.java:27) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:204) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:920) 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.wb.internal.core.utils.external.ExternalFactoriesHelper.lambda$1(ExternalFactoriesHelper.java:183) at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runObject(ExecutionUtils.java:252) at org.eclipse.wb.internal.core.utils.external.ExternalFactoriesHelper.createExecutableExtension(ExternalFactoriesHelper.java:171) at org.eclipse.wb.internal.core.utils.external.ExternalFactoriesHelper.getElementsInstances(ExternalFactoriesHelper.java:156) at org.eclipse.wb.internal.core.gefTree.EditPartFactory.getFactories(EditPartFactory.java:116) at org.eclipse.wb.internal.core.gefTree.EditPartFactory.createEditPartPure(EditPartFactory.java:80) at org.eclipse.wb.internal.core.gefTree.EditPartFactory.createEditPart(EditPartFactory.java:55) at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setInput(AbstractEditPartViewer.java:140) at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage.setInput(ComponentsTreePage.java:283) at org.eclipse.wb.internal.core.editor.structure.DesignComponentsComposite.setInput(DesignComponentsComposite.java:90) at org.eclipse.wb.internal.core.editor.JavaDesignComposite.refresh(JavaDesignComposite.java:139) at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:604) at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:468) at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236) at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133) at org.eclipse.swt.widgets.Display.syncExec(Display.java:5186) at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:464) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:434) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:352) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:470) at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:484) at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:432) at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:389) at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90) at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:275) at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:252) at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:127) at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4579) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1547) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1532) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1325) at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3248) at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1882) at org.eclipse.swt.custom.CTabFolder.lambda$0(CTabFolder.java:331) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4579) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1547) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1532) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1325) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4365) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3941) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155) at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644) 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:156) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136) 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:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596) at org.eclipse.equinox.launcher.Main.run(Main.java:1467) Full context stack trace:

org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.wb.xwt" was unable to instantiate class "org.eclipse.wb.internal.xwt.gefTree.EditPartFactory". at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:212) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:206) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:920) 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.wb.internal.core.utils.external.ExternalFactoriesHelper.lambda$1(ExternalFactoriesHelper.java:183) at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runObject(ExecutionUtils.java:252) at org.eclipse.wb.internal.core.utils.external.ExternalFactoriesHelper.createExecutableExtension(ExternalFactoriesHelper.java:171) at org.eclipse.wb.internal.core.utils.external.ExternalFactoriesHelper.getElementsInstances(ExternalFactoriesHelper.java:156) at org.eclipse.wb.internal.core.gefTree.EditPartFactory.getFactories(EditPartFactory.java:116) at org.eclipse.wb.internal.core.gefTree.EditPartFactory.createEditPartPure(EditPartFactory.java:80) at org.eclipse.wb.internal.core.gefTree.EditPartFactory.createEditPart(EditPartFactory.java:55) at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setInput(AbstractEditPartViewer.java:140) at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage.setInput(ComponentsTreePage.java:283) at org.eclipse.wb.internal.core.editor.structure.DesignComponentsComposite.setInput(DesignComponentsComposite.java:90) at org.eclipse.wb.internal.core.editor.JavaDesignComposite.refresh(JavaDesignComposite.java:139) at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:604) at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:468) at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236) at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133) at org.eclipse.swt.widgets.Display.syncExec(Display.java:5186) at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:464) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:434) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:352) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:470) at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:484) at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:432) at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:389) at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90) at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:275) at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:252) at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:127) at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4579) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1547) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1532) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1325) at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3248) at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1882) at org.eclipse.swt.custom.CTabFolder.lambda$0(CTabFolder.java:331) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4579) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1547) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1532) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1325) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4365) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3941) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155) at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644) 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:156) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136) 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:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596) at org.eclipse.equinox.launcher.Main.run(Main.java:1467) Caused by: java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableList at org.eclipse.wb.internal.xwt.gefTree.EditPartFactory.(EditPartFactory.java:27) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:204) ... 70 more Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableList cannot be found by org.eclipse.wb.xwt_1.9.1.202203170939 at org.eclipse.osgi.internal.loader.BundleLoader.generateException(BundleLoader.java:529) at org.eclipse.osgi.internal.loader.BundleLoader.findClass0(BundleLoader.java:524) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:416) at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:168) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) ... 77 more`

sometimes display none (can not see frame window)

screeshot
ptziegler commented 1 year ago

I see... that sounds like a duplicate of #499

In short: WindowBuilder was only partially updated

java.lang.ClassNotFoundException: com.google.common.collect.ImmutableList cannot be found by org.eclipse.wb.xwt_1.9.1.202203170939

As seen here, this is not the correct version. To fix this, you need to do a clean re-installation of WindowBuilder.

1) In your menu bar, click on Help -> About Eclipse -> Installation Details 2) In the Installed Software tab, search for all WindowBuilder components and uninstall them 3) Reinstall WindowBuilder from the marketplace

image

yalongy commented 12 months ago

errors still exist..

ptziegler commented 12 months ago

@yalongy

Can you provide a screenshot of your "Installed Software" tab?

Because that was the configuration where the error you described showed up. Screenshot_20231112_084435

After I manually deinstalled the SWT Designer XWT Support and XML Core, the problem was gone. Meaning I still believe that one of the plugins was not properly removed in your Eclipse installation. Screenshot_20231112_084535

ptziegler commented 4 months ago

I'm closing this one. From what I can tell, the issue showed up after updating the WindowBuilder version. The solution is to either explicitly remove the old installation, before performing the update or installing WindowBuilder in a fresh installation.

Feel free to reopen this issue, if this problem continues to exist.