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

Bug 199088

Summary: Undefined context while filtering dialog/window contexts error if log interaction view is opened.
Product: z_Archived Reporter: Praful Rajawat <prafulr>
Component: TPTP.monitoringAssignee: Yasuhisa Gotoh <gotohy>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: apnan, jkubasta, labadie, smith, umarkova
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed460
Attachments:
Description Flags
log none

Description Praful Rajawat CLA 2007-08-07 11:02:04 EDT
Build ID: TPTP-4.4.0-200706250100

Steps To Reproduce:
1.Import access.log
2.create a time correlation
3.Open with Log Interaction view.
Following error and exception get thrown.

!MESSAGE Undefined context while filtering dialog/window contexts
!STACK 0
org.eclipse.core.commands.common.NotDefinedException: Cannot get the parent identifier from an undefined context. org.eclipse.ui.UML2SDScope
	at org.eclipse.core.commands.contexts.Context.getParentId(Context.java:201)
	at org.eclipse.jface.bindings.BindingManager.createFilteredContextTreeFor(BindingManager.java:825)
	at org.eclipse.jface.bindings.BindingManager.recomputeBindings(BindingManager.java:1720)
	at org.eclipse.jface.bindings.BindingManager.contextManagerChanged(BindingManager.java:689)
	at org.eclipse.core.commands.contexts.ContextManager.fireContextManagerChanged(ContextManager.java:152)
	at org.eclipse.core.commands.contexts.ContextManager.setEventCaching(ContextManager.java:311)
	at org.eclipse.core.commands.contexts.ContextManager.addActiveContext(ContextManager.java:80)
	at org.eclipse.ui.internal.contexts.ContextAuthority.sourceChanged(ContextAuthority.java:675)
	at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:305)
	at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:285)
	at org.eclipse.ui.AbstractSourceProvider.fireSourceChanged(AbstractSourceProvider.java:98)
	at org.eclipse.ui.internal.services.ActivePartSourceProvider.checkActivePart(ActivePartSourceProvider.java:202)
	at org.eclipse.ui.internal.services.ActivePartSourceProvider.access$0(ActivePartSourceProvider.java:142)
	at org.eclipse.ui.internal.services.ActivePartSourceProvider$1.partDeactivated(ActivePartSourceProvider.java:90)
	at org.eclipse.ui.internal.PartListenerList$4.run(PartListenerList.java:117)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.runtime.Platform.run(Platform.java:857)
	at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
	at org.eclipse.ui.internal.PartListenerList.firePartDeactivated(PartListenerList.java:115)
	at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:113)
	at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:165)
	at org.eclipse.ui.internal.WWinPartService.updateActivePart(WWinPartService.java:124)
	at org.eclipse.ui.internal.WWinPartService.access$0(WWinPartService.java:115)
	at org.eclipse.ui.internal.WWinPartService$1.partDeactivated(WWinPartService.java:48)
	at org.eclipse.ui.internal.PartListenerList2$4.run(PartListenerList2.java:113)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.runtime.Platform.run(Platform.java:857)
	at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53)
	at org.eclipse.ui.internal.PartListenerList2.firePartDeactivated(PartListenerList2.java:111)
	at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:116)
	at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:165)
	at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56)
	at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:126)
	at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3384)
	at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:602)
	at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1042)
	at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1020)
	at org.eclipse.ui.internal.WorkbenchPage.access$18(WorkbenchPage.java:999)
	at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:3666)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3663)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3639)
	at org.eclipse.hyades.sd.logc.internal.actions.OpenLogViewAction.run(OpenLogViewAction.java:91)
	at org.eclipse.tptp.platform.log.views.internal.navigator.LogNavigatorActionGroup.handleDoubleClick(LogNavigatorActionGroup.java:600)
	at org.eclipse.tptp.platform.log.views.internal.navigator.LogNavigator.doubleClick(LogNavigator.java:233)
	at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:799)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.runtime.Platform.run(Platform.java:857)
	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193)
	at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:797)
	at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1384)
	at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1173)
	at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:237)
	at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:234)
	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:295)
	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.tptp.platform.rcp.log.internal.Application.run(Unknown Source)
	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.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:533)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:155)
	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:504)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1169)



More information:
Comment 1 Eugene Chan CLA 2007-08-07 11:14:45 EDT
Praful, please provide the access log you used.
Comment 2 Eugene Chan CLA 2007-08-07 11:18:52 EDT
I can reproduce the problem and the error mentioned is logged to error log. 
Comment 3 Praful Rajawat CLA 2007-08-07 11:44:39 EDT
Created attachment 75548 [details]
log
Comment 4 Dave Smith CLA 2007-08-08 18:10:16 EDT
Targetting to future because the 4.5 plan has not been developed yet.
Comment 5 Eric Labadie CLA 2007-08-09 17:08:59 EDT
This is required from AC perspective.  Can't reproduce the problem with LA-RCP v4.4
Comment 6 Alex Nan CLA 2008-02-07 14:59:22 EST
Reassigning to i6.
Comment 7 Yasuhisa Gotoh CLA 2008-03-08 06:40:45 EST
Concluded that this defect is a dup of bug 148264 since these two defects have the same stack trace data.

And using the attached log file and the reported steps, this problem can be reproduced with the TPTP-4.4.0 driver and TPTP-4.5.0M3 driver, but it cannot be reproduced with the TPTP-4.5.0M4 driver which contains the fix for bug 148264 and also with the latest driver (TPTP-4.5.0-200803061126).

Further, I have confirmed that the problem can be reproduced again with the latest code when I put the old code (without fix for bug 148264) in the SDWidget#setSite() method.


*** This bug has been marked as a duplicate of bug 148264 ***
Comment 8 Alex Nan CLA 2008-03-10 11:23:08 EDT
Thanks Gotoh-san for the investigation.
Comment 9 Paul Slauenwhite CLA 2009-06-30 10:25:12 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since the originator of this enhancement/defect has an inactive Bugzilla account and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.