Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 217501 - Editor could not be open on html report
Summary: Editor could not be open on html report
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Tony Wang CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 201827
Blocks:
  Show dependency tree
 
Reported: 2008-02-01 14:56 EST by Tony Wang CLA
Modified: 2016-05-05 11:01 EDT (History)
1 user (show)

See Also:


Attachments
the error dialog after create a new report (134.26 KB, image/pjpeg)
2008-02-04 09:20 EST, Tony Wang CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Wang CLA 2008-02-01 14:56:07 EST
1.I create a manual test and run the testsuite for several times, i right click the testsuite--Report--Select a Report(ex.Time Frame Historic)--type name--select time frame--Finish  

2.The html log of report will come out with an error message: Error opening the Editor, and there is nothing generated in test navigator

3.Then I use the same testsuite to do step 1 again, the error message is the same as in step 2, but the html report file created in step 1 is generated in test navigator

...
So if you do the third time ,the second html report file will be generated...
Comment 1 Tony Wang CLA 2008-02-01 15:01:24 EST
The problem happens when I use tptp with the plugin of WTP
the problem is disappeared when WTP is not installed
Comment 2 Paul Slauenwhite CLA 2008-02-04 07:24:18 EST
There are two problems here:

1) The Test Navigator is not being refreshed after a test report is created (see 201827).
2) The *.html file type is associated with the wrong editor when WTP is installed.  Either WTP is contributing an invalid file association or we are not providing the correct editor ID when opening the HTML report.

Tony, can you include the error dialog (screen capture) and error message (.log file)?
Comment 3 Tony Wang CLA 2008-02-04 08:18:57 EST
Unable to create editor ID org.eclipse.jst.pagedesigner.PageDesignerEditor: Editor could not be open on Report7.html

org.eclipse.ui.PartInitException: Editor could not be open on Report7.html
at org.eclipse.jst.pagedesigner.editors.HTMLEditor.editorInputIsAcceptable(HTMLEditor.java:474)
at org.eclipse.jst.pagedesigner.editors.HTMLEditor.init(HTMLEditor.java:710)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:794)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:643)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:263)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2739)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2565)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:644)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:603)
at org.eclipse.tptp.platform.common.ui.internal.util.UIUtil.openEditor(UIUtil.java:322)
at org.eclipse.hyades.test.ui.internal.wizard.ReportWizard.open(ReportWizard.java:178)
at org.eclipse.hyades.test.ui.internal.wizard.ReportWizard.performFinish(ReportWizard.java:156)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:746)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
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:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Comment 4 Tony Wang CLA 2008-02-04 08:19:31 EST
An unexpected exception was thrown.

java.lang.IllegalArgumentException
at org.eclipse.core.runtime.ListenerList.remove(ListenerList.java:155)
at org.eclipse.core.commands.common.EventManager.removeListenerObject(EventManager.java:99)
at org.eclipse.ui.internal.PartListenerList.removePartListener(PartListenerList.java:142)
at org.eclipse.ui.internal.PartService.removePartListener(PartService.java:55)
at org.eclipse.ui.internal.WWinPartService.removePartListener(WWinPartService.java:96)
at org.eclipse.jst.pagedesigner.editors.HTMLEditor.dispose(HTMLEditor.java:416)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:689)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:263)
at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1405)
at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:939)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:801)
at org.eclipse.ui.internal.Workbench$25.runWithException(Workbench.java:1342)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2309)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Comment 5 Tony Wang CLA 2008-02-04 09:20:16 EST
Created attachment 88773 [details]
the error dialog after create a new report
Comment 6 Paul Slauenwhite CLA 2008-05-01 08:44:55 EDT
Tony, please confirm is this is still an issue in the I7 candidate driver (http://www.eclipse.org/tptp/home/downloads/?buildId=TPTP-4.5.0-200804240100) with and without WTP.  
Comment 7 Tony Wang CLA 2008-05-01 10:42:33 EDT
I verifed it with I7 Candidate build 4.5-200804240100(http://www.eclipse.org/tptp/home/downloads/?buildId=TPTP-4.5.0-200804240100)
This problem is no longer exist when TPTP is installed with and without WTP, 
so it can't be seemed as an issue now~ 
Comment 8 Paul Slauenwhite CLA 2008-05-01 10:47:00 EDT
(In reply to comment #7)
> I verifed it with I7 Candidate build
> 4.5-200804240100(http://www.eclipse.org/tptp/home/downloads/?buildId=TPTP-4.5.0-200804240100)
> This problem is no longer exist when TPTP is installed with and without WTP, 
> so it can't be seemed as an issue now~ 
> 

Thanks Tony.

Closing as WORKFORME.
Comment 9 Paul Slauenwhite CLA 2008-05-01 10:47:13 EDT
Closing.