Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 163732 - [regression] TPTP reports can not be generated using XML datasource
Summary: [regression] TPTP reports can not be generated using XML datasource
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.2.0   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: 2.2.0 M2   Edit
Assignee: Mingxia Wu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-07 18:49 EST by Sheldon Lee-Loy CLA
Modified: 2007-06-28 15:03 EDT (History)
1 user (show)

See Also:


Attachments
Shows the report icon screen shot (16.14 KB, image/gif)
2006-11-14 14:12 EST, Sheldon Lee-Loy CLA
no flags Details
Shows the New Report wizard screen shot (35.50 KB, image/gif)
2006-11-14 14:12 EST, Sheldon Lee-Loy CLA
no flags Details
Workspace that contains the log file to generate the report on. (35.52 KB, application/octet-stream)
2006-11-14 14:13 EST, Sheldon Lee-Loy CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sheldon Lee-Loy CLA 2006-11-07 18:49:15 EST
I get a DataException when trying to generate a report that is bindeded to an xml stream.  I tried the following BIRT driver: 2.2.0-N20061106.  This is a blocker for TPTP since all BIRT reports cannot be generated.

The tptp reports are generated within an ecilpse tool that generates a XML stream.  This XML stream is passed to the report via a context map as shown in the following code snippet.


		HashMap contextMap = new HashMap();
		contextMap.put(EngineConstants.APPCONTEXT_HTML_RENDER_CONTEXT,
				renderContext);
		contextMap.put(Constants.APPCONTEXT_INPUTSTREAM , xmlInput);
		contextMap.put(Constants.APPCONTEXT_CLOSEINPUTSTREAM , "true");

		IReportRunnable report = null;
		try {
			
			report = engine.openReportDesign(templateFile);
			report.getDesignHandle().getModule().getSession().setResourceLocator(resourceLocator);
		} catch (EngineException e) {
			engine.destroy();
			throw e;
		}

		IRunAndRenderTask task = engine.createRunAndRenderTask(report);
		task.setAppContext(contextMap);


The above code worked in 2.1.1.  It seems something has changed.  I should also mention that the template files do refer to a xml file on my d drive.  However I was under the impression that if I specify a XML stream at runtime this XML stream would be first considered as the datasource before BIRT tries to open up the file specified in the report template.

I get the following error.

