Project: Birt
Bug 108233 NullPointerException is thrown out when opening attached design file.
Reported: 2005-08-28 22:28:29 | Status: closed fixed

Description: NullPointerException is thrown out when opening attached design file. Tested in Eclipse Version 3.1. Steps to reproduce: Open attached design file. Actual result: NullPointerException is thrown out. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) at org.eclipse.swt.SWT.error(SWT.java:2942) at org.eclipse.swt.SWT.error(SWT.java:2865) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:126) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3057) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2716) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:367) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:163) 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.core.launcher.Main.invokeFramework(Main.java:334) at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948) Caused by: java.lang.NullPointerException at org.eclipse.birt.report.data.oda.jdbc.Connection.newQuery (Connection.java:90) at org.eclipse.birt.data.engine.odaconsumer.manager.OdaConnection.newQuery (OdaConnection.java:464) at org.eclipse.birt.data.engine.odaconsumer.Connection.prepareOdaQuery (Connection.java:217) at org.eclipse.birt.data.engine.odaconsumer.Connection.prepareStatement (Connection.java:155) at org.eclipse.birt.data.engine.executor.DataSource.prepareStatement (DataSource.java:187) at org.eclipse.birt.data.engine.executor.DataSourceQuery.prepare (DataSourceQuery.java:290) at org.eclipse.birt.data.engine.impl.PreparedExtendedDSQuery$ExtendedDSQueryExecut or.prepareOdiQuery(PreparedExtendedDSQuery.java:253) at org.eclipse.birt.data.engine.impl.PreparedQuery$Executor.prepareExecution (PreparedQuery.java:493) at org.eclipse.birt.data.engine.impl.PreparedQuery$Executor.access$000 (PreparedQuery.java:382) at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare (PreparedQuery.java:167) at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute (PreparedDataSourceQuery.java:137) at org.eclipse.birt.report.designer.internal.ui.util.DataSetManager.execute (DataSetManager.java:239) at org.eclipse.birt.report.designer.internal.ui.util.DataSetManager.getColumns (DataSetManager.java:191) at org.eclipse.birt.report.designer.internal.ui.util.DataSetManager.getColumns (DataSetManager.java:132) at org.eclipse.birt.report.designer.internal.ui.views.data.providers.DataSetNodePr ovider.getChildren(DataSetNodeProvider.java:95) at org.eclipse.birt.report.designer.internal.ui.views.ViewsTreeProvider.getChildre n(ViewsTreeProvider.java:37) at org.eclipse.birt.report.designer.internal.ui.util.UIUtil.containElement (UIUtil.java:717) at org.eclipse.birt.report.designer.internal.ui.util.UIUtil.containElement (UIUtil.java:720) at org.eclipse.birt.report.designer.internal.ui.util.UIUtil.containElement (UIUtil.java:691) at org.eclipse.birt.report.designer.internal.ui.views.data.DataViewPage.handleSele ctionChange(DataViewPage.java:296) at org.eclipse.birt.report.designer.internal.ui.views.data.DataViewPage.performReq uest(DataViewPage.java:276) at org.eclipse.birt.report.designer.core.util.mediator.ReportMediator.notifyReques t(ReportMediator.java:121) at org.eclipse.birt.report.designer.internal.ui.editors.parts.DeferredGraphicalVie wer$1.run(DeferredGraphicalViewer.java:337) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:123) ... 18 more

Files changed in fix:
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/i18n/ResourceConstants.java