Eclipse crashes when loading the runtime workbench - eclipse

I am experiencing trouble when starting the Runtime workbench in eclipse. The new eclipse opens up but crashes on the "Loading Workbench" instruction.
I've tried a few things already, namely:
rm -r .metadata
or
./eclipse -clean -clearPersistedState
I also tried to delete the .snap file, the workbench.xmi file, I tried uninstalling and reinstalling Eclipse, this didn't help.
Here's the log from the crash:
!ENTRY org.eclipse.core.net 1 0 2013-11-03 21:44:52.276
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
!ENTRY org.eclipse.ui.workbench 4 2 2013-11-03 21:44:54.013
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.NullPointerException
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.getLastMigration(MigrationSupport.java:232)
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.baseChangedSinceLastPresentationOfWizard(MigrationSupport.java:193)
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.performMigration(MigrationSupport.java:71)
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler.earlyStartup(AutomaticUpdateScheduler.java:89)
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2551)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!ENTRY org.eclipse.ui 4 4 2013-11-03 21:44:54.028
!MESSAGE Unhandled Exception
!ENTRY org.eclipse.equinox.p2.ui.sdk.scheduler 4 0 2013-11-03 21:44:54.030
!MESSAGE Unable to execute early startup code for an extension
!STACK 0
java.lang.NullPointerException
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.getLastMigration(MigrationSupport.java:232)
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.baseChangedSinceLastPresentationOfWizard(MigrationSupport.java:193)
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.performMigration(MigrationSupport.java:71)
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler.earlyStartup(AutomaticUpdateScheduler.java:89)
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2551)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Does somebody have a solution to this particular problem? I'm becoming crazy from not finding a solution.
Otherwise, I'll have to format and reinstall everything maybe?
Thank you guys if you can help!

OK after messing around with all eclipse files and stuff, I found the solution:
I had to use a new workspace that wasn't in the parent folder of the current workspace, explanation:
Old workspace:
somefolder/parentfolder/workspace/
Every workspace in the parentfolder/ is corrupted, so each time I was trying a new workspace in this folder, it didn't work
By using this kind of workspace, the problem wasn't there anymore:
somefolder/workspace
My advice to you if this happens: do not only use the parent folder to try a workspace but a completely random other folder.
Hope this helps other people in the same position.

I was getting the same error. I was able to run it using ./eclipse -clean -clearPersistedState but then got another error of "Locking not possible in the directory" and this got resolved by giving 777 permission to eclipse folder and its contents.

This worked for me.
cd /Applications/adt-bundle-mac-x86_64-20140702/eclipse/Eclipse.app/Contents/MacOS
Then inside there you will see two files eclipse and eclipse.ini.
You want to run this command ./eclipse -clean -clearPersistedState
Eclipse will start up, build your workspace, then restart. Then everything is fine. Good to go!

Related

Problem updating eclipse rcp application from 4.16 to 4.22

I am updating my eclipse rcp application from 4.16 to 4.22.
If I run my updated eclipse rcp application in an entirely new workspace, it works.
If I run my updated eclipse rcp application on top of an existing workspace that previously ran the 4.16 version, there is this error about not finding an icon (this is the project explorer icon that changed from a gif to a png file):
!ENTRY org.eclipse.jface 4 0 2022-01-31 08:37:13.602
!MESSAGE /icons/full/eview16/resource_persp.gif
!STACK 0
java.io.FileNotFoundException: /icons/full/eview16/resource_persp.gif
at org.eclipse.osgi.storage.url.bundleentry.Handler.findBundleEntry(Handler.java:55)
I tried deleting everything in the workspace except the workpace/.metadata/.plugins/org.eclpse.core.resources
directory before launching my updated application, but it displays an empty application window with the following general error:
!ENTRY org.eclipse.osgi 4 0 2022-01-31 08:47:03.042
!MESSAGE An error occurred while automatically activating bundle com.xxx.xxx.xxx.xx.xxx (15).
!STACK 0
org.osgi.framework.BundleException: Error loading bundle activator.
If I close my application and launch a second time, everything works. The workspace somehow fixes itself.
Any ideas on how to fix my existing workspace before the first launch of my updated application? I do have an installer, so can perform some sort of one time fix.
Other things I have tried that result in a failed first launch, but fixed second launch:
Deleting the workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi file
Modifying the workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi file to reference resource_persp.png instead of resource_persp.gif