+ Cannot open the connection for the driver: org.eclipse.datatools.enablement.oda.xml
unknown protocol: d 
odaconsumer.CannotOpenConnection ( 2 time(s) )
detail : org.eclipse.birt.data.engine.core.DataException: Cannot open the connection for the driver: org.eclipse.datatools.enablement.oda.xmlunknown protocol: d at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:148) at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSource.java:133) at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java:121) at org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiDataSource(DataSourceRuntime.java:206) at org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSource(QueryExecutor.java:257) at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:202) at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:396) at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:145) at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute(PreparedOdaDSQuery.java:134) at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:125) at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:120) at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:146) at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1647) at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:62) at org.eclipse.birt.report.engine.executor.ExtendedItemExecutor.execute(ExtendedItemExecutor.java:79) at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:35) at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutChildren(HTMLBlockStackingLM.java:63) at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:171) at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:94) at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutChildren(HTMLInlineStackingLM.java:138) at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:171) at org.eclipse.birt.report.engine.layout.html.HTMLRowLM.layout(HTMLRowLM.java:33) at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutChildren(HTMLBlockStackingLM.java:68) at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:74) at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:171) at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layoutChildren(HTMLPageLM.java:139) at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:81) at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:80) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:225) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:147) at org.eclipse.tptp.platform.report.birt.core.provisional.BIRTReportGenerator.generateHTMLReportFragment(BIRTReportGenerator.java:248) at org.eclipse.tptp.platform.report.birt.core.provisional.BIRTReportGenerator.generateHTMLReport(BIRTReportGenerator.java:154) at org.eclipse.tptp.platform.report.birt.core.internal.impl.ReportElementImpl.generate(ReportElementImpl.java:194) at org.eclipse.tptp.monitoring.log.provisional.export.BIRTExportHandler.exportLog(BIRTExportHandler.java:84) at org.eclipse.tptp.monitoring.log.provisional.export.AbstractExportHandler.exportLog(AbstractExportHandler.java:41) at org.eclipse.tptp.monitoring.report.birt.ui.internal.BIRTLogReportWizard.export(BIRTLogReportWizard.java:242) at org.eclipse.tptp.monitoring.report.birt.ui.internal.BIRTLogReportWizard.generate(BIRTLogReportWizard.java:191) at org.eclipse.hyades.ui.internal.wizard.HyadesReportWizard$FinishOperation.execute(HyadesReportWizard.java:187) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:101) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:851) at org.eclipse.hyades.ui.internal.wizard.HyadesReportWizard.performFinish(HyadesReportWizard.java:141) at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:684) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:355) at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.eclipse.hyades.trace.ui.internal.actions.OpenTraceReportAction.run(OpenTraceReportAction.java:57) at org.eclipse.jface.action.Action.runWithEvent(Action.java:499) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488) at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)Caused by: org.eclipse.datatools.connectivity.oda.OdaException: unknown protocol: d at org.eclipse.datatools.enablement.oda.xml.util.XMLDataInputStreamCreator.<init>(XMLDataInputStreamCreator.java:154) at org.eclipse.datatools.enablement.oda.xml.util.XMLDataInputStreamCreator.getCreator(XMLDataInputStreamCreator.java:48) at org.eclipse.datatools.enablement.oda.xml.impl.Connection.open(Connection.java:56) at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaConnection.open(OdaConnection.java:235) at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:136) ... 81 more
Comment 1 Lin Zhu CLA 2006-11-07 21:14:24 EST
The bug is caused by the migration of BIRT xml driver to DTP xml driver. The legacy code which use constants defined in BIRT xml driver would break. I've made the report context constants defined in BIRT xml driver and DTP xml driver consistent to solve the problem.
Comment 2 Sheldon Lee-Loy CLA 2006-11-08 10:15:48 EST
Downgrading severity since this is not a blocking bug for TPTP.
Comment 3 Sheldon Lee-Loy CLA 2006-11-10 15:42:29 EST
Now I get the following exception:

