Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315270 - NPE in ModelServiceImpl.match
Summary: NPE in ModelServiceImpl.match
Status: CLOSED WONTFIX
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Remy Suen CLA
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-01 14:34 EDT by John Arthorne CLA
Modified: 2020-02-13 08:01 EST (History)
9 users (show)

See Also:


Attachments
Error log (126.38 KB, text/plain)
2010-06-01 14:35 EDT, John Arthorne CLA
no flags Details
Error log running on 20100603 (80.90 KB, text/plain)
2010-06-07 11:42 EDT, John Arthorne CLA
no flags Details
Error log from 4.0 RC0 (411.74 KB, text/plain)
2010-06-21 16:00 EDT, John Arthorne CLA
no flags Details
Possible workaround (1.07 KB, patch)
2010-06-21 16:07 EDT, John Arthorne CLA
no flags Details | Diff
Error log from I20100628-2215 (86.89 KB, text/plain)
2010-06-30 14:10 EDT, John Arthorne CLA
no flags Details
Error log from I20100705-1022 (57.89 KB, text/plain)
2010-07-05 20:55 EDT, Olivier Thomann CLA
no flags Details
Stack trace (7.50 KB, text/plain)
2010-07-07 11:18 EDT, Oleg Besedin CLA
no flags Details
Patch that allows duplicating the problem (2.41 KB, patch)
2010-07-07 12:04 EDT, Oleg Besedin CLA
no flags Details | Diff
Error log from I20100727-1520 (6.70 KB, text/x-log)
2010-08-01 02:50 EDT, Sin-young "Divinespear" Kang CLA
no flags Details
Describes how to reproduce the error from an E4 application template (1.91 MB, application/octet-stream)
2018-02-22 11:01 EST, Per Wallberg CLA
no flags Details
Error_log_1519311801917 (2.11 KB, application/octet-stream)
2018-02-22 11:04 EST, Per Wallberg CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2010-06-01 14:34:06 EDT
Build: 20100531

- Started up this build in an existing workspace (deleted delta.xml first)
- Open synchronizing perspective
- Tried clicking in the Synchronize view, got a dialog about an NPE
- Attempting to close the error dialog resulted in another NPE and the error dialog returning
- Had to kill the process to get out of the loop

I will attach the full log, but here is a snippet:

java.lang.NullPointerException
	at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.match(ModelServiceImpl.java:55)
	at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.findElementsRecursive(ModelServiceImpl.java:75)
	at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.findElements(ModelServiceImpl.java:126)
	at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.find(ModelServiceImpl.java:140)
	at org.eclipse.e4.workbench.ui.internal.PartServiceImpl.isInContainer(PartServiceImpl.java:321)
	at org.eclipse.e4.workbench.ui.internal.PartServiceImpl.activate(PartServiceImpl.java:352)
Comment 1 John Arthorne CLA 2010-06-01 14:35:37 EDT
Created attachment 170673 [details]
Error log
Comment 2 Remy Suen CLA 2010-06-01 14:37:38 EDT
Possibly fixed by bug 314896 though the steps are different. I'll retry John's steps later.
Comment 3 Paul Webster CLA 2010-06-04 08:51:08 EDT
I was using I20100603-2148 and it suddenly started issuing NPEs.  
bash-3.2$ java.lang.NullPointerException
        at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.match(ModelServiceImpl.java:61)
        at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.findElementsRecursive(ModelServiceImpl.java:81)
        at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.findElements(ModelServiceImpl.java:132)
        at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.find(ModelServiceImpl.java:146)
        at org.eclipse.e4.workbench.ui.internal.PartServiceImpl.isInContainer(PartServiceImpl.java:322)
        at org.eclipse.e4.workbench.ui.internal.PartServiceImpl.activate(PartServiceImpl.java:353)
        at org.eclipse.e4.ui.workbench.swt.internal.AbstractPartRenderer.activate(AbstractPartRenderer.java:105)
        at org.eclipse.e4.workbench.ui.renderers.swt.ContributedPartRenderer$1.handleEvent(ContributedPartRenderer.java:74)


Now switching tabs (to Search or Problems):

