Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369865 - IndexOutOfBoundsException while adding JDBC Data Source
Summary: IndexOutOfBoundsException while adding JDBC Data Source
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 4.2.0   Edit
Assignee: Birt-Data-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-26 15:51 EST by Rob LaPrelle CLA
Modified: 2012-07-12 01:25 EDT (History)
2 users (show)

See Also:


Attachments
screenshot of the page where I receive the error (37.24 KB, image/pjpeg)
2012-02-01 09:28 EST, Rob LaPrelle CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rob LaPrelle CLA 2012-01-26 15:51:51 EST
Build Identifier: eclipse.buildId=M20110909-1335

Cannot create a JDBC Data Source and getting the following exception (environment info at bottom):

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.rangeCheck(Unknown Source)
	at java.util.ArrayList.get(Unknown Source)
	at org.eclipse.birt.report.data.oda.jdbc.ui.util.JdbcToolKit.getJdbcDriversFromODADir(JdbcToolKit.java:109)
	at org.eclipse.birt.report.data.oda.jdbc.ui.profile.JDBCSelectionPageHelper.createCustomControl(JDBCSelectionPageHelper.java:140)
	at org.eclipse.birt.report.data.oda.jdbc.ui.profile.JDBCSelectionWizardPage.createPageCustomControl(JDBCSelectionWizardPage.java:54)
	at org.eclipse.datatools.connectivity.oda.design.ui.wizards.DataSourceWizardPage.createCustomControl(DataSourceWizardPage.java:131)
	at org.eclipse.datatools.connectivity.ui.wizards.ConnectionProfileDetailsPage.createControl(ConnectionProfileDetailsPage.java:105)
	at org.eclipse.datatools.connectivity.oda.design.internal.ui.DataSourceWizardPageCore.createControl(DataSourceWizardPageCore.java:226)
	at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:174)
	at org.eclipse.datatools.connectivity.ui.wizards.NewConnectionProfileWizard.createPageControls(NewConnectionProfileWizard.java:309)
	at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:736)
	at org.eclipse.jface.wizard.WizardDialog.setWizard(WizardDialog.java:1183)
	at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1242)
	at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1239)
	at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1228)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1226)
	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:915)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:428)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.birt.report.designer.data.ui.actions.NewDataSourceAction.run(NewDataSourceAction.java:126)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

eclipse.buildId=M20110909-1335
java.version=1.7.0_01
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product -clean

Reproducible: Always

Steps to Reproduce:
1.In 'Data Exporer'
2.Right-click 'Data Sources'
3.Select 'New Data Source'
4.Select 'JDBC Data Source'
5.Enter Data Source Name
6.Click 'Next >'
Comment 1 Xiaoying Gu CLA 2012-01-30 01:48:31 EST
Which BIRT version were you using?
Comment 2 Rob LaPrelle CLA 2012-01-30 08:36:26 EST
(In reply to comment #1)
> Which BIRT version were you using?

Version: 3.7.1.v20110905-BDF9E8OGTzuHfoz-Au7-CWvXDn6N
Build id: v20110905-1820
Comment 3 Xiaoying Gu CLA 2012-01-31 22:33:58 EST
(In reply to comment #2)
> (In reply to comment #1)
> > Which BIRT version were you using?
> 
> Version: 3.7.1.v20110905-BDF9E8OGTzuHfoz-Au7-CWvXDn6N
> Build id: v20110905-1820

Would you please attach a screenshot of the 'New JDBC Data Source' dialog with the info that you entered?
Since the next button in my test is always disabled.
Comment 4 Rob LaPrelle CLA 2012-02-01 09:28:23 EST
Created attachment 210370 [details]
screenshot of the page where I receive the error

When I hit next on this page, nothing happens except the exception that I reported showing up in the stack trace.
Comment 5 Xiaoying Gu CLA 2012-02-02 01:07:16 EST
(In reply to comment #4)
> Created attachment 210370 [details]
> screenshot of the page where I receive the error
> 
> When I hit next on this page, nothing happens except the exception that I
> reported showing up in the stack trace.

I tried with Indigo SR1 reporting package and can not reproduce this problem.
How did you get BIRT installed?
From the icon in the screenshot, you were using the JEE package? Did you installed BIRT from update site and which feature did you choose to installed?
Comment 6 Rob LaPrelle CLA 2012-02-02 08:32:12 EST
As you say, I used the Java EE package of Eclipse Indigo as my base. I installed BIRT from the Indigo Update Site (download.eclipse.org/releases/indigo). I installed 'BIRT Framework', 'Eclipse BIRT Documentation', 'Eclipse BIRT Example', and 'Eclipse BIRT Source Feature'.

> I tried with Indigo SR1 reporting package and can not reproduce this problem.
> How did you get BIRT installed?
> From the icon in the screenshot, you were using the JEE package? Did you
> installed BIRT from update site and which feature did you choose to installed?
Comment 7 Xiaoying Gu CLA 2012-07-12 01:24:51 EDT
Can not reproduce this issue with the latest Juno JEE package + Installing BIRT features via Juno Repo + JDK 7 + Windows 7.