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 180623 - Not possible to add new cluster with OSGi bundles
Summary: Not possible to add new cluster with OSGi bundles
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Netigso (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-11 09:44 UTC by Geertjan Wielenga
Modified: 2010-02-16 04:00 UTC (History)
1 user (show)

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 Geertjan Wielenga 2010-02-11 09:44:21 UTC
Using Ubuntu and ay daily build from the last three days (and probably before that too), choose 'Add Cluster' and browse to a folder that does not contain NetBeans module JARs. I.e., any other folder, even if it includes OSGi bundle JARs (e.g., 'glassfish/modules'). When you do so and click OK, the following error appears and the IDE fails to create a new cluster:

java.lang.NullPointerException
   at org.netbeans.modules.apisupport.project.ui.customizer.ClusterizeVisualPanel1.getName(ClusterizeVisualPanel1.java:65)
   at com.sun.java.swing.plaf.gtk.GTKStyle.getInsets(GTKStyle.java:274)
   at javax.swing.plaf.synth.SynthStyle.installDefaults(SynthStyle.java:896)
   at javax.swing.plaf.synth.SynthLookAndFeel.updateStyle(SynthLookAndFeel.java:276)
   at javax.swing.plaf.synth.SynthPanelUI.updateStyle(SynthPanelUI.java:70)
   at javax.swing.plaf.synth.SynthPanelUI.installDefaults(SynthPanelUI.java:57)
   at javax.swing.plaf.basic.BasicPanelUI.installUI(BasicPanelUI.java:39)
   at javax.swing.plaf.synth.SynthPanelUI.installUI(SynthPanelUI.java:37)
   at javax.swing.JComponent.setUI(JComponent.java:673)
   at javax.swing.JPanel.setUI(JPanel.java:136)
   at javax.swing.JPanel.updateUI(JPanel.java:109)
   at javax.swing.JPanel.<init>(JPanel.java:69)
   at javax.swing.JPanel.<init>(JPanel.java:92)
   at javax.swing.JPanel.<init>(JPanel.java:100)
   at org.netbeans.modules.apisupport.project.ui.customizer.ClusterizeVisualPanel1.<init>(ClusterizeVisualPanel1.java:50)
   at org.netbeans.modules.apisupport.project.ui.customizer.ClusterizeWizardPanel1.getComponent(ClusterizeWizardPanel1.java:59)
   at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:931)
   at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:851)
   at org.openide.WizardDescriptor.initialize(WizardDescriptor.java:499)
   at org.openide.NotifyDescriptor.getterCalled(NotifyDescriptor.java:287)
   at org.openide.DialogDescriptor.isModal(DialogDescriptor.java:319)
   at org.netbeans.core.windows.services.NbDialog.<init>(NbDialog.java:72)
   at org.netbeans.core.windows.services.DialogDisplayerImpl$1.run(DialogDisplayerImpl.java:115)
   at org.netbeans.core.windows.services.DialogDisplayerImpl$1.run(DialogDisplayerImpl.java:107)
   at org.openide.util.Mutex.doEventAccess(Mutex.java:1355)
   at org.openide.util.Mutex.readAccess(Mutex.java:268)
   at org.netbeans.core.windows.services.DialogDisplayerImpl.createDialog(DialogDisplayerImpl.java:107)
   at org.netbeans.modules.apisupport.project.ui.customizer.Clusterize.perform(Clusterize.java:93)
   at org.netbeans.modules.apisupport.project.ui.customizer.Clusterize.clusterize(Clusterize.java:86)
   at org.netbeans.modules.apisupport.project.ui.customizer.EditClusterPanel.browseButtonActionPerformed(EditClusterPanel.java:256)
   at org.netbeans.modules.apisupport.project.ui.customizer.EditClusterPanel.access$000(EditClusterPanel.java:75)
   at org.netbeans.modules.apisupport.project.ui.customizer.EditClusterPanel$1.actionPerformed(EditClusterPanel.java:207)
   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.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
   at java.awt.Component.processMouseEvent(Component.java:6216)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
   at java.awt.Component.processEvent(Component.java:5981)
   at java.awt.Container.processEvent(Container.java:2041)
   at java.awt.Component.dispatchEventImpl(Component.java:4583)
   at java.awt.Container.dispatchEventImpl(Container.java:2099)
   at java.awt.Component.dispatchEvent(Component.java:4413)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
   at java.awt.Container.dispatchEventImpl(Container.java:2085)
   at java.awt.Window.dispatchEventImpl(Window.java:2475)
   at java.awt.Component.dispatchEvent(Component.java:4413)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
   at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:127)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
   at java.awt.Dialog$1.run(Dialog.java:1051)
   at java.awt.Dialog$3.run(Dialog.java:1103)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.awt.Dialog.show(Dialog.java:1101)
   at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:988)
   at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1022)
   at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1010)
   at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:118)
   at org.openide.util.Mutex.doEventAccess(Mutex.java:1355)
   at org.openide.util.Mutex.readAccess(Mutex.java:268)
   at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:995)
   at java.awt.Component.show(Component.java:1516)
   at java.awt.Component.setVisible(Component.java:1468)
   at java.awt.Window.setVisible(Window.java:841)
   at java.awt.Dialog.setVisible(Dialog.java:991)
   at org.netbeans.modules.apisupport.project.ui.customizer.EditClusterPanel.showAddDialog(EditClusterPanel.java:107)
   at org.netbeans.modules.apisupport.project.ui.customizer.SuiteCustomizerLibraries.addClusterButtonActionPerformed(SuiteCustomizerLibraries.java:712)
   at org.netbeans.modules.apisupport.project.ui.customizer.SuiteCustomizerLibraries.access$1500(SuiteCustomizerLibraries.java:124)
   at org.netbeans.modules.apisupport.project.ui.customizer.SuiteCustomizerLibraries$11.actionPerformed(SuiteCustomizerLibraries.java:619)
   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.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
   at java.awt.Component.processMouseEvent(Component.java:6216)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
   at java.awt.Component.processEvent(Component.java:5981)
   at java.awt.Container.processEvent(Container.java:2041)
   at java.awt.Component.dispatchEventImpl(Component.java:4583)
   at java.awt.Container.dispatchEventImpl(Container.java:2099)
   at java.awt.Component.dispatchEvent(Component.java:4413)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
   at java.awt.Container.dispatchEventImpl(Container.java:2085)
   at java.awt.Window.dispatchEventImpl(Window.java:2475)
   at java.awt.Component.dispatchEvent(Component.java:4413)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
   at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:127)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Jaroslav Tulach 2010-02-12 08:06:18 UTC
core-main#c0f59b1d1df0
Comment 2 Quality Engineering 2010-02-13 21:47:43 UTC
Integrated into 'main-golden', will be available in build *201002140200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c0f59b1d1df0
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #180623: NPE on GTK LaF
Comment 3 Geertjan Wielenga 2010-02-15 05:41:45 UTC
Yes, great, this fix worked for me, enabling this scenario: 
http://eclipse.dzone.com/news/new-cool-tools-osgi-developers
Comment 4 Antonin Nebuzelsky 2010-02-15 06:48:40 UTC
The fix is now in release69_m1

http://hg.netbeans.org/release69_m1/rev/0f4010da5858

Geertjan, can you double check with M1 build tomorrow that it works for you with M1 too. Thanks.
Comment 5 Antonin Nebuzelsky 2010-02-16 04:00:18 UTC
Confirming that today's M1 build (201002152000) does not show the exception for me.