Eclipse has an internal error during Launching

I am facing this issue with eclipse (Its eclipse Oxygen) I am unable to run a simple Java program
This happen after I modified the project to be a Maven project.
what I tried so far:
I updated the software using (help > check for updates)
deleted the Workspace, and created a new one.
!ENTRY org.eclipse.core.jobs 4 2 2017-12-21 13:15:48.670
!MESSAGE An internal error occurred during: "Launching MailProcessor".
!STACK 0
java.lang.NullPointerException
at org.eclipse.jdt.launching.JavaRuntime.isModularJava(JavaRuntime.java:1043)
at org.eclipse.jdt.launching.JavaRuntime.isModularConfiguration(JavaRuntime.java:1020)
at org.eclipse.jdt.launching.JavaRuntime.computeJREEntry(JavaRuntime.java:2341)
at org.eclipse.m2e.jdt.internal.launch.MavenRuntimeClasspathProvider.computeUnresolvedClasspath(MavenRuntimeClasspathProvider.java:93)
at org.eclipse.jdt.internal.launching.RuntimeClasspathProvider.computeUnresolvedClasspath(RuntimeClasspathProvider.java:57)
at org.eclipse.jdt.launching.JavaRuntime.computeUnresolvedRuntimeClasspath(JavaRuntime.java:1509)
at org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getBootpathExt(AbstractJavaLaunchConfigurationDelegate.java:299)
at org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getVMSpecificAttributesMap(AbstractJavaLaunchConfigurationDelegate.java:615)
at org.eclipse.jdt.launching.JavaLaunchDelegate._OT$callOrig(JavaLaunchDelegate.java:71)
at org.objectteams.Team._OT$terminalCallNext(Team.java:598)
at org.objectteams.Team._OT$callNext(Team.java:582)
at org.eclipse.objectteams.otdt.internal.debug.adaptor.launching.JDTLaunchingAdaptor._OT$callNext(JDTLaunchingAdaptor.java:56)
at org.eclipse.objectteams.otdt.internal.debug.adaptor.launching.JDTLaunchingAdaptor._OT$callReplace(JDTLaunchingAdaptor.java:56)
at org.objectteams.Team._OT$callAllBindings(Team.java:557)
at org.eclipse.jdt.launching.JavaLaunchDelegate.callAllBindings(JavaLaunchDelegate.java)
at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
I faced a similar issue in the past, you can try the following:
Exit Eclipse
Go to your workspace folder in the file explorer
Look for the .metadata folder and delete it
Re-open Eclipse
Hope it works.
for me it happens when in run configuration I click on configure next to PHP server
Solve it by clicking new instead
I had Similar issue, Just restarted eclipse it works automatically
Finally got solution don't need to delete .metadata or .settings just need to add this in environmental variables In System variables _JAVA_OPTIONS -Xmx1024M

Eclipse Neon Does Not Start

