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.
I was working with my NB55 beta2 IDE. I had my project suite along with all projects in there were open. I clicked on profile menu item and got this exception. Each time, I click on profile, I see this. The suite was xm/epsuite from release55 beanch. Here is the exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.substring(String.java:1765) at org.netbeans.modules.profiler.utils.ProjectUtilities.convertPackage2SuiteName(ProjectUtilities.java:652) at org.netbeans.modules.profiler.utils.ProjectUtilities.getTestName(ProjectUtilities.java:636) at org.netbeans.modules.profiler.utils.ProjectUtilities.findUnitTestInTestRoot(ProjectUtilities.java:624) at org.netbeans.modules.profiler.utils.ProjectUtilities.findTestForFile(ProjectUtilities.java:295) at org.netbeans.modules.profiler.actions.AntActions$3.enable(AntActions.java:171) at org.netbeans.modules.profiler.actions.FileSensitiveAction.refresh(FileSensitiveAction.java:40) at org.netbeans.modules.profiler.actions.ProjectSensitiveAction.isEnabled(ProjectSensitiveAction.java:101) at org.openide.awt.Actions$MenuBridge.updateState(Actions.java:787) at org.openide.awt.Actions$MenuItem.synchMenuPresenters(Actions.java:1123) at org.openide.awt.DynaMenuModel.checkSubmenu(DynaMenuModel.java:158) at org.openide.awt.MenuBar$LazyMenu.stateChanged(MenuBar.java:497) at javax.swing.DefaultButtonModel.fireStateChanged(DefaultButtonModel.java:362) at javax.swing.DefaultButtonModel.setSelected(DefaultButtonModel.java:228) at javax.swing.JMenu.setSelected(JMenu.java:280) at javax.swing.JMenu.menuSelectionChanged(JMenu.java:1251) at javax.swing.MenuSelectionManager.setSelectedPath(MenuSelectionManager.java:89) at javax.swing.plaf.basic.BasicMenuUI$Handler.mouseEntered(BasicMenuUI.java:504) at javax.swing.plaf.basic.BasicMenuUI$MouseInputHandler.mouseEntered(BasicMenuUI.java:359) at com.sun.java.swing.plaf.windows.WindowsMenuUI$WindowsMouseInputHandler.mouseEntered(WindowsMenuUI.java:163) at java.awt.Component.processMouseEvent(Component.java:5497) 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.trackMouseEnterExit(Container.java:4017) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3874) 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.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Some more observation, as soon as the selection comes to "Profile Other" then you get this exception.
This is a duplicate of Issue 71473, which has already been fixed in newer builds. Could you please verify it on your configuration with latest NB & Profiler RC build? You can get the bits at http://profiler.netbeans.org/download/55rc.html *** This issue has been marked as a duplicate of 71473 ***
Verified duplicate