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
URL:
Keywords:
Depends on:
Blocks:
 
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:


Attachments

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

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?