Eclipse Neon displays an error message box during startup and will not open. The message gives a file path to a log file. In that file I see this error message:
!ENTRY org.eclipse.e4.ui.workbench.swt 4 2 2016-11-13 08:50:49.856
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.e4.ui.workbench.swt".
!STACK 0
java.lang.IllegalAccessError: com.aptana.editor.css.CSSSourceEditor.isWordWrapEnabled()Z
at org.eclipse.ui.texteditor.WordWrapToggleAction.isWordWrapEnabled(WordWrapToggleAction.java:66)
at org.eclipse.ui.texteditor.WordWrapToggleAction.update(WordWrapToggleAction.java:57)
at org.eclipse.ui.texteditor.TextEditorAction.<init>(TextEditorAction.java:68)
at org.eclipse.ui.texteditor.WordWrapToggleAction.<init>(WordWrapToggleAction.java:34)
at org.eclipse.ui.texteditor.AbstractTextEditor.createActions(AbstractTextEditor.java:5898)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createAction
The OS is Ubuntu 16.04
i found this solution and it worked for me.
I went to directory:
.metadata.plugins\org.eclipse.e4.workbench
And renamed
workbench.xmi to workbenchOLD.xmi
I found it here:
org.eclipse.swt.SWTException: “Widget is disposed” when trying to open AndroidManifest.xml
I hope it helped!
See you,
Federico

Cannot run Eclipse

This morning, I'm not able do run Eclipse Indigo whereas yesterday it was working.
I receive this message :
An error has occured. See the log file E:\workspaces\sim.metadata.log
And my .log file displays :
!STACK 0
!MESSAGE An error occurred while automatically activating bundle org.eclipse.core.resources (103).
...
Caused by: java.lang.ClassFormatError: Illegal constant pool index 7436 for method signature in class file org/eclipse/core/internal/resources/MarkerManager
...
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContainer
...
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.core.resources (103).
...
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.start() of bundle org.eclipse.core.resources.
I ran Eclipse with the clean argument but it's the same.
Thanks for any help
It looks like your eclipse crashed sometime before and is unable to restore the workspace.
You can delete .metadata/.plugins/org.eclipse.core.resources/.snap .
Or
Try using a new workspace. Change the settings in \configuration.settings\org.eclipse.ui.ide.prefs and set SHOW_WORKSPACE_SELECTION_DIALOG to true
After that import all your projects to your workspace.
Try reinstalling Eclipse. The message regarding an illegal constant pool index sounds like a broken .class file. Your settings and workspace should remain intact, but you may need to re-install your plugins (if any).
I suppose you still have your workspace intact.The best and fastest option would be to reinstall eclipse and replace the new workspace with the older one.

my eclipse stopped working today

Today I was running into problems with eclipse, like every time I closed a project a window popped up saying something like "error saving workspace" and complaining about apache xerces.
I decided to download a fresh install, and now it won't even start. I tried many variants (classic, javase, c++), hoping there was some distribution issues, but nothing worked. Eclipse starts saying "an error has occurred, see configurationlog ..."
Any idea? Are there some cached files in the system that might have become corrupted? I tried doing a "find / | grep eclipse" but found nothing interesting.
Thanks a lot for your help, I'm quite in trouble without it
Regards,
Nicola Montecchio
p.s. I tried also with 32 bit jvm but nothing changed
[edit] here is relevant bits of the log produced when starting:
!ENTRY org.eclipse.osgi 4 0 2010-07-23 21:35:16.835
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
!ENTRY org.eclipse.osgi 4 0 2010-07-23 21:35:16.839
!MESSAGE
!STACK 0
org.osgi.framework.ServiceException: Exception in org.eclipse.core.runtime.internal.adaptor.EclipseAdaptorHook$ParsingService.getService()
!ENTRY org.eclipse.equinox.registry 4 0 2010-07-23 21:35:16.840
!MESSAGE Could not parse XML contribution for "org.eclipse.ant.core//plugin.xml". Any contributed extensions and extension points will be ignored.
!STACK 0
org.xml.sax.SAXException: Could not acquire XML parsing service.
and several other mostly related to xml ...
Sounds like your current workspace is severely broken. Create a new workspace and import the projects from the old locations (File -> Import), and see if that helps.
Things I'd try are renaming your workspace (so Eclipse will use a fresh one when starting up) or running Eclipse with the -clean parameter (in the console with ./eclipse -clean in your eclipse/ folder).