Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345147

Summary: Uncatched NullPointerException on "Finish" , New Data Source Wizzard
Product: z_Archived Reporter: Alexis R. <alexis.raptarchis>
Component: BIRTAssignee: Birt-ReportDesigner <Birt-ReportDesigner-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact:
Severity: major    
Priority: P3 CC: alexis.raptarchis, bluesoldier
Version: 2.6.1   
Target Milestone: 3.7.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Alexis R. CLA 2011-05-09 10:32:54 EDT
Hi!


 I am trying to create a new "JDBC Database Connection for Query Builder" with an "Oracle Connection Profile". I enter my connection details and test the connection. The test is positive("Ping succeeded!").

Clicking on the "Finish" button has no visual effect. In the eclipse log file I find the following exception:

!ENTRY org.eclipse.ui 4 0 2011-05-09 16:30:55.093
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
	at oracle.eclipse.tools.database.ui.wizards.OracleNewConnectionProfileWizard.setInitialSchemaFilter(OracleNewConnectionProfileWizard.java:37)
	at oracle.eclipse.tools.database.ui.wizards.OracleNewConnectionProfileWizard.performFinish(OracleNewConnectionProfileWizard.java:29)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:811)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
	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:4066)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
	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:4066)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
	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:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Comment 1 Xiaoying Gu CLA 2011-05-13 04:39:22 EDT
I can not reproduce this issue with the 2.5.1 release build.
Data source can be created successfully by "JDBC Database Connection for Query Builder" with an "Oracle Connection Profile". 

Test connection and Finish button both works fine.

According to the error log, the error was thrown out by oracle.eclipse.tools.database.* class, which is not a eclipse.org project?
Comment 2 Xiaoying Gu CLA 2011-05-13 04:39:59 EDT
(In reply to comment #1)
> I can not reproduce this issue with the 2.5.1 release build.
> Data source can be created successfully by "JDBC Database Connection for Query
> Builder" with an "Oracle Connection Profile". 
> 
> Test connection and Finish button both works fine.
> 
> According to the error log, the error was thrown out by
> oracle.eclipse.tools.database.* class, which is not a eclipse.org project?

correction: I tried with the 2.6.1 release build.
Comment 3 Xiaoying Gu CLA 2011-05-15 23:15:41 EDT
Set as NOT_ECLIPSE since the error was not thrown out by the eclipse project according to the error trace.
And i can not reproduce it with BIRT all-in-one build.