Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Workspace corrupted - Eclipse GUI not coming up anymore
Workspace corrupted - Eclipse GUI not coming up anymore [message #1828709] Wed, 17 June 2020 08:39 Go to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 58
Registered: October 2012
Location: Zürich, Switzerland
Member
Eclipse still occasionally manages to corrupt its workspace so badly that even starting with the -clean option doesn't help anymore and the application reproducibly crashes and is unable to bring up its GUI. I consider that pretty much the worst case because that would mean that one has to reconstruct the entire workspace with all its settings AGAIN! :-(

Of course - as Eclipse user since v1 - I know better and always keep a copy of a working .metadata folder around. But after 20 years this should really be something that Eclipse ought to be immune against!

log is attached. Some NPE again...

  • Attachment: .log
    (Size: 32.26KB, Downloaded 7 times)
Re: Workspace corrupted - Eclipse GUI not coming up anymore [message #1828712 is a reply to message #1828709] Wed, 17 June 2020 09:38 Go to previous messageGo to next message
Emmanuel Chebbi is currently offline Emmanuel ChebbiFriend
Messages: 123
Registered: February 2018
Senior Member
According to the log I'd guess that the issue is caused by the oracle.eclipse.tools.webtier.jsf.facelet plugin; basically its dependencies don't seem to be properly declared (and that would explain why -clean has no effect; you may also want to give -clearPersistedState a try). If this is the cause you've likely installed a plugin before closing Eclipse IDE for the last time and the issue should be reproducible when a certain set of plugins are installed. I found what seems to be a fix on GitHub [1] but it's already 5 years old so I would expect such an error to be fixed now. I don't really know where the plugin comes from but are you using a recent release of it?

Just to make sure the issue comes from the workspace's state: does replacing the current workspace by a "cleaner" one actually solve the issue and allows Eclipse IDE to start again?

By the way, this forum is dedicated to issues with JDT, the plugin providing Java support, so you may not get trully relevant answers here. I would advise you to:

  1. Make sure you're using a recent release of Eclipse IDE and have installed the latest version of all your plugins
  2. Contact the developers of this oracle.eclipse.tools.webtier.jsf.facelet plugin to ask them for a fix
  3. Submit a new bug on Bugzilla to ask for this NullPointerException issue to be fixed (if relevant)

[1] https://github.com/palek/oracle.eclipse.tools.webtier.jsf.facelet
Re: Workspace corrupted - Eclipse GUI not coming up anymore [message #1828713 is a reply to message #1828712] Wed, 17 June 2020 09:42 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31548
Registered: July 2009
Senior Member
It might also help to delete .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi if there is some problem with the workbench's persisted state.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Workspace corrupted - Eclipse GUI not coming up anymore [message #1828731 is a reply to message #1828713] Wed, 17 June 2020 19:20 Go to previous messageGo to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 58
Registered: October 2012
Location: Zürich, Switzerland
Member
Thanks for responding to both!

> Just to make sure the issue comes from the workspace's state: does replacing the current workspace by a "cleaner" one actually solve the issue and allows Eclipse IDE to start again?

Yes - it did.

> If this is the cause you've likely installed a plugin before...

Yes - I had tried a plugin, which didn't work (turned out it was mean't for 32-Bit versions of Eclipse only - do these still exist?) and so I uninstalled it again. Could have to do with that workspace corruption. But even then that shouldn't happen.

> It might also help to delete .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi if there is some problem with the workbench's persisted state.

With the -clean I would have expected that Eclipse does exactly that and removes (or ignores) ALL previously persisted state. I thought that EXACTLY THAT was the purpose to overcome precisely such cases. Or what else is that option for, then?

[Updated on: Wed, 17 June 2020 19:21]

Report message to a moderator

Re: Workspace corrupted - Eclipse GUI not coming up anymore [message #1828733 is a reply to message #1828713] Wed, 17 June 2020 22:08 Go to previous messageGo to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 58
Registered: October 2012
Location: Zürich, Switzerland
Member
> It might also help to delete .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi if there is some problem with the workbench's persisted state.

This turns out to be a real life saver! Thanks for posting this! Just had another issue and this quickly fixed it.
Re: Workspace corrupted - Eclipse GUI not coming up anymore [message #1828749 is a reply to message #1828733] Thu, 18 June 2020 06:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31548
Registered: July 2009
Senior Member
Sometimes an open editor or some open view can do bad things while the workbench is being opened. Note that the -clean thing is more an OSGi thing for updating the self profile; normally the state/presence of all the bundles is cached for quick startup and this option forces a full refresh, e.g., rewiring all the package imports between the bundles and so on. I believe the -clean option has no impact on the workbench nor its state. An option specifically for that purpose might be helpful...

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Workspace corrupted - Eclipse GUI not coming up anymore [message #1828778 is a reply to message #1828749] Thu, 18 June 2020 12:18 Go to previous messageGo to next message
Emmanuel Chebbi is currently offline Emmanuel ChebbiFriend
Messages: 123
Registered: February 2018
Senior Member
Ed Merks wrote on Thu, 18 June 2020 08:06
Sometimes an open editor or some open view can do bad things while the workbench is being opened. [...] I believe the -clean option has no impact on the workbench nor its state. An option specifically for that purpose might be helpful...

Doesn't the -clearPersistedState option fit that purpose? Running Eclipse IDE with this option deletes the .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi file.
Re: Workspace corrupted - Eclipse GUI not coming up anymore [message #1828779 is a reply to message #1828778] Thu, 18 June 2020 12:35 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31548
Registered: July 2009
Senior Member
I didn't know about that option! Thanks for making us aware of it. :-)

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Workspace corrupted - Eclipse GUI not coming up anymore [message #1828797 is a reply to message #1828778] Thu, 18 June 2020 22:06 Go to previous messageGo to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 58
Registered: October 2012
Location: Zürich, Switzerland
Member
> Doesn't the -clearPersistedState option fit that purpose?

I've never heard nor read about that option. Are there more such goodies? Are these listed anywhere?
Re: Workspace corrupted - Eclipse GUI not coming up anymore [message #1828806 is a reply to message #1828797] Fri, 19 June 2020 05:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31548
Registered: July 2009
Senior Member
They are listed here:

https://help.eclipse.org/2020-06/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Debug Shell Evaluation Failure with Stream Processing
Next Topic:Maven POM problem after upgrade
Goto Forum:
  


Current Time: Sun Oct 25 14:46:39 GMT 2020

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

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

Back to the top