- Cannot process the org.eclipse.datatools.enablement.oda.xml driver's configurations.
org.eclipse.datatools.enablement.oda.xml 
odaconsumer.CannotProcessDriverConfig ( 1 time(s) )
detail : org.eclipse.birt.data.engine.core.DataException: Cannot process the org.eclipse.datatools.enablement.oda.xml driver's configurations.org.eclipse.datatools.enablement.oda.xml at org.eclipse.birt.data.engine.odaconsumer.Driver.throwConfigException(Driver.java:272) at org.eclipse.birt.data.engine.odaconsumer.Driver.doGetDriverManifest(Driver.java:251) at org.eclipse.birt.data.engine.odaconsumer.Driver.findDataSourceExtensionConfig(Driver.java:189) at org.eclipse.birt.data.engine.odaconsumer.Driver.getDriverExtensionConfig(Driver.java:92) at org.eclipse.birt.data.engine.odaconsumer.Driver.getExtensionConfig(Driver.java:71) at org.eclipse.birt.data.engine.odaconsumer.Driver.getDriverHelper(Driver.java:107) at org.eclipse.birt.data.engine.odaconsumer.DriverManager.getDriverHelper(DriverManager.java:86) at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:129) at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSource.java:129) at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java:117) at org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiDataSource(DataSourceRuntime.java:206) at org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSource(QueryExecutor.java:248) at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:202) at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:397) at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:147) at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute(PreparedOdaDSQuery.java:135) at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:127) at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:120) at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:146) at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1647) at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:62) at org.eclipse.birt.report.engine.executor.GridItemExecutor.execute(GridItemExecutor.java:66) at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:35) at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutChildren(HTMLBlockStackingLM.java:63) at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:159) at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:94) at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutChildren(HTMLInlineStackingLM.java:138) at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:159) at org.eclipse.birt.report.engine.layout.html.HTMLRowLM.layout(HTMLRowLM.java:30) at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutChildren(HTMLBlockStackingLM.java:68) at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:74) at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:159) at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layoutChildren(HTMLPageLM.java:139) at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:81) at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:80) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:214) at org.eclipse.tptp.platform.report.birt.core.provisional.BIRTReportGenerator.generateHTMLReportFragment(BIRTReportGenerator.java:248) at org.eclipse.tptp.platform.report.birt.core.provisional.BIRTReportGenerator.generateHTMLReport(BIRTReportGenerator.java:154) at org.eclipse.tptp.test.report.birt.internal.TabularTPFTestSuiteReportElement.generate(TabularTPFTestSuiteReportElement.java:147) at org.eclipse.tptp.platform.report.birt.ui.internal.BIRTReportsWizard.generate(BIRTReportsWizard.java:60) at org.eclipse.hyades.test.ui.internal.wizard.ReportWizard$FinishOperation.execute(ReportWizard.java:191) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:101) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:851) at org.eclipse.hyades.test.ui.internal.wizard.ReportWizard.performFinish(ReportWizard.java:146) at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:684) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:355) at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.eclipse.hyades.test.ui.internal.navigator.action.OpenReportAction.run(OpenReportAction.java:49) at org.eclipse.jface.action.Action.runWithEvent(Action.java:499) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)Caused by: java.lang.IllegalArgumentException: org.eclipse.datatools.enablement.oda.xml at org.eclipse.birt.data.engine.odaconsumer.Driver.doGetDriverManifest(Driver.java:237) ... 83 more
Comment 4 Sheldon Lee-Loy CLA 2006-11-10 15:52:07 EST
I used driver report-framework-2.2.0-N20061110.zip
Comment 5 Lin Zhu CLA 2006-11-11 01:43:31 EST
Hi Sheldon,

Can you double check the version of BIRT you used? I've checked the latest BIRT code & the classes in report-framework-2.2.0-N20061110.zip. It looks as if the exception is thrown by legacy BIRT code. In latest code the odaconsumer.Driver class only have 230 lines. And When I review a two-month early version of that class, the line numbers reported in Exception trace perfectly match.

Thanks.
Lin
Comment 6 Lin Zhu CLA 2006-11-13 22:29:51 EST
Hi Sheldon,

Any updating for the issue?

Thanks.
Lin
Comment 7 Sheldon Lee-Loy CLA 2006-11-14 14:11:08 EST
I did a clean installation with a new workspace.  I tried BIRT build 2.2.0-N20061114 and I still get the following exception.

Chart NewChart: 
+ Cannot open the connection for the driver: org.eclipse.datatools.enablement.oda.xml
unknown protocol: d 


To reproduce this problem you can download the following drivers.

TPTP 4.3
http://www.eclipse.org/downloads/download.php?file=/tptp/4.3.0/dev/TPTP-4.3.0-200611140100/tptp.runtime-TPTP-4.3.0-200611140100.zip

EMF 2.2.1
http://download.eclipse.org/tools/emf/downloads/drops/2.2.1/R200609210005/emf-sdo-xsd-SDK-2.2.1.zip

Eclipse 3.2.1
http://download.eclipse.org/downloads/drops/R-3.2.1-200609210945

GEF 3.2.1
http://download.eclipse.org/tools/gef/downloads/drops/R-3.2.1-200609211617/GEF-runtime-3.2.1.zip

Equinox 3.2.1
http://download.eclipse.org/eclipse/equinox/drops/R-3.2.1-200609210945/eclipse-equinox-3.2.1.zip

Then open the workspace that I will attach to this bug.

Open the "Profiling and Logging" Perspective

