Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Error in applicationXMI argument
Error in applicationXMI argument [message #926572] Fri, 28 September 2012 19:39 Go to next message
Alberto Amaro is currently offline Alberto AmaroFriend
Messages: 7
Registered: August 2012
Junior Member
Hi
After many days working with an E4 Application without problems, suddenly I have the following error when I try to RUN the application.

org.eclipse.core.runtime.AssertionFailedException: null argument:applicationXMI argument missing at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)

I suppose I have changed something related with ids or names, but I've spent many hours trying to identify the reason without success:

Besides, the plugin.xml has this property defined:

<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="org.eclipse.e4.ui.workbench.swt.E4Application"
name="es.aecid.IATI">
<property
name="appName"
value="es.aecid.IATI">
</property>
<property
name="applicationXMI"
value="es.aecid.IATI/Application.e4xmi">
</property>
<property
name="applicationCSS"
value="platform:/plugin/es.aecid.IATI/css/default.css">
</property>
</product>
</extension>
</plugin>

And when I debug the process I see that the appModelPath is null and, after, in the IF LOOP, the brandingBundle variable received from "appContext.getBrandingBundle()" is null too:

String appModelPath = getArgValue(E4Workbench.XMI_URI_ARG, appContext,
false);
if (appModelPath == null || appModelPath.length() == 0) {
Bundle brandingBundle = appContext.getBrandingBundle();
if (brandingBundle != null)
appModelPath = brandingBundle.getSymbolicName() + "/"
+ E4Application.APPLICATION_MODEL_PATH_DEFAULT;
}
Assert.isNotNull(appModelPath, E4Workbench.XMI_URI_ARG
+ " argument missing"); //$NON-NLS-1$


