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 66052 - StringIndexOutOfBoundsException thrown by Specify Root Methods UI
Summary: StringIndexOutOfBoundsException thrown by Specify Root Methods UI
Status: CLOSED DUPLICATE of bug 65999
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: Sun Solaris
: P4 blocker (vote)
Assignee: iformanek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-05 20:35 UTC by mullan
Modified: 2007-02-20 18:08 UTC (History)
0 users

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 mullan 2005-10-05 20:35:09 UTC
To reproduce:

Profile part of application:

- Select "add Manual"

- Enter the following:

Class Name: junit.framework.TestCase
Method Name: runTest
Method VM Signature: ()

java.lang.StringIndexOutOfBoundsException: String index out of range: 0
	at java.lang.String.charAt(String.java:558)
	at
com.sun.tools.profiler.utils.MethodNameFormatter.<init>(MethodNameFormatter.java:87)
	at
org.netbeans.modules.profiler.ui.panels.RootMethodsPanel.actionPerformed(RootMethodsPanel.java:231)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
	at java.awt.Dialog$1.run(Dialog.java:515)
	at java.awt.Dialog.show(Dialog.java:536)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:800)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:843)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:831)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1146)
	at org.openide.util.Mutex.readAccess(Mutex.java:183)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:816)
	at java.awt.Component.show(Component.java:1300)
	at java.awt.Component.setVisible(Component.java:1253)
	at
org.netbeans.modules.profiler.ui.panels.RootMethodsPanel.performDisplay(RootMethodsPanel.java:72)
	at
org.netbeans.modules.profiler.ui.panels.RootMethodsPanel.getSelectedRootMethods(RootMethodsPanel.java:61)
	at
org.netbeans.modules.profiler.ui.panels.CpuPerformanceConfigPanelLarge.actionPerformed(CpuPerformanceConfigPanelLarge.java:499)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
	at java.awt.Dialog$1.run(Dialog.java:515)
	at java.awt.Dialog.show(Dialog.java:536)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:800)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:843)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:831)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1146)
	at org.openide.util.Mutex.readAccess(Mutex.java:183)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:816)
	at java.awt.Component.show(Component.java:1300)
	at java.awt.Component.setVisible(Component.java:1253)
	at
org.netbeans.modules.profiler.actions.ProfilingSupport.selectTaskForProfiling(ProfilingSupport.java:163)
	at
org.netbeans.modules.profiler.actions.AntActions.doProfileProject(AntActions.java:282)
	at org.netbeans.modules.profiler.actions.AntActions.access$100(AntActions.java:50)
	at org.netbeans.modules.profiler.actions.AntActions$6.perform(AntActions.java:213)
	at
org.netbeans.modules.project.ui.actions.MainProjectAction.actionPerformed(MainProjectAction.java:98)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
	at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 iformanek 2005-10-06 09:33:01 UTC
The problem is in validation of data entered into the signature field.
The signature should be ()V, not () - a vm signature is needed. The 
dialogdefinitely needs to be improved to be more usable by humans.

This issue has already been logged as issue 65999, closing this one as 
duplicate.

*** This issue has been marked as a duplicate of 65999 ***
Comment 2 mullan 2005-10-06 14:37:11 UTC
Another related issue with this bug which makes it more serious in my opinion
is that NetBeans caches the StringIndexOutOfBoundsException, in other words I
could not clear the information from the GUI. Each time I tried to re-enter
a different method name, it popped up the StringIndexOutOfBoundsException.

Is there a way to clear the cache short of reinstalling NB?
Comment 3 iformanek 2005-10-06 17:15:36 UTC
The errors are not cached by the IDE, what you see are new errors. It is likely 
that the method is added to the list, and each time it tries to render it, it 
fires the exception.
Comment 4 ehucka 2006-10-09 12:08:29 UTC
Verification of old issues.
Comment 5 Alexander Kouznetsov 2007-02-20 10:13:41 UTC
Closing old issues
Comment 6 Alexander Kouznetsov 2007-02-20 18:08:11 UTC
Reverting to original Target Milestone value changed by mistake. Sorry for
inconvenience.