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

Bug 355623

Summary: [modeling] NPE while running tests
Product: z_Archived Reporter: Benjamin Muskalla <b.muskalla>
Component: MylynAssignee: Miles Parker <milesparker>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 0.9   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 354787    

Description Benjamin Muskalla CLA 2011-08-24 04:52:06 EDT
1. Run tests
2. NPE in console several times

!ENTRY org.eclipse.mylyn.context.core 4 2 2011-08-24 10:49:21.942
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.mylyn.context.core".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.mylyn.modeling.gmf.ContextDecoratorProvider.refresh(ContextDecoratorProvider.java:294)
	at org.eclipse.mylyn.modeling.gmf.ContextDecoratorProvider.refresh(ContextDecoratorProvider.java:311)
	at org.eclipse.mylyn.modeling.gmf.ContextDecoratorProvider.contextChanged(ContextDecoratorProvider.java:348)
	at org.eclipse.mylyn.modeling.gmf.ContextDecoratorProvider$1.contextChanged(ContextDecoratorProvider.java:75)
	at org.eclipse.mylyn.internal.context.core.InteractionContextManager$9.run(InteractionContextManager.java:1085)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.mylyn.internal.context.core.InteractionContextManager.notifyElementsDeleted(InteractionContextManager.java:1076)
	at org.eclipse.mylyn.internal.context.core.InteractionContextManager.deleteElement(InteractionContextManager.java:464)
	at org.eclipse.mylyn.internal.java.ui.InterestUpdateDeltaListener$2.run(InterestUpdateDeltaListener.java:106)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.runApp(NonUIThreadTestApplication.java:54)
	at org.eclipse.pde.internal.junit.runtime.UITestApplication.runApp(UITestApplication.java:41)
	at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.start(NonUIThreadTestApplication.java:48)
	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:344)
	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:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Comment 1 Benjamin Muskalla CLA 2011-08-24 04:54:25 EDT
Only running the @AllEmfTests@ results in this NPE:

!ENTRY org.eclipse.mylyn.context.ui 4 0 2011-08-24 10:53:40.809
!MESSAGE Decoration failed
!STACK 0
java.lang.NullPointerException
	at org.eclipse.mylyn.modeling.context.DomainDelegatedStructureBridge.canBeLandmark(DomainDelegatedStructureBridge.java:80)
	at org.eclipse.mylyn.internal.context.ui.InterestDecoratorLightweight.decorate(InterestDecoratorLightweight.java:69)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:269)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:370)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:330)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 2 Miles Parker CLA 2011-08-29 15:32:22 EDT
Fixed the second one but I can't repreduce the first.
Comment 3 Benjamin Muskalla CLA 2011-08-29 18:47:08 EDT
I think I was just running all tests in the project and didn't use the suite.
Comment 4 Miles Parker CLA 2011-08-31 13:11:42 EDT
OK, I can't reproduce that -- all tests pass on my end. Please retry and reopen if you're still seeing it.