Double Click the "Microsoft Windows Application log Microsoft Windows Application log" element in the log navigator to show the events in the log view.

Then click the report icon as showin the reporticon.gif screenshot that I've attached to this bug.

In the "New Report" Wizard click the "HTML Top 10 Report by Event Severity (BIRT)" as shown in the newreportwizard.gif screenshot that I've attached to this bug.

After specify the file that will contain the report and click finish.
Comment 8 Sheldon Lee-Loy CLA 2006-11-14 14:12:21 EST
Created attachment 53848 [details]
Shows the report icon screen shot
Comment 9 Sheldon Lee-Loy CLA 2006-11-14 14:12:45 EST
Created attachment 53849 [details]
Shows the New Report wizard screen shot
Comment 10 Sheldon Lee-Loy CLA 2006-11-14 14:13:22 EST
Created attachment 53850 [details]
Workspace that contains the log file to generate the report on.
Comment 11 Mingxia Wu CLA 2006-11-15 04:29:53 EST
The  "org.eclipse.birt.report.data.oda.xml.inputStream" and "org.eclipse.birt.report.data.oda.xml.closeInputStream" key were changed since upgrading to org.eclipse.datatools.enablement.oda.xml. Done the backward compatibility to support original Birt ODA XML Driver.Fix it now!
Comment 12 Sheldon Lee-Loy CLA 2006-11-15 15:37:35 EST
What is the fix?  Do I use another constant other than

Constants.APPCONTEXT_INPUTSTREAM
Constants.APPCONTEXT_CLOSEINPUTSTREAM 

Why can't this bug be fixed?  This is a regression bug that breaks compatibilibty between 2.1.1 and 2.2.  From my point of view I don't see why I have to change my code if I want to upgrade to a point release.

Why can't the contants in org.eclipse.birt.report.data.oda.xml.Constant change to the correct string?

This is my suggested fix.

public static final String APPCONTEXT_INPUTSTREAM = DTPConstant.APPCONTEXT_INPUTSTREAM;
public static final String APPCONTEXT_CLOSEINPUTSTREAM = DTPConstant.APPCONTEXT_CLOSEINPUTSTREAM ;

Note: I do not know what the DTPConstant string is.  The above code snippet is an example.
Comment 13 Gary Xue CLA 2006-11-15 16:03:51 EST
Sheldon- there is a bit of miscommunication. Mingxia meant to say that this bug has been FIXED now. The fix should be available in the latest BIRT 2.2 nightly build. 
Comment 14 Sheldon Lee-Loy CLA 2006-11-15 16:57:55 EST
Okay I'll wait for the nightly build to verify.  However I checked out the org.eclipse.birt.report.data.oda.xml from head and I still get the problem.  

I noticed that org.eclipse.birt.report.data.oda.xml.Constant was changed on 11/07/2006.  

However since I'm not sure what was fixed I'll have to wait for tonight's nightly build.
Comment 15 Sheldon Lee-Loy CLA 2006-11-16 13:54:08 EST
Okay I did a clean install again with the drivers mentioned in comment #7 and I used birt-report-framework-2.2.0-N20061115.zip.

I still get this problem.
Comment 16 Lin Zhu CLA 2006-11-16 20:15:14 EST
Hi Sheldon,

Sorry for mis-communication. Actually we fixed bug in 15th so the code will go to nightly build of 16th or later.I've checked the framework build and verify this.In the package you download the bug still has not been fixed. If you try 16th build you can find everything works now.

BTW, if you do not want to wait for a downloading of nightly build, you can simply download package org.eclipse.datatools.enablement.oda.xml from datatools project and then replace its counterpart in BIRT plugin directory.This could also fix the problem.

The BIRT oda xml driver has been deprecated and we suggest you use DTP oda xml driver in your application. Of course we will keep the backward compability to the BIRT oda xml driver.

Thanks.
Lin
Comment 17 Sheldon Lee-Loy CLA 2007-06-28 15:03:13 EDT
Closing bugs.