Bug 148264 - NotDefinedException when opening Log Interactions view
Summary: NotDefinedException when opening Log Interactions view
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: Yasuhisa Gotoh CLA
QA Contact:
URL:
Whiteboard: closed460
Keywords: plan
: 155446 199088 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-22 13:52 EDT by Peter Kim CLA
Modified: 2016-05-05 10:49 EDT (History)
6 users (show)

See Also:


Attachments
ScenarioOne lgs (146.75 KB, application/zip)
2006-06-22 13:53 EDT, Peter Kim CLA
no flags Details
Patch file (1.32 KB, patch)
2007-11-19 06:19 EST, Yasuhisa Gotoh CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Kim CLA 2006-06-22 13:52:52 EDT
Hardware Environment:

Software Environment:

Build: AC-4.2.0-200606050621


Steps to Reproduce:
1. Import WAS trace, Apache Access and DB2 diag logs from ScenarioOne 
(attached)
2. Create a Time, URL, Application ID correlation
3. Open the correlation using the Log Interactions view

Actual Results:
The following exception appears in the error log.  There is a Hyades class in 
the middle of the exception trace.

org.eclipse.hyades.sd.logc.internal.actions.OpenLogViewAction.run
(OpenLogViewAction.java:71)

Expected Results:

Additional Information:

org.eclipse.core.commands.common.NotDefinedException: Cannot get the parent 
identifier from an undefined context. org.eclipse.ui.globalScope
	at org.eclipse.core.commands.contexts.Context.getParentId
(Context.java:201)
	at 
org.eclipse.jface.bindings.BindingManager.createFilteredContextTreeFor
(BindingManager.java:788)
	at org.eclipse.jface.bindings.BindingManager.recomputeBindings
(BindingManager.java:1678)
	at 
org.eclipse.jface.bindings.BindingManager.getActiveBindingsByParameterizedComma
nd(BindingManager.java:908)
	at org.eclipse.jface.bindings.BindingManager.getActiveBindingsFor
(BindingManager.java:1152)
	at org.eclipse.ui.internal.keys.BindingService.getActiveBindingsFor
(BindingService.java:128)
	at 
org.eclipse.ui.internal.ide.actions.QuickMenuAction.getShortCutString
(QuickMenuAction.java:111)
	at org.eclipse.ui.internal.ide.WorkbenchActionBuilder$6.getMenuText
(WorkbenchActionBuilder.java:461)
	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:728)
	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:720)
	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:720)
	at 
org.eclipse.ui.internal.Workbench.updateActiveWorkbenchWindowMenuManager
(Workbench.java:2518)
	at org.eclipse.ui.internal.Workbench.access$0(Workbench.java:2480)
	at org.eclipse.ui.internal.Workbench$2.bindingManagerChanged
(Workbench.java:2466)
	at org.eclipse.jface.bindings.BindingManager.fireBindingManagerChanged
(BindingManager.java:863)
	at org.eclipse.jface.bindings.BindingManager.setActiveBindings
(BindingManager.java:2197)
	at org.eclipse.jface.bindings.BindingManager.clearSolution
(BindingManager.java:435)
	at org.eclipse.jface.bindings.BindingManager.contextManagerChanged
(BindingManager.java:652)
	at 
org.eclipse.core.commands.contexts.ContextManager.fireContextManagerChanged
(ContextManager.java:120)
	at org.eclipse.core.commands.contexts.ContextManager.addActiveContext
(ContextManager.java:70)
	at org.eclipse.ui.internal.contexts.ContextAuthority.updateContext
(ContextAuthority.java:744)
	at org.eclipse.ui.internal.contexts.ContextAuthority.sourceChanged
(ContextAuthority.java:656)
	at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged
(ExpressionAuthority.java:268)
	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:843)
	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:843)
	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:3190)
	at org.eclipse.ui.internal.WorkbenchPage.activate
(WorkbenchPage.java:588)
	at org.eclipse.ui.internal.WorkbenchPage.busyShowView