2010-06-04 08:52:27.161 Log ErrorException while dispatching event org.osgi.service.event.Event [topic=org/eclipse/e4/ui/model/ui/Context/context/SET] to handler org.eclipse.e4.ui.services.internal.events.UIEventHandler@3ac33ac3
java.lang.NullPointerException
        at org.eclipse.e4.workbench.ui.internal.SelectionServiceImpl.isInContainer(SelectionServiceImpl.java:178)
        at org.eclipse.e4.workbench.ui.internal.SelectionServiceImpl.isInContainer(SelectionServiceImpl.java:174)
        at org.eclipse.e4.workbench.ui.internal.SelectionServiceImpl.access$0(SelectionServiceImpl.java:173)
        at org.eclipse.e4.workbench.ui.internal.SelectionServiceImpl$1.handleEvent(SelectionServiceImpl.java:64)
Comment 4 Eric Moffatt CLA 2010-06-04 10:56:30 EDT
This is an indication that some (view's?) context has become 'orphaned' (i.e. its EPartService has a 'rootContainer' == null).

I've been running with a breakpoint set on 'setRootContainer' (when 'root' == null) but since I've set it I haven't seen it fire (of course...;-).
Comment 5 Eric Moffatt CLA 2010-06-04 10:57:02 EDT
BTW, just tried John's scenario and it seems to work on my box.
Comment 6 Remy Suen CLA 2010-06-04 14:38:49 EDT
1. Minimize the 'Package Explorer'.
2. Select it in the trim so that it's "restored".
3. Select the view's menu > Filters
4. Close the dialog.
5. NPEs ensue.

This is probably due to context parenting issues.

!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
	at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.match(ModelServiceImpl.java:61)
	at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.findElementsRecursive(ModelServiceImpl.java:81)
	at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.findElements(ModelServiceImpl.java:132)
	at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.find(ModelServiceImpl.java:146)
	at org.eclipse.e4.workbench.ui.internal.PartServiceImpl.isInContainer(PartServiceImpl.java:322)
	at org.eclipse.e4.workbench.ui.internal.PartServiceImpl.activate(PartServiceImpl.java:353)
	at org.eclipse.e4.ui.workbench.swt.internal.AbstractPartRenderer.activate(AbstractPartRenderer.java:105)
	at org.eclipse.e4.workbench.ui.renderers.swt.ContributedPartRenderer$1.handleEvent(ContributedPartRenderer.java:74)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1076)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
	at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1424)
	at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2631)
	at org.eclipse.swt.widgets.Widget.wmSetFocus(Widget.java:2401)
	at org.eclipse.swt.widgets.Control.WM_SETFOCUS(Control.java:4791)
	at org.eclipse.swt.widgets.Tree.WM_SETFOCUS(Tree.java:6907)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4228)
	at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5844)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4886)
	at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method)
	at org.eclipse.swt.widgets.Control.forceFocus(Control.java:994)
	at org.eclipse.swt.widgets.Control.setSavedFocus(Control.java:3268)
	at org.eclipse.swt.widgets.Decorations.restoreFocus(Decorations.java:821)
	at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1639)
	at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2114)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4156)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
	at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1598)
	at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
	at org.eclipse.swt.internal.win32.OS.DestroyWindow(Native Method)
	at org.eclipse.swt.widgets.Control.destroyWidget(Control.java:683)
	at org.eclipse.swt.widgets.Shell.destroyWidget(Shell.java:697)
	at org.eclipse.swt.widgets.Widget.release(Widget.java:817)
	at org.eclipse.swt.widgets.Widget.dispose(Widget.java:445)
	at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:447)
	at org.eclipse.swt.widgets.Shell.dispose(Shell.java:714)
	at org.eclipse.jface.window.Window.close(Window.java:335)
	at org.eclipse.jface.dialogs.Dialog.close(Dialog.java:979)
	at org.eclipse.jface.dialogs.TrayDialog.close(TrayDialog.java:179)
	at org.eclipse.jface.dialogs.Dialog.cancelPressed(Dialog.java:488)
	at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:474)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.jdt.ui.actions.CustomFiltersActionGroup.openDialog(CustomFiltersActionGroup.java:761)
	at org.eclipse.jdt.ui.actions.CustomFiltersActionGroup.access$0(CustomFiltersActionGroup.java:753)
	at org.eclipse.jdt.ui.actions.CustomFiltersActionGroup$ShowFilterDialogAction.run(CustomFiltersActionGroup.java:84)
	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:1052)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
	at org.eclipse.e4.workbench.ui.renderers.swt.StackRenderer.showMenu(StackRenderer.java:607)
	at org.eclipse.e4.workbench.ui.renderers.swt.StackRenderer$6.widgetSelected(StackRenderer.java:580)
