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.
java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt (String.java:444) at com.sun.tools.profiler.utils.MethodNameFormatter. <init>(Unknown Source) at com.sun.tools.profiler.ui.FlatProfilePanel$1.getV alueAt(Unknown Source) at javax.swing.JTable.getValueAt (JTable.java:1771) at javax.swing.JTable.prepareRenderer (JTable.java:3724) at javax.swing.plaf.basic.BasicTableUI.paintCell (BasicTableUI.java:1149) at javax.swing.plaf.basic.BasicTableUI.paintCells (BasicTableUI.java:1051) at javax.swing.plaf.basic.BasicTableUI.paint (BasicTableUI.java:974) at javax.swing.plaf.ComponentUI.update (ComponentUI.java:142) at javax.swing.JComponent.paintComponent (JComponent.java:541) at javax.swing.JComponent.paint (JComponent.java:808) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JViewport.paint (JViewport.java:722) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JSplitPane.paintChildren (JSplitPane.java:1021) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JSplitPane.paintChildren (JSplitPane.java:1021) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JSplitPane.paintChildren (JSplitPane.java:1021) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JLayeredPane.paint (JLayeredPane.java:557) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at java.awt.GraphicsCallback$PaintCallback.run (GraphicsCallback.java:21) at sun.awt.SunGraphicsCallback.runOneComponent (SunGraphicsCallback.java:60) at sun.awt.SunGraphicsCallback.runComponents (SunGraphicsCallback.java:97) at java.awt.Container.paint (Container.java:1312) at sun.awt.RepaintArea.paint (RepaintArea.java:177) at sun.awt.windows.WComponentPeer.handleEvent (WComponentPeer.java:260) at java.awt.Component.dispatchEventImpl (Component.java:3678) at java.awt.Container.dispatchEventImpl (Container.java:1627) at java.awt.Window.dispatchEventImpl (Window.java:1606) at java.awt.Component.dispatchEvent (Component.java:3477) [catch] at java.awt.EventQueue.dispatchEvent (EventQueue.java:456) at java.awt.EventDispatchThread.pumpOneEventForHiera rchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarc hy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:137) at java.awt.EventDispatchThread.run (EventDispatchThread.java:100)
Problem still present in profiler-m1-windows-v2.nbm
New stack trace from profiler-m1-windows-v2.nbm that includes line numbers. Note that to cause the exception, the results were displayed and I had to scroll down in the table view. java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:444) at com.sun.tools.profiler.utils.MethodNameFormatter.<init> (MethodNameFormatter.java:84) at com.sun.tools.profiler.ui.FlatProfilePanel$1.getValueAt (FlatProfilePanel.java:122) at javax.swing.JTable.getValueAt(JTable.java:1771) at javax.swing.JTable.prepareRenderer(JTable.java:3724) at javax.swing.plaf.basic.BasicTableUI.paintCell (BasicTableUI.java:1149) at javax.swing.plaf.basic.BasicTableUI.paintCells (BasicTableUI.java:1051) at javax.swing.plaf.basic.BasicTableUI.paint (BasicTableUI.java:974) at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142) at javax.swing.JComponent.paintComponent(JComponent.java:541) at javax.swing.JComponent.paint(JComponent.java:808) at javax.swing.JViewport.blitDoubleBuffered (JViewport.java:1585) at javax.swing.JViewport.windowBlitPaint(JViewport.java:1551) at javax.swing.JViewport.setViewPosition(JViewport.java:1082) at javax.swing.plaf.basic.BasicScrollPaneUI$VSBChangeListener.stateChang ed(BasicScrollPaneUI.java:476) at javax.swing.DefaultBoundedRangeModel.fireStateChanged (DefaultBoundedRangeModel.java:346) at javax.swing.DefaultBoundedRangeModel.setRangeProperties (DefaultBoundedRangeModel.java:283) at javax.swing.DefaultBoundedRangeModel.setValue (DefaultBoundedRangeModel.java:149) at javax.swing.JScrollBar.setValue(JScrollBar.java:435) at javax.swing.plaf.basic.BasicScrollBarUI$TrackListener.setValueFrom (BasicScrollBarUI.java:1050) at javax.swing.plaf.basic.BasicScrollBarUI$TrackListener.mouseDragged (BasicScrollBarUI.java:992) at java.awt.Component.processMouseMotionEvent (Component.java:5148) at javax.swing.JComponent.processMouseMotionEvent (JComponent.java:2779) at java.awt.Component.processEvent(Component.java:4901) at java.awt.Container.processEvent(Container.java:1569) at java.awt.Component.dispatchEventImpl(Component.java:3615) at java.awt.Container.dispatchEventImpl(Container.java:1627) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.LightweightDispatcher.retargetMouseEvent (Container.java:3483) at java.awt.LightweightDispatcher.processMouseEvent (Container.java:3215) at java.awt.LightweightDispatcher.dispatchEvent (Container.java:3128) at java.awt.Container.dispatchEventImpl(Container.java:1613) at java.awt.Window.dispatchEventImpl(Window.java:1606) at java.awt.Component.dispatchEvent(Component.java:3477) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:137) at java.awt.EventDispatchThread.run (EventDispatchThread.java:100)
Created attachment 17168 [details] A screen shot that shows the table cells that did not render correctly due to the exception.
Problem fixed, the updated code will become available in Milestone 2 release of the Profiler.
*** Issue 48791 has been marked as a duplicate of this issue. ***
Verification of old issues.
Closing old issues.
Reverting to the original Target Milestone value changed by mistake. Sorry for inconvenience.