Bug 12709 - Index out of bounds using Launch Configurations browser
Summary: Index out of bounds using Launch Configurations browser
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: 2.0 M5   Edit
Assignee: Dejan Glozic CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-03 14:09 EST by Tod Creasey CLA
Modified: 2002-05-16 04:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2002-04-03 14:09:11 EST
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)
Comment 1 Tod Creasey CLA 2002-04-03 14:25:28 EST
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.
Comment 2 Joe Szurszewski CLA 2002-04-03 16:21:04 EST
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.
Comment 3 Dejan Glozic CLA 2002-04-03 16:28:21 EST
This code belongs to JDT team.
Comment 4 Erich Gamma CLA 2002-04-11 18:14:14 EDT
moving to PDE UI
Comment 5 Dejan Glozic CLA 2002-04-11 18:18:54 EDT
Erich, why are you moving it here when it is in the JUnit launcher?
Comment 6 Erich Gamma CLA 2002-04-12 03:42:15 EDT
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?
Comment 7 Tod Creasey CLA 2002-04-12 07:31:13 EDT
No I was using the previous version of the JUnit plugin (0321).

Comment 8 Erich Gamma CLA 2002-05-16 04:17:08 EDT
obsolete - closing