Comment 7 Eric Moffatt CLA 2010-06-04 15:41:45 EDT
Beauty, thanks Remy. This does indeed fire off my BP in the PartService's 'setRootContainer()'...on 4 different instances of the EPartService !!
Comment 8 Remy Suen CLA 2010-06-07 07:49:48 EDT
(In reply to comment #6)
> 1. Minimize the 'Package Explorer'.
> 2. Select it in the trim so that it's "restored".
> 3. Select the view's menu > Filters
> 4. Close the dialog.
> 5. NPEs ensue.

This particular scenario has been fixed.
Comment 9 John Arthorne CLA 2010-06-07 11:40:31 EDT
I got this error again today using I20100602-2136

Steps:

1) Preferences > General > Editors > File Associations
2) Added file type "*.inf", associated with internal "Text Editor"
3) Clicked ok.

-> Errors, and then more errors when I try to close the error dialog. Had to kill the workbench to get out of it. The stack looks similar to earlier:

!ENTRY org.eclipse.e4.ui.workbench 4 0 2010-06-07 11:32:47.781
!MESSAGE Internal Error
!STACK 0
java.lang.NullPointerException
	at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.match(ModelServiceImpl.java:55)
	at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.findElementsRecursive(ModelServiceImpl.java:75)
	at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.findElements(ModelServiceImpl.java:126)
	at org.eclipse.e4.workbench.ui.internal.ModelServiceImpl.find(ModelServiceImpl.java:140)
	at org.eclipse.e4.workbench.ui.internal.PartServiceImpl.isInContainer(PartServiceImpl.java:321)
	at org.eclipse.e4.workbench.ui.internal.PartServiceImpl.activate(PartServiceImpl.java:352)
Comment 10 John Arthorne CLA 2010-06-07 11:42:05 EDT
Created attachment 171290 [details]
Error log running on 20100603
Comment 11 Remy Suen CLA 2010-06-07 11:50:42 EDT
(In reply to comment #9)
> 1) Preferences > General > Editors > File Associations
> 2) Added file type "*.inf", associated with internal "Text Editor"
> 3) Clicked ok.

Unfortunately, I cannot reproduce this in my outer or my inner using I20100603-2148.
Comment 12 Paul Webster CLA 2010-06-14 15:38:56 EDT
Just got this after clicking OK to add a new target platform

bash-3.2$ java.lang.NullPointerException
        at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.match(ModelServiceImpl.java:61)
        at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.findElementsRecursive(ModelServiceImpl.java:81)
        at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.findElements(ModelServiceImpl.java:132)
        at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.find(ModelServiceImpl.java:146)
        at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.isInContainer(PartServiceImpl.java:322)
        at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:353)
        at org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer.activate(AbstractPartRenderer.java:105)
        at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer$1.handleEvent(ContributedPartRenderer.java:74)

Now my eclipse will repaint, but is totally non-responsive

PW
Comment 13 Paul Webster CLA 2010-06-14 16:56:03 EDT
Turns out it close the preferences dialog but managed to eat the Close/Dispose event, so the modal dialog.open() never returned but kept spinning the event loop.

switching desktops a couple of times brought it back from the modal lock.

PW
Comment 14 Eric Moffatt CLA 2010-06-16 15:58:09 EDT
Ouch! any idea how common this type of thing is going to be ?
Comment 15 Oleg Besedin CLA 2010-06-16 16:07:54 EDT
I've had a similar problem (non-reproducible) by using 3.x's new plug-in wizard. At the end of the wizard processing, it displays perspective switch dialog. In my case the perspective switch dialog was obscured by the wizard and made an impression of Eclipse being stuck. 

The dialog got on top after I switched to a different application and back to Eclipse. (This is on WinXP.)
Comment 16 John Arthorne CLA 2010-06-21 16:00:31 EDT
Created attachment 172362 [details]
Error log from 4.0 RC0

