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 47952 - exception occurs when displaying results
Summary: exception occurs when displaying results
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
: 48791 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-25 19:06 UTC by dgreen99
Modified: 2007-02-20 18:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
A screen shot that shows the table cells that did not render correctly due to the exception. (13.08 KB, image/gif)
2004-08-26 16:20 UTC, dgreen99
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dgreen99 2004-08-25 19:06:26 UTC
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)
Comment 1 dgreen99 2004-08-26 00:20:55 UTC
Problem still present in profiler-m1-windows-v2.nbm
Comment 2 dgreen99 2004-08-26 16:18:13 UTC
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)
Comment 3 dgreen99 2004-08-26 16:20:41 UTC
Created attachment 17168 [details]
A screen shot that shows the table cells that did not render correctly due to the exception.
Comment 4 mishadmitriev 2004-09-03 00:52:49 UTC
Problem fixed, the updated code will become available in Milestone 2
release of the Profiler.
Comment 5 mishadmitriev 2004-09-13 21:14:01 UTC
*** Issue 48791 has been marked as a duplicate of this issue. ***
Comment 6 ehucka 2006-10-09 12:10:12 UTC
Verification of old issues.
Comment 7 Alexander Kouznetsov 2007-02-12 22:40:27 UTC
Closing old issues.
Comment 8 Alexander Kouznetsov 2007-02-20 18:34:41 UTC
Reverting to the original Target Milestone value changed by mistake. Sorry for
inconvenience.