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.
I've just started working with the tutorial at: http://platform.netbeans.org/tutorials/nbm-palette-api2.html I've downloaded the latest dev version of NetBeans to test it with (since it required versions of libraries that didn't exist in the beta2 version). Anyhow, I download the sample code, unzip it and Install/Reload it. It appears to work correctly until I open the jboss XML file and double click a palette component in the palette. Then the following exception is thrown: java.lang.NullPointerException at org.netbeans.modules.jbosswebxml.palette.jbossddPaletteActions$MFPaletteInsertAction.actionPerformed(jbossddPaletteActions.java:77) at org.netbeans.modules.palette.DefaultItem.invokePreferredAction(DefaultItem.java:67) at org.netbeans.modules.palette.ui.CategoryList$CategoryListUI$ListMouseInputHandler.mouseClicked(CategoryList.java:394) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211) at java.awt.Component.processMouseEvent(Component.java:5491) at javax.swing.JComponent.processMouseEvent(JComponent.java:3126) at java.awt.Component.processEvent(Component.java:5253) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3955) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1774) at java.awt.Component.dispatchEvent(Component.java:3803) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Another propblem with the tutorial: In Setting Up the Module Project, you are told to set the Code Name Base to org.netbeans.modules.jboss-web-xml. This causes the wizard on my machine to print an error message 'Code Name Base is not valid'. This may be specific to Windows, as I've had trouble with file names containing hyphens before.
Geertjan, is this your tutorial?
This is a draft tutorial, as indicated at the top and also right at the end. There are bound to be problems. Please don't use Issuezilla for these kind of comments. Instead, write to nbdocs_feedback@usersguide.netbeans.org Only after the tutorials are finalized should you use Issuezilla. I'll add a message to the tutorials to this effect.
I've fixed this issue. New code has been uploaded, so now when you click the same link as before you'll get a different ZIP file with fixed content. Please verify that it is correct. Also, I took out the spaces in the names. Look at the Versioning table at the bottom of the tutorial for details. Please verify that the downloadable project is now correct and works without problems. Please leave a message in this thread here in Issuezilla to indicate whetehr it works or not, so that we can track this issue, since it started here.
Okay, both of the above errors were fixed. One new error is that all three components in the component palette in the sample zip file supplied to the user all print the same code when they're double clicked on. I've not looked at the source, but perhaps this is a cut and paste error? Mark McKay
Fixed, please verify!