Eclipse just doesn’t work right for me. I’m so pissed by this crap…

I’ve been following this tutorial (whoever had the idea to use screenshots for the actual code parts… ever heard of copy’n’paste?).

At one point you need to add a class. A new class. Derived from Object.

So I chose the menu option in Eclipse to, well, add a new class. After pressing “Next” in the wizard, eclipse froze, using 100% CPU.

After killing and restarting eclipse, it had only created an empty file. But since I have to type in the data from the Tutorial anyway, ok.

Next step in the tutorial: edit the faces-config.xml file with the faces-config editor. Sounds easy. I click on the file, open with, faces-config editor. Boom. First some content type error message is displayed, but the details actually list a NullPointerException:

java.lang.NullPointerException
    at org.eclipse.wst.sse.ui.StructuredTextEditor.update(StructuredTextEditor.java:3047)
    at org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor.addPages(FacesConfigEditor.java:396)
    at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:142)
    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:276)
    [... 40 more lines of backtrace ...]

Error handling in Java sucks, too. Usually you just get a 50 lines+ stack trace.

[Update: deinstalling XML buddy resolved the last problem, and I could add a second class without another crash]