Community
Participate
Working Groups
Build 20020402 A IndexOutOfBounds will occur when following these steps 1)Added the org.eclipse.pde.junit project to my plugins directory 2) Restarted Eclipse 3) Selected Run-> Launch Configurations 4) Select JUnitTestPlugins 5) Selected new - named and saved it 6) Reopened the Run -> Launch Configurations and selected my configuration 7) Selected Run 8) Index out of bounds java.lang.IllegalArgumentException: Index out of bounds at org.eclipse.swt.SWT.error(SWT.java:1873) at org.eclipse.swt.SWT.error(SWT.java:1819) at org.eclipse.swt.widgets.Widget.error(Widget.java:368) at org.eclipse.swt.widgets.TabFolder.getItem(TabFolder.java:334) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.sav eUIState(LaunchConfigurationDialog.java:1937) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.abo utToStart(LaunchConfigurationDialog.java:1877) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.run (LaunchConfigurationDialog.java:1834) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.lau nchWithProgress(LaunchConfigurationDialog.java:1800) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.doL aunch(LaunchConfigurationDialog.java:1761) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.han dleLaunchPressed(LaunchConfigurationDialog.java:1721) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.dou bleClick(LaunchConfigurationDialog.java:2260) at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick (StructuredViewer.java:272) at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect (StructuredViewer.java:416) at org.eclipse.jface.viewers.AbstractTreeViewer$1.widgetDefaultSelected (AbstractTreeViewer.java:627) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:92) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.ope n(LaunchConfigurationDialog.java:413) at org.eclipse.debug.internal.ui.actions.OpenLaunchConfigurationsAction.run (OpenLaunchConfigurationsAction.java:129) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:755) at org.eclipse.ui.internal.Workbench.run(Workbench.java:738) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)
This is actually even more serious - you cannot run a JUnit Test Plug Ins configuration at all as the dialog for the Launch configurations is not populated when you create a new JUnit Test Plugin. Also there need to be an OK button as well as a run or cancel - you might just change preferences when you use this dialog and not want to run.
Under 20020402++, I cannot even hit 'New' in the given steps without getting an error, 'Plug-in org.eclipse.pde.junit was unable to load class org.eclipse.pde.internal.junit.launcher.JUnitPdeTabGroup'. I suspect that some problem with the tab group or its tabs was also responsible for the problem Tod saw. Re-assigning to PDE.
This code belongs to JDT team.
moving to PDE UI
Erich, why are you moving it here when it is in the JUnit launcher?
adopting back (apologies my bug reading misbehaviour of yesterday was to not scroll down deep enough in bug reports, this optimization helped me to digest 100 bugs in 2 hours...). Regarding Joe's problem. You have to download a newer version of org.eclipse.pde.junit from the UI component page. You problem looks like you are running a version that was coded against the old launcher API. There is a version for 0409 Toad which version of the org.eclipse.pde.junit plugin are you using, was it the one for 0409?
No I was using the previous version of the JUnit plugin (0321).
obsolete - closing