Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370452 - Can't open files in a project that's under Jazz RTC source control
Summary: Can't open files in a project that's under Jazz RTC source control
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7.2   Edit
Assignee: Zhiqiang Qian CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-02 10:25 EST by Andy Stevens CLA
Modified: 2012-08-16 13:35 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Stevens CLA 2012-02-02 10:25:57 EST
Build Identifier: Version: 2.6.2.v201102241419 Build id: v20110118-0205

Using RAD 8.0.2, with the Rational Team Concert 3.0.0.v20110308_0258 plugins installed, if I try to create a new report in a report project that's shared under Jazz source control I get a Warning dialog "The opening design file is not a valid design file or the file does not exist."  The design opens, but only on the XML Source tab, and trying to change to any of the others displays the Error dialog "Error in XML Source Page must be corrected before other pages can be used."  There isn't actually anything wrong with the report file, as diff'ing after doing the same with a project that wasn't shared in Jazz showed them to be completely identical apart from the project name in .project, and the report in the un-shared project doesn't have this problem.
It makes no difference which report template is used, and opening existing .rptdesign files gives the same messages.

Examination of the .log file showed that when the project is under source control an exception is being thrown e.g.
File not found:C:\2\RTCWorkspaces\RTC Maintenance\RTC Reports\new_report_2.rptdesign (The system cannot find the path specified.)
which isn't unexpected as the path is incorrect, the file is actually at C:\RTCWorkspaces\RTC Maintenance\RTC Reports\new_report_2.rptdesign (no \2)

I believe this is related to the Location URI, which is
sourcecontrol://jazz/C:/2/RTCWorkspaces/RTC%20Maintenance/RTC%20Reports/new_report_2.rptdesign?file:/C:/RTCWorkspaces/RTC%2520Maintenance/RTC%2520Reports/new_report_2.rptdesign
The bit after sourcecontrol: includes the /2/, while the part after the ?file: doesn't...  My guess is the editor isn't resolving the URI to the correct file location for some reason.

I installed BIRT v2.5.2 into the standalone RTC 3.0.0 client (so same RTC version), and it works okay.  So it looks like the problem has been introduced some time between 2.5.2 and 2.6.2

Stack Trace:

org.eclipse.birt.report.designer.core.runtime.GUIException: File not found:C:\2\RTCWorkspaces\RTC Maintenance\RTC Reports\new_report_1.rptdesign (The system cannot find the path specified.)
	at org.eclipse.birt.report.designer.core.runtime.GUIException.createGUIException(Unknown Source)
	at org.eclipse.birt.report.designer.internal.ui.util.ExceptionHandler.handle(Unknown Source)
	at org.eclipse.birt.report.designer.internal.ui.ide.adapters.IDEFileReportProvider.getReportModuleHandle(Unknown Source)
	at org.eclipse.birt.report.designer.internal.ui.ide.adapters.IDEFileReportProvider.getReportModuleHandle(Unknown Source)
	at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.addPages(Unknown Source)
	at org.eclipse.birt.report.designer.ui.editors.IDEMultiPageReportEditor.addPages(Unknown Source)
	at org.eclipse.ui.forms.editor.FormEditor.createPages(Unknown Source)
	at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Unknown Source)
	at org.eclipse.birt.report.designer.ui.editors.ReportEditorProxy.createPartControl(Unknown Source)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(Unknown Source)
	at org.eclipse.ui.internal.EditorReference.createPart(Unknown Source)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Unknown Source)
	at org.eclipse.ui.internal.EditorReference.getEditor(Unknown Source)
...
Caused by: java.io.FileNotFoundException: C:\2\RTCWorkspaces\RTC Maintenance\RTC Reports\new_report_1.rptdesign (The system cannot find the path specified.)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(Unknown Source)
	... 70 more



Reproducible: Always

Steps to Reproduce:
1. Create new report project
2. Share using the Jazz RTC team provider
3. Create new report in the shared project
Comment 1 Andy Stevens CLA 2012-02-06 08:00:30 EST
I've now tested this with the BIRT 3.7.1.v20110905 download and RTC 3.0.2.v20111006_1909 plugin, and the problem still occurs.

Full stack trace:

!ENTRY org.eclipse.birt.report.designer.ui 4 1001 2012-02-06 12:50:38.679
!MESSAGE File not found:C:\2\RTCWorkspaces\TestWorkspace\testproject\new_report.rptdesign (The system cannot find the path specified)
!STACK 0
org.eclipse.birt.report.designer.core.runtime.GUIException: File not found:C:\2\RTCWorkspaces\TestWorkspace\testproject\new_report.rptdesign (The system cannot find the path specified)
	at org.eclipse.birt.report.designer.core.runtime.GUIException.createGUIException(GUIException.java:78)
	at org.eclipse.birt.report.designer.internal.ui.util.ExceptionHandler.handle(ExceptionHandler.java:116)
	at org.eclipse.birt.report.designer.internal.ui.ide.adapters.IDEFileReportProvider.getReportModuleHandle(IDEFileReportProvider.java:516)
	at org.eclipse.birt.report.designer.internal.ui.ide.adapters.IDEFileReportProvider.getReportModuleHandle(IDEFileReportProvider.java:107)
	at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.addPages(MultiPageReportEditor.java:410)
	at org.eclipse.birt.report.designer.ui.editors.IDEMultiPageReportEditor.addPages(IDEMultiPageReportEditor.java:333)
	at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138)
	at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
	at org.eclipse.birt.report.designer.ui.editors.ReportEditorProxy.createPartControl(ReportEditorProxy.java:138)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
	at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
	at org.eclipse.birt.report.designer.ui.ide.wizards.NewReportWizard$3.run(NewReportWizard.java:669)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:173)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:388)
	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1029)
	at org.eclipse.birt.report.designer.ui.ide.wizards.NewReportWizard.performFinish(NewReportWizard.java:211)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
	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.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:135)
	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)
Caused by: java.io.FileNotFoundException: C:\2\RTCWorkspaces\TestWorkspace\testproject\new_report.rptdesign (The system cannot find the path specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(Unknown Source)
	at org.eclipse.birt.report.designer.internal.ui.ide.adapters.IDEFileReportProvider.getReportModuleHandle(IDEFileReportProvider.java:505)
	... 68 more
Comment 2 Zhiqiang Qian CLA 2012-02-06 21:13:26 EST
Andy,

Please refer to bug 288302. You may need try 3.7.2 build instead.
Comment 3 Xiaoying Gu CLA 2012-07-31 04:31:57 EDT
Set as fixed based on comment #2.

Please feel free to reopen if there is any issue.
Comment 4 Zhiqiang Qian CLA 2012-08-16 13:35:49 EDT
Mark as fixed.