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.
Build: NetBeans IDE Dev (Build 100201-3fc727840087) VM: Java HotSpot(TM) 64-Bit Server VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b06 OS: Linux User Comments: jsedek: just invoked Create a Job in Team main menu Stacktrace: java.lang.ClassCastException: java.lang.String cannot be cast to org.netbeans.modules.hudson.api.HudsonInstance at org.netbeans.modules.hudson.ui.actions.CreateJobPanel$ServerRenderer.getListCellRendererComponent(CreateJobPanel.java:424) at javax.swing.plaf.basic.BasicComboBoxUI.getBaseline(BasicComboBoxUI.java:960) at javax.swing.JComponent.getBaseline(JComponent.java:2532) at javax.swing.GroupLayout$ComponentSpring.getBaseline(GroupLayout.java:3000) at javax.swing.GroupLayout$BaselineGroup.calculateBaselineAndResizeBehavior(GroupLayout.java:2657) at javax.swing.GroupLayout$BaselineGroup.calculateSize(GroupLayout.java:2633)
Created attachment 93718 [details] stacktrace
Works for me, and I can't see how it could happen; the combo box only ever holds HudsonInstance instances in its model. Are you using some unusual Swing L&F perhaps? Added some diagnostics: core-main #5307494caa17
I can easily reproduce, just start IDE with fresh userdir and invoke Team/Create Build Job...
Reproducible iff you have no servers registered and/or no projects opened. Seems to be a bug in BasicComboBoxUI.getBaseline triggered by the use of GroupLayout and could affect any list or combo box with a custom renderer which might sometimes display an empty list. I will file a Swing bug soon. core-main #60071995e98b
Integrated into 'main-golden', will be available in build *201002040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/60071995e98b User: Jesse Glick <jglick@netbeans.org> Log: #180088: CCE finding baselines for empty combo boxes.
verified NetBeans IDE Dev (Build 201002050200)
Integrated into 'main-golden', will be available in build *201005260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a0acad65f793 User: Jesse Glick <jglick@netbeans.org> Log: More workarounds for JDK CCE mentioned in #180088.