This still happens to me almost every day. This time I opened the "Replace With > History..." dialog, and then immediately closed it by pressing Esc. I am attaching the log because the line numbers seem different.
Comment 17 John Arthorne CLA 2010-06-21 16:01:19 EDT
Increasing severity because the process has to be killed when this happens so it is equivalent to a crash.
Comment 18 John Arthorne CLA 2010-06-21 16:07:36 EDT
Created attachment 172364 [details]
Possible workaround

Would it be reasonable to put in a workaround like this so that the process doesn't have to be killed when this happens? Is there any more information that could be printed to help track it down?
Comment 19 Paul Webster CLA 2010-06-22 10:40:24 EDT
bug 317464 might be a dup of this.

PW
Comment 20 Remy Suen CLA 2010-06-22 15:08:03 EDT
Comment on attachment 172364 [details]
Possible workaround

I have changed the code to ask the application's contxt for its active child context (presumably a window's context) if the context function calculates a 'null'.

A trace will be logged before the function returns.
Comment 21 Oleg Besedin CLA 2010-06-23 09:44:40 EDT
Also see bug 317462 comment 2.
Comment 22 Paul Webster CLA 2010-06-25 16:10:09 EDT
I got this while restarting 4.0 SDK I20100625-0821.  It killed the model cleanup (but not the save :-) and now I have 2 copies of the main toolbar.



eclipse.buildId=I20100625-0821
java.fullversion=JRE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr8-20100401_55940 (JIT enabled, AOT enabled)
J9VM - 20100401_055940
JIT  - r9_20100401_15339
GC   - 20100308_AA
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86 -data /opt/pwebster/workspaces/e4


Error
Fri Jun 25 16:10:31 EDT 2010
Internal error, please post the trace to bug 315270

java.lang.Exception
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$2.log(E4Application.java:331)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$2.compute(E4Application.java:378)
at org.eclipse.e4.core.internal.contexts.ValueComputation.get(ValueComputation.java:122)
at org.eclipse.e4.core.internal.contexts.EclipseContext.internalGet(EclipseContext.java:248)
at org.eclipse.e4.core.internal.contexts.EclipseContext.get(EclipseContext.java:209)
at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier.get(ContextObjectSupplier.java:150)
at org.eclipse.e4.core.internal.di.InjectorImpl.resolveArgs(InjectorImpl.java:373)
at org.eclipse.e4.core.internal.di.InjectorImpl.resolveRequestorArgs(InjectorImpl.java:316)
at org.eclipse.e4.core.internal.di.InjectorImpl.resolveArguments(InjectorImpl.java:290)
at org.eclipse.e4.core.internal.di.Requestor.resolveArguments(Requestor.java:106)
at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:44)
at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:87)
at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:334)
at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:351)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.clearContext(PartRenderingEngine.java:547)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.removeGui(PartRenderingEngine.java:504)
at org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1379)
at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:1080)
at org.eclipse.ui.internal.WorkbenchWindow.access$3(WorkbenchWindow.java:1059)
at org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindow.java:1106)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:1104)
at org.eclipse.ui.internal.Workbench$13.run(Workbench.java:1019)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:1013)
at org.eclipse.ui.internal.Workbench.access$11(Workbench.java:947)
at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:1089)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:1087)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:1060)
at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:1077)
at org.eclipse.ui.internal.WorkbenchWindow.access$3(WorkbenchWindow.java:1059)
at org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindow.java:1106)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:1104)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:1120)
at org.eclipse.ui.internal.WorkbenchWindow$3.close(WorkbenchWindow.java:405)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer$8.shellClosed(WBWRenderer.java:421)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:98)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
at org.eclipse.swt.widgets.Shell.closeWidget(Shell.java:616)
at org.eclipse.swt.widgets.Shell.close(Shell.java:612)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.stop(PartRenderingEngine.java:714)
at org.eclipse.ui.internal.Workbench.restart(Workbench.java:2193)
at org.eclipse.ui.internal.handlers.RestartWorkbenchHandler.execute(RestartWorkbenchHandler.java:31)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:56)
at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:42)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:192)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:169)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:101)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:135)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledMenuItemRenderer$2.widgetSelected(HandledMenuItemRenderer.java:164)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3552)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3171)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:662)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:581)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:102)
at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:537)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:521)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
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:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 23 Remy Suen CLA 2010-06-25 16:21:16 EDT
(In reply to comment #6)
I can see why we'd get a null root container here though it's not clear to me why shutdown would fail.
Comment 24 Paul Webster CLA 2010-06-28 08:13:00 EDT
I get this multiple times on 4.0 SDK:I20100627-1659


!ENTRY org.eclipse.e4.ui.workbench 4 0 2010-06-28 08:05:01.258
!MESSAGE Internal error, please post the trace to bug 315270
!STACK 0
java.lang.Exception
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application$2.log(E4Application.java:365)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application$2.compute(E4Application.java:412)
	at org.eclipse.e4.core.internal.contexts.ValueComputation.get(ValueComputation.java:122)
	at org.eclipse.e4.core.internal.contexts.EclipseContext.internalGet(EclipseContext.java:248)
	at org.eclipse.e4.core.internal.contexts.EclipseContext.internalGet(EclipseContext.java:256)
	at org.eclipse.e4.core.internal.contexts.EclipseContext.internalGet(EclipseContext.java:256)
	at org.eclipse.e4.core.internal.contexts.EclipseContext.internalGet(EclipseContext.java:256)
	at org.eclipse.e4.core.internal.contexts.EclipseContext.get(EclipseContext.java:209)
	at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier.get(ContextObjectSupplier.java:150)
	at org.eclipse.e4.core.internal.di.InjectorImpl.resolveArgs(InjectorImpl.java:373)
	at org.eclipse.e4.core.internal.di.InjectorImpl.resolveRequestorArgs(InjectorImpl.java:316)
	at org.eclipse.e4.core.internal.di.InjectorImpl.resolveArguments(InjectorImpl.java:290)
	at org.eclipse.e4.core.internal.di.Requestor.resolveArguments(Requestor.java:106)
	at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:71)
	at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:87)
	at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:334)
	at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:351)
	at org.eclipse.e4.ui.internal.workbench.swt.ShellActivationListener$1.run(ShellActivationListener.java:92)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.ShellActivationListener.activate(ShellActivationListener.java:90)
	at org.eclipse.e4.ui.internal.workbench.swt.ShellActivationListener.handleEvent(ShellActivationListener.java:77)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1525)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1257)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263)
	at org.eclipse.swt.widgets.Shell.filterProc(Shell.java:730)
	at org.eclipse.swt.widgets.Display.filterProc(Display.java:1537)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2224)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3169)
	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.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:211)
	at org.eclipse.ui.internal.handlers.ShowPreferencePageHandler.execute(ShowPreferencePageHandler.java:54)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:56)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:600)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:42)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:192)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:169)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:101)
	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:135)
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledMenuItemRenderer$2.widgetSelected(HandledMenuItemRenderer.java:164)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3552)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3171)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:658)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:579)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:102)
	at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:537)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:521)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
	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:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:600)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 25 Remy Suen CLA 2010-06-28 19:00:10 EDT
