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 100129-908102f49680) VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04 OS: Linux User Comments: dkonecny: I was not connected to internet and clicked on Show Data in exception reported but instead of data exception was thrown. Stacktrace: java.lang.ClassCastException: java.lang.String cannot be cast to org.openide.explorer.view.VisualizerNode at org.openide.explorer.view.NodeRenderer.findVisualizerNode(NodeRenderer.java:232) at org.openide.explorer.view.NodeRenderer.getListCellRendererComponent(NodeRenderer.java:152) at javax.swing.plaf.basic.BasicComboBoxUI.getBaseline(BasicComboBoxUI.java:960) at javax.swing.JComponent.getBaseline(JComponent.java:2520) at javax.swing.GroupLayout$ComponentSpring.getBaseline(GroupLayout.java:3000) at javax.swing.GroupLayout$BaselineGroup.calculateBaselineAndResizeBehavior(GroupLayout.java:2657)
Created attachment 93742 [details] stacktrace
*** Bug 180887 has been marked as a duplicate of this bug. ***
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=164799
Created attachment 94396 [details] stacktrace
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=164799
All the cases seem to come from exception reporter dialogs, Jindra can you find the cause?
Created attachment 94516 [details] stacktrace clicked on view data in report problem dialog
It seems there is a bug in NodeRenderer. The first report is comming form build 100128. The only related change in uihandler module was the change from org.jdesktop.layout to JAVA 6 API . It seems findVisualizerNode is not able to handle String as a value parametter, but BasicComboBoxUI calls getListCellRendererComponent with a String " ". This is the BasicComboBoxUI invocation of getListCellRendererComponent method on NodeRenderer if (value == null) { value = " "; } else if (value instanceof String && "".equals(value)) { value = " "; } Component component = renderer.getListCellRendererComponent(listBox, value, -1, false, false); The problem needs to be fixed NodeRenderer. I'm not sure what it needs as a 'Value' parameter, but it should definitely accept Strings.
I think this is another manifestation of bug #180088. A workaround is to accept " " as a value and just return e.g. VisualizerNode.EMPTY. A better fix, if possible, is to set a prototypeDisplayValue for the list so that " " does not get passed to begin with.
This bug already has 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=164799
core-main#48002215a268
*** Bug 181512 has been marked as a duplicate of this bug. ***