Org.eclipse.swt.SWTError: item not added

Does anyone know how to recover a never-starting eclipse when the error "org.eclipse.swt.SWTError: Item not added" raises agaring and again?

I am using WebSphere Studio Site Developer (Windows) 5.1.0

The only stack trace in the .metadata / log file:

SESSION ----------------------------------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 sep 17, 2008 16:39:00.564
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.reflect.InvocationTargetException: java.lang.reflect.InvocationTargetException: org.eclipse.swt.SWTError: Item not added
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at org.eclipse.swt.SWTError.<init>(SWTError.java:82)
at org.eclipse.swt.SWTError.<init>(SWTError.java:71)
at org.eclipse.swt.SWT.error(SWT.java:2358)
at org.eclipse.swt.SWT.error(SWT.java:2262)
at org.eclipse.swt.widgets.Widget.error(Widget.java:385)
at org.eclipse.swt.widgets.Menu.createItem(Menu.java:464)
at org.eclipse.swt.widgets.MenuItem.<init>(MenuItem.java:77)
at org.eclipse.ui.internal.AcceleratorMenu.setAccelerators(AcceleratorMenu.java:177)
at org.eclipse.ui.internal.WWinKeyBindingService.updateAccelerators(WWinKeyBindingService.java:316)
at org.eclipse.ui.internal.WWinKeyBindingService.clear(WWinKeyBindingService.java:175)
at org.eclipse.ui.internal.WWinKeyBindingService.update(WWinKeyBindingService.java:267)
at org.eclipse.ui.internal.WWinKeyBindingService$1.partActivated(WWinKeyBindingService.java:107)
at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:49)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:47)
at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:1180)
at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:1833)
at org.eclipse.ui.internal.WorkbenchWindow$7.run(WorkbenchWindow.java:1496)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:1483)
at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1363)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1263)
at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1223)
at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:1141)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState(Workbench.java:1093)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:870)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1373)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:207)
at java.lang.reflect.Method.invoke(Method.java:271)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)

+4
source share
6 answers

Reboots the computer, solving the problem, having the opportunity to open the workspace? There is a forum post ( http://forums.sun.com/thread.jspa?messageID=3131484#3131484 ) that describes a similar problem with identical stack tracing, as shown above. In the message, the author mentions that their machine was low on resources (they did not indicate which type of resources worked at a low level).

If restarting your computer does not work, you can try starting eclipse with a clean option:

eclipse -clean

A clean option will clear all caches created by Eclipse.

If all else fails, you can open the error for this problem at https://bugs.eclipse.org/bugs/ . Turning on a copy of your workspace (if possible) and turning on the stack trace in the error will be useful information for a person trying to diagnose a problem.

Good luck

+1
source

I had exactly the same problem. I did not restart my machine and simply used "eclipse -clean" to start eclipse. It worked. Thanks Jon for the tip.

+2
source

Well, some things you can try:

  • Delete workspace. metadata dir. Obviously, you will lose the configuration of your workplace.
  • Rename the .metadata directory. Launch Eclipse and you will have a new .metadata directory. Close Eclipse, delete the new directory and rename the source directory. It sometimes works.
0
source

Hi

Check the task manager, regardless of whether any java process (java.exe or javaw.exe) is running even after the workplace is closed. Kill these processes. You will get this error.

0
source

This worked when I moved eclipse.ini from the eclipse installation folder (where .exe is present). I ran into this problem when I tried to increase the heap size in the eclipse.ini file (although I had seen this error before)

0
source

For me, I think this has something to do with my dual monitor setup and the Actual Multiple Monitors that I installed. I turned it off and the problem disappeared.

0
source

Source: https://habr.com/ru/post/1276809/


All Articles