(In reply to comment #22)
> I got this while restarting 4.0 SDK I20100625-0821.  It killed the model
> cleanup (but not the save :-) and now I have 2 copies of the main toolbar.

I've altered the teardown so this should hopefully not happen anymore.
Comment 26 John Arthorne CLA 2010-06-30 14:10:09 EDT
Created attachment 173137 [details]
Error log from I20100628-2215

There are several entries in today's log while running I20100628-2215 that say, "Internal error, please post the trace to bug 315270". So, here you go.
Comment 27 Thomas Schindl CLA 2010-07-04 13:17:30 EDT
I have many of those in the my inner as well.

1. Open the New Class-Wizard
2. Hit Browse on the Package
3. Select a Package and press ok

=> Exceptions are in the log
Comment 28 Boris Bokowski CLA 2010-07-04 16:10:54 EDT
The purpose of ShellActivationListener is a mystery to me.  Who can explain it to me? (On Monday in the office?)
Comment 29 Thomas Schindl CLA 2010-07-05 02:50:53 EDT
a rather strange effect is that when openeing a dialog the ToolBar is changing in the main window!
Comment 30 Remy Suen CLA 2010-07-05 05:43:12 EDT
(In reply to comment #29)
> a rather strange effect is that when openeing a dialog the ToolBar is changing
> in the main window!

That's bug 318711.
Comment 31 Paul Webster CLA 2010-07-05 12:53:33 EDT
This was on a restart of I20100701-1105

null
Error
Mon Jul 05 12:51:55 EDT 2010
Internal error, please post the trace to bug 315270

java.lang.Exception
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$2.log(E4Application.java:369)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$2.compute(E4Application.java:416)
at org.eclipse.e4.core.internal.contexts.ValueComputation.get(ValueComputation.java:122)
at org.eclipse.e4.core.internal.contexts.EclipseContext.internalGet(EclipseContext.java:248)
at org.eclipse.e4.core.internal.contexts.EclipseContext.get(EclipseContext.java:209)
at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier.get(ContextObjectSupplier.java:149)
at org.eclipse.e4.core.internal.di.InjectorImpl.resolveArgs(InjectorImpl.java:374)
at org.eclipse.e4.core.internal.di.InjectorImpl.resolveRequestorArgs(InjectorImpl.java:317)
at org.eclipse.e4.core.internal.di.InjectorImpl.resolveArguments(InjectorImpl.java:291)
at org.eclipse.e4.core.internal.di.Requestor.resolveArguments(Requestor.java:106)
at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:44)
at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:90)
at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:334)
at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:351)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.clearContext(PartRenderingEngine.java:555)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.removeGui(PartRenderingEngine.java:512)
at org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1345)
at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:1046)
at org.eclipse.ui.internal.WorkbenchWindow.access$8(WorkbenchWindow.java:1025)
at org.eclipse.ui.internal.WorkbenchWindow$6.run(WorkbenchWindow.java:1072)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:1070)
at org.eclipse.ui.internal.Workbench$13.run(Workbench.java:1017)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:1011)
at org.eclipse.ui.internal.Workbench.access$11(Workbench.java:945)
at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:1087)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:1085)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:1058)
at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:1043)
at org.eclipse.ui.internal.WorkbenchWindow.access$8(WorkbenchWindow.java:1025)
at org.eclipse.ui.internal.WorkbenchWindow$6.run(WorkbenchWindow.java:1072)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:1070)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:1086)
at org.eclipse.ui.internal.WorkbenchWindow$4.close(WorkbenchWindow.java:418)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer$8.shellClosed(WBWRenderer.java:421)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:98)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java)
at org.eclipse.swt.widgets.Shell.closeWidget(Shell.java:616)
at org.eclipse.swt.widgets.Shell.close(Shell.java:612)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.stop(PartRenderingEngine.java:716)
at org.eclipse.ui.internal.Workbench.restart(Workbench.java:2181)
at org.eclipse.ui.internal.handlers.RestartWorkbenchHandler.execute(RestartWorkbenchHandler.java:31)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:56)
at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:42)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:193)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:170)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:101)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:135)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledMenuItemRenderer$1.widgetSelected(HandledMenuItemRenderer.java:150)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3552)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3171)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:664)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:589)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:103)
at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:535)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:519)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
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:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 32 Olivier Thomann CLA 2010-07-05 20:55:16 EDT
Created attachment 173491 [details]
Error log from I20100705-1022
Comment 33 Oleg Besedin CLA 2010-07-07 11:18:52 EDT
Created attachment 173663 [details]
Stack trace