Any help is really, really appreciated.
Thanks
Alberto
Re: Error in applicationXMI argument [message #926637 is a reply to message #926572] Fri, 28 September 2012 21:13 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

Have you changed your e4xmi file name? Have you changed your product file name? What are they called?
Re: Error in applicationXMI argument [message #927420 is a reply to message #926637] Sat, 29 September 2012 16:44 Go to previous messageGo to next message
Alberto Amaro is currently offline Alberto AmaroFriend
Messages: 7
Registered: August 2012
Junior Member
Excuse me for the delay.
Thanks for your help.

The name of the product file is: "es.aecid.IATI.product" and the name of the e4xmi is: "Application.e4xmi"

This is the content of the Product file:
<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>

<product name="es.aecid.IATI" id="es.aecid.IATI.product" application="org.eclipse.e4.ui.workbench.swt.E4Application" version="1.0.0.qualifier" useFeatures="false" includeLaunchers="false">

<configIni use="default">
</configIni>

<launcherArgs>
<programArgs>-clearPersistedState</programArgs>
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
</launcherArgs>

<windowImages/>

<launcher>
<solaris/>
<win useIco="true">
<bmp/>
</win>
</launcher>

<vm>
</vm>

<plugins>
<plugin id="com.ibm.icu"/>
<plugin id="es.aecid.IATI"/>
<plugin id="es.aecid.PluginXML"/>
<plugin id="javax.annotation"/>
<plugin id="javax.inject"/>
<plugin id="org.apache.batik.css"/>
<plugin id="org.apache.batik.util"/>
<plugin id="org.apache.batik.util.gui"/>
<plugin id="org.apache.commons.logging"/>
<plugin id="org.eclipse.core.commands"/>
<plugin id="org.eclipse.core.contenttype"/>
<plugin id="org.eclipse.core.databinding"/>
<plugin id="org.eclipse.core.databinding.beans"/>
<plugin id="org.eclipse.core.databinding.observable"/>
<plugin id="org.eclipse.core.databinding.property"/>
<plugin id="org.eclipse.core.expressions"/>
<plugin id="org.eclipse.core.filesystem"/>
<plugin id="org.eclipse.core.filesystem.aix.ppc" fragment="true"/>
<plugin id="org.eclipse.core.filesystem.hpux.ia64_32" fragment="true"/>
<plugin id="org.eclipse.core.filesystem.linux.ppc" fragment="true"/>
<plugin id="org.eclipse.core.filesystem.linux.x86" fragment="true"/>
<plugin id="org.eclipse.core.filesystem.linux.x86_64" fragment="true"/>
<plugin id="org.eclipse.core.filesystem.macosx" fragment="true"/>
<plugin id="org.eclipse.core.filesystem.solaris.sparc" fragment="true"/>
<plugin id="org.eclipse.core.filesystem.win32.x86" fragment="true"/>
<plugin id="org.eclipse.core.filesystem.win32.x86_64" fragment="true"/>
<plugin id="org.eclipse.core.jobs"/>
<plugin id="org.eclipse.core.resources"/>
<plugin id="org.eclipse.core.resources.win32.x86" fragment="true"/>
<plugin id="org.eclipse.core.runtime"/>
<plugin id="org.eclipse.core.runtime.compatibility.registry" fragment="true"/>
<plugin id="org.eclipse.e4.core.commands"/>
<plugin id="org.eclipse.e4.core.contexts"/>
<plugin id="org.eclipse.e4.core.di"/>
<plugin id="org.eclipse.e4.core.di.extensions"/>
<plugin id="org.eclipse.e4.core.services"/>
<plugin id="org.eclipse.e4.tools.emf.liveeditor"/>
<plugin id="org.eclipse.e4.tools.emf.ui"/>
<plugin id="org.eclipse.e4.tools.emf.ui.script.js"/>
<plugin id="org.eclipse.e4.tools.services"/>
<plugin id="org.eclipse.e4.ui.bindings"/>
<plugin id="org.eclipse.e4.ui.css.core"/>
<plugin id="org.eclipse.e4.ui.css.swt"/>
<plugin id="org.eclipse.e4.ui.css.swt.theme"/>
<plugin id="org.eclipse.e4.ui.di"/>
<plugin id="org.eclipse.e4.ui.model.workbench"/>
<plugin id="org.eclipse.e4.ui.services"/>
<plugin id="org.eclipse.e4.ui.widgets"/>
<plugin id="org.eclipse.e4.ui.workbench"/>
<plugin id="org.eclipse.e4.ui.workbench.renderers.swt"/>
<plugin id="org.eclipse.e4.ui.workbench.swt"/>
<plugin id="org.eclipse.e4.ui.workbench3"/>
<plugin id="org.eclipse.emf.common"/>
<plugin id="org.eclipse.emf.databinding"/>
<plugin id="org.eclipse.emf.databinding.edit"/>
<plugin id="org.eclipse.emf.ecore"/>
<plugin id="org.eclipse.emf.ecore.change"/>
<plugin id="org.eclipse.emf.ecore.xmi"/>
<plugin id="org.eclipse.emf.edit"/>
<plugin id="org.eclipse.equinox.app"/>
<plugin id="org.eclipse.equinox.common"/>
<plugin id="org.eclipse.equinox.concurrent"/>
<plugin id="org.eclipse.equinox.ds"/>
<plugin id="org.eclipse.equinox.event"/>
<plugin id="org.eclipse.equinox.p2.core"/>
<plugin id="org.eclipse.equinox.p2.engine"/>
<plugin id="org.eclipse.equinox.p2.metadata"/>
<plugin id="org.eclipse.equinox.p2.metadata.repository"/>
<plugin id="org.eclipse.equinox.p2.repository"/>
<plugin id="org.eclipse.equinox.preferences"/>
<plugin id="org.eclipse.equinox.registry"/>
<plugin id="org.eclipse.equinox.security"/>
<plugin id="org.eclipse.equinox.security.win32.x86" fragment="true"/>
<plugin id="org.eclipse.equinox.util"/>
<plugin id="org.eclipse.help"/>
<plugin id="org.eclipse.jface"/>
<plugin id="org.eclipse.jface.databinding"/>
<plugin id="org.eclipse.jface.text"/>
<plugin id="org.eclipse.osgi"/>
<plugin id="org.eclipse.osgi.services"/>
<plugin id="org.eclipse.swt"/>
<plugin id="org.eclipse.swt.carbon.macosx" fragment="true"/>
<plugin id="org.eclipse.swt.cocoa.macosx" fragment="true"/>
<plugin id="org.eclipse.swt.cocoa.macosx.x86_64" fragment="true"/>
<plugin id="org.eclipse.swt.gtk.linux.ppc" fragment="true"/>
<plugin id="org.eclipse.swt.gtk.linux.ppc64" fragment="true"/>
<plugin id="org.eclipse.swt.gtk.linux.s390" fragment="true"/>
<plugin id="org.eclipse.swt.gtk.linux.s390x" fragment="true"/>
<plugin id="org.eclipse.swt.gtk.linux.x86" fragment="true"/>
<plugin id="org.eclipse.swt.gtk.linux.x86_64" fragment="true"/>
<plugin id="org.eclipse.swt.gtk.solaris.sparc" fragment="true"/>
<plugin id="org.eclipse.swt.gtk.solaris.x86" fragment="true"/>
<plugin id="org.eclipse.swt.motif.aix.ppc" fragment="true"/>
<plugin id="org.eclipse.swt.motif.hpux.ia64_32" fragment="true"/>
<plugin id="org.eclipse.swt.motif.linux.x86" fragment="true"/>
<plugin id="org.eclipse.swt.motif.solaris.sparc" fragment="true"/>
<plugin id="org.eclipse.swt.photon.qnx.x86" fragment="true"/>
<plugin id="org.eclipse.swt.win32.win32.x86" fragment="true"/>
<plugin id="org.eclipse.swt.win32.win32.x86_64" fragment="true"/>
<plugin id="org.eclipse.text"/>
<plugin id="org.eclipse.ui"/>
<plugin id="org.eclipse.ui.ide"/>
<plugin id="org.eclipse.ui.navigator"/>
<plugin id="org.eclipse.ui.win32" fragment="true"/>
<plugin id="org.eclipse.ui.workbench"/>
<plugin id="org.mozilla.javascript"/>
<plugin id="org.w3c.css.sac"/>
<plugin id="org.w3c.dom.smil"/>
<plugin id="org.w3c.dom.svg"/>
</plugins>
</product>



Re: Error in applicationXMI argument [message #928543 is a reply to message #927420] Sun, 30 September 2012 18:49 Go to previous messageGo to next message
Alberto Amaro is currently offline Alberto AmaroFriend
Messages: 7
Registered: August 2012
Junior Member
During this morning I have tested the same problematic E4 code in other Eclipse Juno RCP installation (in my laptop), and, to my surprise, the application has run perfectly.

Usually to update an application in a different installation of Eclipse I delete the old one and I import the new release copying it again to the workspace (I don't know if this is the better way, but during the last months it has worked)

So I suppose that the fail (eclipse.buildId=unknown and null argument:applicationXMI) was due to some old property or id saved in the Eclipse Configuration.

I have deleted (to force the properties refresh) "configuration\org.eclipse.osgi" dir and the "\.metadata\.plugins\org.eclipse.pde.core\es.aecid.IATI.product" dir, but the error was still there.

So, finally, I have installed the Eclipse RCP June again and I have imported the code.

Now all it's Ok.

I don't know it this is a bug of Eclipse of if I've done something bad during previous importing process. Anyway... as I've told you before now the Application runs.
Thanks for your interest.

Alberto
Re: Error in applicationXMI argument [message #928561 is a reply to message #928543] Sun, 30 September 2012 19:15 Go to previous message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

It may have been some renaming or plugin.xml modification. Regardless, glad it works.
Previous Topic:scrollbar is hidden (Mac 10.7)
Next Topic:mixing eclipse 3 and eclipse 4
Goto Forum:
  


Current Time: Sat Dec 20 08:53:32 GMT 2014

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

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