Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Luna: applicationXMI argument missing(export app install: applicationXMI argument missing)
Luna: applicationXMI argument missing [message #1189047] Fri, 15 November 2013 23:35 Go to next message
Gregg Stewart is currently offline Gregg Stewart
Messages: 6
Registered: October 2013
Junior Member
Hello,

No matter what I do I keep getting the error: null argument:applicationXMI argument missing.

My apologies if this is an overload of information.
I'll describe what I'm doing and then the full error message:
First, I used the steps here to build eclipse: http://wiki.eclipse.org/Platform-releng/Platform_Build

Then I launch eclipse from the folder: C:\z\eclipse.platform.releng.tychoeclipsebuilder\platform\target\products\org.eclipse.platform.ide\win32\win32\x86_64

This is the instance of Eclipse that I am trying to install a plugin using P2. The p2 repository is created by exporting a project created (in separately downloaded versions of eclipse like Luna and 4.3) like so:
1. create plugin project
2. create application model -> add a menu contribution -> menu -> handledmenuitem
3. create a product configuration and click new next to the Product Field (specifying itself as the plugin, arbitrary product id, and org.eclipse.e4.ui.workbench.swt.E4Application).
4. From the .product file i specify a dependency of itself.
5. Open the build.properties and select the following for Binary Builds:
- Application.e4xmi
- META-INF
- plugin.xml
- proj.product
6. From the .product I deselect "The product includes native launcher artifacts" and then click the "Eclipse Product export wizard" link specifying:
- Directory
- Generate p2 repository
- other defaults.


Then I try to install this plugin using P2 but when it relaunches Eclipse an error log gets created with the following:

=====ERROR LOG======
!SESSION 2013-11-15 18:10:46.542 -----------------------------------------------
eclipse.buildId=4.4.0.I20131113-2115
java.version=1.6.0_45
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.equinox.app 0 0 2013-11-15 18:10:49.364
!MESSAGE Product com.ca.proj.product could not be found.

!ENTRY org.eclipse.osgi 4 0 2013-11-15 18:10:49.493
!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:349)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:252)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:146)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:109)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:80)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:372)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:226)
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:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)


Many thanks,
Gregg

[Updated on: Fri, 15 November 2013 23:36]

Report message to a moderator

Re: Luna: applicationXMI argument missing [message #1194955 is a reply to message #1189047] Mon, 18 November 2013 19:41 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas Helming
Messages: 455
Registered: July 2009
Senior Member
Hi,
the application definition (in the plugin.xml) needs a property
"applicationXMI" value: "bundlename/Application.e4xmi"

Make sure, the Application.e4xmi is part of the build (build.properties)

Cheers

Jonas

Am 16.11.2013 00:35, schrieb Gregg Stewart:
> Hello,
>
> No matter what I do I keep getting the error: null
> argument:applicationXMI argument missing.
>
> My apologies if this is an overload of information.
> I'll describe what I'm doing and then the full error message:
> First, I used the steps here to build eclipse:
> http://wiki.eclipse.org/Platform-releng/Platform_Build
>
> Then I launch eclipse from the folder:
> C:\z\eclipse.platform.releng.tychoeclipsebuilder\platform\target\products\org.eclipse.platform.ide\win32\win32\x86_64
>
>
> This is the instance of Eclipse that I am trying to install a plugin
> using P2. The p2 repository is created by exporting a project created
> (in separately downloaded versions of eclipse like Luna and 4.3) like so:
> 1. create plugin project
> 2. create application model -> add a menu contribution -> menu ->
> handledmenuitem
> 3. create a product configuration and click new next to the Product
> Field (specifying itself as the plugin, arbitrary product id, and
> org.eclipse.e4.ui.workbench.swt.E4Application).
> 4. From the .product file i specify a dependency of itself. 5. Open the
> build.properties and select the following for Binary Builds: -
> Application.e4xmi
> - META-INF
> - plugin.xml
> - proj.product
> 6. From the .product I deselect "The product includes native launcher
> artifacts" and then click the "Eclipse Product export wizard" link
> specifying:
> - Directory
> - Generate p2 repository
> - other defaults.
>
>
> Then I try to install this plugin using P2 but when it relaunches
> Eclipse an error log gets created with the following:
>
> =====ERROR LOG======
> !SESSION 2013-11-15 18:10:46.542
> -----------------------------------------------
> eclipse.buildId=4.4.0.I20131113-2115
> java.version=1.6.0_45
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
> Command-line arguments: -os win32 -ws win32 -arch x86_64
>
> !ENTRY org.eclipse.equinox.app 0 0 2013-11-15 18:10:49.364
> !MESSAGE Product com.ca.proj.product could not be found.
>
> !ENTRY org.eclipse.osgi 4 0 2013-11-15 18:10:49.493
> !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:349)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:252)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:146)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:109)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:80)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:372)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:226)
>
> 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:636)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
>
>
> Many thanks,
> Gregg
Re: Luna: applicationXMI argument missing [message #1196525 is a reply to message #1194955] Tue, 19 November 2013 13:09 Go to previous messageGo to next message
Gregg Stewart is currently offline Gregg Stewart
Messages: 6
Registered: October 2013
Junior Member
Hello Jonas,

Thank you for your update. I will try your suggestion and update the post. But I thought I had tried this back when seeing a bug that looked to be resolved by using application.e4xmi as a default. https://bugs.eclipse.org/bugs/show_bug.cgi?id=306623

One thing I was able to try over the weekend was to install that package to a full downloaded distribution of eclipse rcp. It installed and did not have problems during the restart. I am not sure if this means there are missing packages from platform only installs.
note: it menu I defined in the app model doesn't work how I thought it would but that is something separate.

Cheers,
Gregg
Re: Luna: applicationXMI argument missing [message #1231908 is a reply to message #1196525] Wed, 15 January 2014 18:15 Go to previous message
Charles Li is currently offline Charles Li
Messages: 16
Registered: December 2009
Junior Member
I had exactly the same error this morning. I finally got it work and it seems the reason was (somehow) my product definition does not include the defining plug-in in the dependencies. Not sure if your case is the same, but just want to give you some pointer.
Previous Topic:Displaying progress in Eclipse 4
Next Topic:RCP Product Export Won't Create Launcher Executable
Goto Forum:
  


Current Time: Sat Oct 25 00:58:33 GMT 2014

Powered by FUDForum. Page generated in 0.02805 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software