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

Bug 340477

Summary: Unable to run p2 UI Junit plug-in tests (as ui.ide.workbench application)
Product: [Eclipse Project] e4 Reporter: DJ Houghton <dj.houghton>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: pwebster, remy.suen
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description DJ Houghton CLA 2011-03-18 16:50:51 EDT
Version: 4.1.0
Build id: I20110316-1035

I am trying to run the "All p2 UI tests" launch config (with all workspace plug-ins included in the configuration) and I get the following error. I'm not sure what this argument should be, where I should set it, or if it is an argument that someone else should set. 

I'll set as major because I am unable to run the p2 UI tests and therefore can't (shouldn't) release any code. 

!ENTRY org.eclipse.osgi 4 0 2011-03-18 16:44:30.448
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.AssertionFailedException: null argument:applicationXMI argument missing
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:291)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:205)
	at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:531)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:524)
	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:43)
	at org.eclipse.pde.internal.junit.runtime.UITestApplication.runApp(UITestApplication.java:44)
	at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.start(NonUIThreadTestApplication.java:37)
	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 DJ Houghton CLA 2011-03-18 16:52:38 EDT
Similar to the error reported here: bug 317912.
Comment 2 Remy Suen CLA 2011-03-18 17:56:30 EDT
I've seen this before also but could not figure out the problem immediately. We are running 100 p2 UI tests during our 4.1 SDK build though and they (supposedly) pass.
Comment 3 Paul Webster CLA 2011-03-18 19:21:31 EDT
Which product (or application) is your launch config running?

PW
Comment 4 DJ Houghton CLA 2011-03-21 09:21:21 EDT
the ui.ide.workbench application
Comment 5 Paul Webster CLA 2011-03-21 09:42:44 EDT
Try changing that to the org.eclipse.sdk.ide product instead.

PW
Comment 6 DJ Houghton CLA 2011-03-21 14:02:28 EDT
Yep, changing the launch config to run the SDK product worked. Thanks, Paul. I've adjusted the bug report title and reduced the bug severity to reflect that the problem only occurs when the launch config is trying to run the ui.ide.workbench application.
Comment 7 Paul Webster CLA 2011-03-21 14:08:42 EDT
This is the underlying problem: 4.1 only works with products, not applications.

PW

*** This bug has been marked as a duplicate of bug 317912 ***