On a clean workspace: 
- Window -> New Window
- In the second window select Outline
- Close the second window by pressing "x"

See the stack trace attached.
Comment 34 Remy Suen CLA 2010-07-07 11:44:57 EDT
(In reply to comment #33)
> On a clean workspace: 
> - Window -> New Window
> - In the second window select Outline
> - Close the second window by pressing "x"

I am unable to reproduce this but Oleg can do so with ease. Eric, can you?
Comment 35 Oleg Besedin CLA 2010-07-07 12:02:37 EDT
(In reply to comment #34)
> (In reply to comment #33)
> > On a clean workspace: 
> > - Window -> New Window
> > - In the second window select Outline
> > - Close the second window by pressing "x"
> I am unable to reproduce this but Oleg can do so with ease. Eric, can you?

Ops, turns out it was caused by the unapplied code change I made. The case it still very strange as the cause is asking part service for the active part, but that might wait for after the 1.0 release.
Comment 36 Oleg Besedin CLA 2010-07-07 12:04:16 EDT
Created attachment 173674 [details]
Patch that allows duplicating the problem

Patch to duplicate problem in the comment 33. The only non-whitespace change there is:
	EPartService partService = appContext.get(EPartService.class);
	MPart previousActivePart = partService.getActivePart();

in the shell activation listener.
Comment 37 Oleg Besedin CLA 2010-07-14 11:07:03 EDT
I think this bug can be dropped from the critical list:

- the exception no longer happen in day-to-day use of the SDK
- the consequences of the exception have been reduced to an entry in the log, the Eclipse instance remains usable

The bug itself should be kept open for future references as the actual cause  remains unclear, but it is no longer ciritcal and can be left for post-release.
Comment 38 Susan McCourt CLA 2010-07-14 12:20:39 EDT
(In reply to comment #37)
> I think this bug can be dropped from the critical list:
> 
> - the exception no longer happen in day-to-day use of the SDK
> - the consequences of the exception have been reduced to an entry in the log,
> the Eclipse instance remains usable
> 

Sounds good to me.  I crossed it off the p1 list with an explanation.
Comment 39 Kevin Streit CLA 2010-07-29 08:19:46 EDT
eclipse.buildId=I20100727-1520
java.version=1.6.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -keyring /Users/setho/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -keyring /Users/setho/.eclipse_keyring -showlocation


Error
Thu Jul 29 14:15:18 CEST 2010
Internal error, please post the trace to bug 315270

java.lang.Exception
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$2.log(E4Application.java:410)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$2.compute(E4Application.java:468)
at org.eclipse.e4.core.internal.contexts.ValueComputation.get(ValueComputation.java:122)
at org.eclipse.e4.core.internal.contexts.EclipseContext.internalGet(EclipseContext.java:254)
at org.eclipse.e4.core.internal.contexts.EclipseContext.get(EclipseContext.java:215)
at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier.get(ContextObjectSupplier.java:148)
at org.eclipse.e4.core.internal.di.InjectorImpl.resolveArgs(InjectorImpl.java:378)
at org.eclipse.e4.core.internal.di.InjectorImpl.resolveRequestorArgs(InjectorImpl.java:333)
at org.eclipse.e4.core.internal.di.InjectorImpl.resolveArguments(InjectorImpl.java:307)
at org.eclipse.e4.core.internal.di.Requestor.resolveArguments(Requestor.java:108)
at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:70)
at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:90)
at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:333)
at org.eclipse.e4.core.internal.contexts.EclipseContext.setParent(EclipseContext.java:394)
at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:83)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:612)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:403)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:479)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:511)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:75)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:41)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:188)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:198)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:139)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:73)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:380)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:159)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:112)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:419)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:479)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:58)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:415)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:479)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:58)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:415)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:479)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:75)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:41)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:188)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:198)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:139)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:73)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:380)
at org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveStackImpl.setSelectedElement(PerspectiveStackImpl.java:134)
at org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveStackImpl.setSelectedElement(PerspectiveStackImpl.java:1)
at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:2358)
at org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard.replaceCurrentPerspective(BasicNewProjectResourceWizard.java:379)
at org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard.updatePerspective(BasicNewProjectResourceWizard.java:528)
at org.eclipse.pde.internal.ui.wizards.plugin.NewPluginProjectWizard.performFinish(NewPluginProjectWizard.java:111)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:815)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3622)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3277)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:117)
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.Display.sendEvent(Display.java:3776)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3622)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3277)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:713)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:633)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:106)
at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:541)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:525)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
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:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 40 Sin-young "Divinespear" Kang CLA 2010-08-01 02:50:58 EDT
Created attachment 175661 [details]
Error log from I20100727-1520

As requested by someone messaged, attach my stacktrace log.

session info is:

eclipse.buildId=I20100727-1520
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64 -clean
Comment 41 Per Wallberg CLA 2018-02-22 11:01:43 EST
Created attachment 272827 [details]
Describes how to reproduce the error from an E4 application template
Comment 42 Per Wallberg CLA 2018-02-22 11:04:02 EST
Created attachment 272828 [details]
Error_log_1519311801917
Comment 43 Per Wallberg CLA 2018-02-22 11:05:54 EST
I can reproduce the NPE in org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.<init>(ModelServiceImpl.java:122) by just creating and then running an Eclipse e4 application template a few times. For me it's typical 3 - 4 error hits of 10 launches.

See attached file (Describes how to reproduce the error from an E4 application template). This file also specifies what system I'm running on.

I've also attached an error log (Error_log_1519311801917.log).
Comment 44 Eclipse Genie CLA 2020-02-13 08:01:51 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.