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

Summary: Module Development: "got no controller"
Product: apisupport Reporter: Peter Nabbefeld <epdv>
Component: HarnessAssignee: pgebauer <pgebauer>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

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".

Stacktrace:
	at org.netbeans.spi.options.AdvancedOption$1.call(AdvancedOption.java:151)
	at org.netbeans.spi.options.AdvancedOption$1.call(AdvancedOption.java:144)
[catch] at org.netbeans.modules.options.AdvancedOptionImpl.create(AdvancedOptionImpl.java:102)
	at org.netbeans.modules.options.TabbedController.handleTabSwitched(TabbedController.java:214)
	at org.netbeans.modules.options.TabbedController.initTabbedPane(TabbedController.java:195)
	at org.netbeans.modules.options.TabbedController.getComponent(TabbedController.java:172)
	at org.netbeans.modules.options.CategoryModel$Category.getComponent(CategoryModel.java:431)
	at org.netbeans.modules.options.OptionsPanel.setCurrentCategory(OptionsPanel.java:259)
	at org.netbeans.modules.options.OptionsPanel.access$300(OptionsPanel.java:125)
	at org.netbeans.modules.options.OptionsPanel$1$1.run(OptionsPanel.java:219)
...

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?