Java 7 and Dockingframes

I recently tried to start Docking-Frames using Java 7 and it seems like this doesn’t work any more.

I got the following NullPointerException

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
	at bibliothek.gui.dock.themes.basic.BasicColorScheme.updateUI(Unknown Source)
	at bibliothek.gui.dock.themes.basic.BasicColorScheme.<init>(Unknown Source)
	at bibliothek.gui.dock.themes.BasicTheme$1.getDefault(Unknown Source)
	at bibliothek.gui.dock.themes.BasicTheme$1.getDefault(Unknown Source)
	at bibliothek.gui.dock.util.PropertyKey.getDefault(Unknown Source)
	at bibliothek.gui.dock.util.DockProperties$Entry.getDefault(Unknown Source)
	at bibliothek.gui.dock.util.DockProperties$Entry.getValue(Unknown Source)
	at bibliothek.gui.dock.util.DockProperties.get(Unknown Source)
	at bibliothek.gui.dock.util.PropertyValue.getValue(Unknown Source)
	at bibliothek.gui.dock.util.PropertyValue.setProperties(Unknown Source)
	at bibliothek.gui.dock.util.PropertyValue.setProperties(Unknown Source)
	at bibliothek.gui.dock.themes.BasicTheme.install(Unknown Source)
	at bibliothek.gui.dock.themes.BasicTheme.install(Unknown Source)
	at bibliothek.gui.dock.themes.ThemeManager.setTheme(Unknown Source)
	at bibliothek.gui.DockController.setTheme(Unknown Source)
	at bibliothek.gui.DockController.initiate(Unknown Source)
	at bibliothek.gui.DockController.<init>(Unknown Source)
	at bibliothek.gui.DockController.<init>(Unknown Source)
	at bibliothek.gui.dock.common.intern.EfficientControlFactory$1.<init>(Unknown Source)
	at bibliothek.gui.dock.common.intern.EfficientControlFactory.createController(Unknown Source)
	at bibliothek.gui.dock.common.CControl.init(Unknown Source)
	at bibliothek.gui.dock.common.CControl.<init>(Unknown Source)
	at bibliothek.gui.dock.common.CControl.<init>(Unknown Source)
	at bibliothek.gui.dock.common.CControl.<init>(Unknown Source)
	at bibliothek.gui.dock.common.CControl.<init>(Unknown Source)
	at client.MainWindow.createMenuBar(MainWindow.java:399)

where the line 399 is a simple call to the default constructor of ccontrol:

fControl = new CControl();

Is there a simple solution to fix this?

I don’t have a solution at hand, I’ll have to install Java 7 myself and try to provoke this error. The error does not make much sense, the code in “updateUI” should handle any null reference.

Questions: what OS did you use, Windows or Linux (or something else)? Do you know which LookAndFeel the application would use, if it would start? Which version of DockingFrames did you use?

Hello Beni,

the application runs on Windows 7 - 32bit and uses the Nimbus Theme. There is no problem when while executing it with Java 6. The docking frames version is 1.1.0 p7b.

The funny page where Java 7 can be found is in maintenance mode… I’ll have to report back in a few days (once they got it running again).