(WorkbenchPage.java:1008)
	at org.eclipse.ui.internal.WorkbenchPage.busyShowView
(WorkbenchPage.java:989)
	at org.eclipse.ui.internal.WorkbenchPage.access$13
(WorkbenchPage.java:968)
	at org.eclipse.ui.internal.WorkbenchPage$13.run
(WorkbenchPage.java:3497)
	at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:67)
	at org.eclipse.ui.internal.WorkbenchPage.showView
(WorkbenchPage.java:3494)
	at org.eclipse.ui.internal.WorkbenchPage.showView
(WorkbenchPage.java:3470)
	at org.eclipse.hyades.sd.logc.internal.actions.OpenLogViewAction.run
(OpenLogViewAction.java:71)
	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)


------- Additional Comment #4 From Sheldon Lee-Loy 2006-06-21 10:50 EST -------

I can't reproduce this problem.  I used TPTP 200606150100 and AC 200606161344.


------- Additional Comment #5 From Malcom Zung 2006-06-21 11:29 EST -------

To reproduce:

- Start with a new workspace
- Watch the error log
- Open the correlation in the Log Interactions view
- The error will show up in the error log


------- Additional Comment #6 From Sheldon Lee-Loy 2006-06-22 12:15 EST -------

This is a TPTP bug.  I used driver TPTP-4.2.0-200606190100 to reproduce the 
problem.

I imported the apache access log, created a time base correlation and open the 
log interaction view.
Comment 1 Peter Kim CLA 2006-06-22 13:53:33 EDT
Created attachment 45106 [details]
ScenarioOne lgs
Comment 2 Valentina Popescu CLA 2006-07-11 15:01:59 EDT
not critical for 4.2.1; moving to 4.3
Comment 3 Liz Dancy CLA 2006-09-06 11:36:20 EDT
*** Bug 155446 has been marked as a duplicate of this bug. ***
Comment 4 Alex Nan CLA 2006-11-09 11:29:38 EST
Moving to 4.4.
Comment 5 Alex Nan CLA 2007-01-12 14:33:31 EST
This defect requires investigation, I'll set for now an 8h estimate.
Comment 6 Eric Labadie CLA 2007-08-09 16:52:48 EDT
This is required from AC perspective.
Comment 7 Alex Nan CLA 2007-10-30 19:44:55 EDT
Targetting 4.5 i2.
Comment 8 Alex Nan CLA 2007-11-05 18:20:30 EST
Changing target to 4.5 i4.
Comment 9 Yasuhisa Gotoh CLA 2007-11-19 06:17:31 EST
The scopeId "org.eclipse.ui.globalScope" used for the accelerator set has been deprecated.  Need to use "org.eclipse.ui.contexts.window" instead.  Also this context ID can be referred as IContextIds#CONTEXT_ID_WINDOW.
Comment 10 Yasuhisa Gotoh CLA 2007-11-19 06:19:28 EST
Created attachment 83225 [details]
Patch file

Patch created.  Please review.
Comment 11 Alex Nan CLA 2007-11-19 14:20:38 EST
Yhe fix works weel but we still use the old keybinding mechanism.
Is it possible to get rid of the deprecated call 
site.getSite().getKeyBindingService().setScopes(sdScopes);
?
Comment 12 Yasuhisa Gotoh CLA 2007-11-21 02:41:55 EST
The current patch code appears to be working expectedly and we need further investigation for removing the deprecated calls without breaking the compatibility.

As discussed in the call, I have opened a follow-on bug 210495 for the activity.
Comment 13 Yasuhisa Gotoh CLA 2007-12-05 02:13:47 EST
Alex, I have noticed that this fix should be applied to the platform project and I do not have permission.

Could you please check in the patch for me?
Comment 14 Alex Nan CLA 2007-12-05 21:46:38 EST
Fix checked in.
Comment 15 Yasuhisa Gotoh CLA 2008-03-08 06:40:45 EST
*** Bug 199088 has been marked as a duplicate of this bug. ***
Comment 16 Paul Slauenwhite CLA 2009-06-30 10:26:14 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.