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

Bug 204742

Summary: Warning logged in the Eclipse .log when restoring the symptom analysis results view
Product: z_Archived Reporter: Alex Nan <apnan>
Component: TPTP.monitoringAssignee: Yasuhisa Gotoh <gotohy>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: apnan
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Patch file none

Description Alex Nan CLA 2007-09-26 18:11:25 EDT
The following warning is logged when the symptom anaysis results view is restored (i.e. in a previous session the workbench was shutdown while the view was open having results displayed) 
on Linux  (tested on Red Hat Linux Enterprise Server 4):

MESSAGE Warning: Detected recursive attempt by part org.eclipse.tptp.symptom.internal.presentation.view.SymptomAnalysisViewer to create itself (this is probably, but not necessarily, a bug)
!STACK 1
org.eclipse.ui.PartInitException: Warning: Detected recursive attempt by part org.eclipse.tptp.symptom.internal.presentation.view.SymptomAnalysisViewer to create itself (this is probably, but not necessarily, a bug)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:583)
	at org.eclipse.ui.internal.ViewReference.getView(ViewReference.java:194)
	at org.eclipse.ui.internal.WorkbenchPage.findView(WorkbenchPage.java:1796)
	at org.eclipse.tptp.symptom.internal.presentation.CommonDetailsPage.createCommonSection(CommonDetailsPage.java:316)
	at org.eclipse.tptp.symptom.internal.presentation.BaseDetailsPage.createContents(BaseDetailsPage.java:126)
	at org.eclipse.tptp.symptom.internal.presentation.view.SymptomAnalysisDetailsPageBook.createSymptomDefinitionDetails(SymptomAnalysisDetailsPageBook.java:193)
	at org.eclipse.tptp.symptom.internal.presentation.view.SymptomAnalysisDetailsPageBook.createContents(SymptomAnalysisDetailsPageBook.java:154)
	at org.eclipse.tptp.symptom.internal.presentation.view.SymptomAnalysisPage.populateUI(SymptomAnalysisPage.java:140)
	at org.eclipse.tptp.symptom.internal.presentation.view.SymptomAnalysisPage.createControl(SymptomAnalysisPage.java:83)
	at org.eclipse.tptp.symptom.internal.presentation.view.SymptomAnalysisViewer.getPage(SymptomAnalysisViewer.java:535)
	at org.eclipse.tptp.symptom.internal.presentation.view.SymptomAnalysisViewer.addViewPage(SymptomAnalysisViewer.java:232)
	at org.eclipse.tptp.symptom.internal.presentation.view.SymptomAnalysisViewer.createPartControl(SymptomAnalysisViewer.java:195)
	at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:370)
	at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:227)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
	at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:531)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
	at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:668)
	at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:576)
	at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:564)
	at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:270)
	at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:931)
	at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2515)
	at org.eclipse.ui.internal.WorkbenchWindow$23.run(WorkbenchWindow.java:2837)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2818)
	at org.eclipse.ui.internal.WorkbenchWindow$17.runWithException(WorkbenchWindow.java:2135)
	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:3296)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2974)
	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:3296)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2974)
	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(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	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 1 Alex Nan CLA 2007-10-30 23:23:16 EDT
Assigning to i2 for now.
Comment 2 Alex Nan CLA 2007-11-05 18:02:17 EST
Targetting 4.5 i4.
Comment 3 Alex Nan CLA 2008-02-07 14:59:24 EST
Reassigning to i6.
Comment 4 Yasuhisa Gotoh CLA 2008-03-04 05:43:09 EST
Created attachment 91492 [details]
Patch file

Alex, please review the patch.
Comment 5 Alex Nan CLA 2008-03-04 21:21:26 EST
Patch reviewed. Please check it in and mark the defect fixed.
Comment 6 Alex Nan CLA 2008-03-05 14:38:17 EST
I am marking this as fixed.
Comment 7 Alex Nan CLA 2008-06-13 16:55:37 EDT
Verified with TPTP-4.5.0RC4-200806121215.
Comment 8 Alex Nan CLA 2008-06-13 16:55:50 EDT
Closing.