This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256871 - Module Development: "got no controller"
Summary: Module Development: "got no controller"
Status: NEW
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: pgebauer
Depends on:
Reported: 2015-11-30 14:37 UTC by Peter Nabbefeld
Modified: 2015-12-01 14:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Peter Nabbefeld 2015-11-30 14:37:10 UTC
When creating an options dialog, I get "java.lang.Exception: got no controller from MyPanel: null".

	at org.netbeans.spi.options.AdvancedOption$
	at org.netbeans.spi.options.AdvancedOption$
[catch] at org.netbeans.modules.options.AdvancedOptionImpl.create(
	at org.netbeans.modules.options.TabbedController.handleTabSwitched(
	at org.netbeans.modules.options.TabbedController.initTabbedPane(
	at org.netbeans.modules.options.TabbedController.getComponent(
	at org.netbeans.modules.options.CategoryModel$Category.getComponent(
	at org.netbeans.modules.options.OptionsPanel.setCurrentCategory(
	at org.netbeans.modules.options.OptionsPanel.access$300(
	at org.netbeans.modules.options.OptionsPanel$1$

When looking into the code, "controller" is fetched from attrs, thus should be defined in "generated-layer.xml", but it isn't.
Comment 1 Peter Nabbefeld 2015-12-01 06:45:15 UTC
Oops, sorry - entry is present in generated-layer.xml (just overlooked it because sometimes "name" is the first attribute, else it is the last one). Nevertheless, the "controller" attribute seems to be missed for some cause, probably there's a problem with the generated folder structure?