Sunday Mar 30, 2014

"Cannot load even default layout, using internally predefined configuration"

When I created the FeedReader application in NetBeans IDE 8 and then ran it, this is what I saw:

The above tells you something is messed up in the System FileSystem.

The log shows among other things:

Caused: [WinSys] Missing Window Manager configuration file
[catch] at
    at org.netbeans.core.GuiRunLevel$
    at java.awt.event.InvocationEvent.dispatch(
    at java.awt.EventQueue.dispatchEventImpl(
    at java.awt.EventQueue.access$400(
    at java.awt.EventQueue$
    at java.awt.EventQueue$

After quite a bit of searching, I discovered this file in the "branding" folder of the application. The "branding" folder can only be seen when you're in the Files window.

I deleted the "resources" folder above, together with the "layer.xml" file that you see there. It contained only "_hidden" elements, i.e., this is an older way of hiding menus and toolbars, that is now obsolete; now you do so within a module instead of in a file within the "branding" folder like the above. (Even better than deleting it is to move its content into one of the layer.xml files of your own modules, e.g., the Feed Reader module.)

Then I cleaned the application. And then I ran the application and everything was OK. Seems like an old file format of the layer.xml file, or maybe something changed in that module, I don't know what the reason is.


Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« March 2014 »