So I finally found out what was wrong! Our project is using a content management system that makes everything read-only, and there is a file called index.xml in the lib/complib folder under the project folder that was read-only, so Netbeans couldn't write to it to add the component library to the project, and instead of giving us an error saying that it couldn't write to the file like it usually does, it give us the cryptic (and grammatically incorrect) message, "Unable to embedded a complib into project".
mr.meyers wrote:
I'm using Netbeans 6.0.1. I have a visual web custom component library (.complib) that I made that extends some ICEFaces components, and when I go to Component Libraries I can import the library, but it doesn't show up on the Palette. When I right click the palette and click Add Component Library, it shows up in the list and I click add. When I click add, Netbeans reports the exception at the end of this message and doesn't add it to the palette. Then I right click the palette and click refresh, and it shows up. I used to not get this message. Does anyone know what could cause an exception like this?
The exception:
java.lang.IllegalArgumentException: null source
at java.util.EventObject.<init>(EventObject.java:38)
at org.netbeans.modules.visualweb.complib.api.ComplibEvent.<init>(ComplibEvent.java:53)
at org.netbeans.modules.visualweb.complib.ComplibServiceProvider.replaceProjectComplib(ComplibServiceProvider.java:1244)
at org.netbeans.modules.visualweb.complib.ComplibServiceProvider.addProjectComplib(ComplibServiceProvider.java:1286)
at org.netbeans.modules.visualweb.complib.ui.ComplibsRootNode$AddComplibAction.actionPerformed(ComplibsRootNode.java:267)
Caused: java.lang.Throwable: Unable to embedded a complib into project
at org.netbeans.modules.visualweb.complib.IdeUtil.logError(IdeUtil.java:117)
at org.netbeans.modules.visualweb.complib.ui.ComplibsRootNode$AddComplibAction.actionPerformed(ComplibsRootNode.java:269)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1216)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1257)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Thanks.