Skip to main content



      Home
Home » Modeling » EMF » Feature 'xmi' not found exception
Feature 'xmi' not found exception [message #428428] Fri, 20 March 2009 13:59 Go to next message
Eclipse UserFriend
Hello

I'm new to the EMF. I am trying to create new .ecore file (I am using GMF
tutorials). But whenever I create new ecore file and I try to open it I
get below mwntioned exception. I am using Eclipce RCP distribution and I
have installed significant amount of libraries for RCP. Any idea please?
I'm quite desperate. Thanks a lot!


org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'xmi' not
found.
(platform:/resource/org.eclipse.gmf.examples.mindmap/model/D efaultName.ecore,
4, 60)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)
at
org.eclipse.gmf.ecore.part.EcoreInitDiagramFileAction.run(Ec oreInitDiagramFileAction.java:84)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:251)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1 360)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3482)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3068)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
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(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature
'xmi' not found.
(platform:/resource/org.eclipse.gmf.examples.mindmap/model/D efaultName.ecore,
4, 60)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.reportUnknownFeatu re(XMLHandler.java:1976)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleUnknownFeatu re(XMLHandler.java:1940)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.handleUnknownFeatu re(XMIHandler.java:149)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.setAttribValue(XML Handler.java:2694)
at
org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler.handleObjectAtt ribs(SAXXMIHandler.java:80)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromFa ctory(XMLHandler.java:2178)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1316)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1454)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:1019)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:83)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:1001)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:712)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:167)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unk nown
Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyEle ment(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unkn own Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanSt artElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatc her.scanRootElementHook(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragme ntContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDo cument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1445)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1241)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:255)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:270)
... 33 more
Re: Feature 'xmi' not found exception [message #428431 is a reply to message #428428] Fri, 20 March 2009 14:29 Go to previous messageGo to next message
Eclipse UserFriend
Tomi,

It sounds like an installation problem. Do the EMF tutorials work?


Tomi wrote:
> Hello
>
> I'm new to the EMF. I am trying to create new .ecore file (I am using
> GMF tutorials). But whenever I create new ecore file and I try to open
> it I get below mwntioned exception. I am using Eclipce RCP
> distribution and I have installed significant amount of libraries for
> RCP. Any idea please? I'm quite desperate. Thanks a lot!
>
>
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
> org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'xmi' not
> found.
> (platform:/resource/org.eclipse.gmf.examples.mindmap/model/D efaultName.ecore,
> 4, 60)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)
>
> at
> org.eclipse.gmf.ecore.part.EcoreInitDiagramFileAction.run(Ec oreInitDiagramFileAction.java:84)
>
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:251)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1 360)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3482)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3068)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
>
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>
> 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(EclipseS tarter.java:386)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> Caused by: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature
> 'xmi' not found.
> (platform:/resource/org.eclipse.gmf.examples.mindmap/model/D efaultName.ecore,
> 4, 60)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.reportUnknownFeatu re(XMLHandler.java:1976)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleUnknownFeatu re(XMLHandler.java:1940)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.handleUnknownFeatu re(XMIHandler.java:149)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.setAttribValue(XML Handler.java:2694)
>
> at
> org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler.handleObjectAtt ribs(SAXXMIHandler.java:80)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromFa ctory(XMLHandler.java:2178)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1316)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1454)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:1019)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:83)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:1001)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:712)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:167)
>
> at
> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unk nown Source)
> at
> org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyEle ment(Unknown
> Source)
> at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unkn own
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanSt artElement(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatc her.scanRootElementHook(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragme ntContentDispatcher.dispatch(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDo cument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1445)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1241)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:255)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:270)
>
> ... 33 more
>
>
>
Re: Feature 'xmi' not found exception [message #428450 is a reply to message #428431] Sat, 21 March 2009 09:23 Go to previous messageGo to next message
Eclipse UserFriend
ED

This error only appears on my MAC machine. When I downloaded the windows
version and tried it in my Virtual MAchine everything worked fine. Do you
have any idea? It seem that it's failing on parsing the XML.

I downloaded fresh full packages (those modeling ones of 310MB)

Have a great day!

Tomas
Re: Feature 'xmi' not found exception [message #428451 is a reply to message #428450] Sat, 21 March 2009 10:21 Go to previous messageGo to next message
Eclipse UserFriend
Tomas,

So it seems but there's no OS-specific code in EMF so I can't imagine.
Maybe a fresh installation would help...


Tomi wrote:
> ED
>
> This error only appears on my MAC machine. When I downloaded the
> windows version and tried it in my Virtual MAchine everything worked
> fine. Do you have any idea? It seem that it's failing on parsing the XML.
> I downloaded fresh full packages (those modeling ones of 310MB)
>
> Have a great day!
>
> Tomas
>
Re: Feature 'xmi' not found exception [message #428481 is a reply to message #428451] Mon, 23 March 2009 13:33 Go to previous messageGo to next message
Eclipse UserFriend
Hello ED

I downloaded the eclipse fresh (package with EMF modelling of 310MB) but
the error appears always. I tried to install some more components into it
but error remains.

When trying to open the ecore file i get 3 excetions in the problem list:

feature ecore not found
feature xsi not found
feature xmi not found

Any idea?

Thanks

PS: As i said .. the windows version works flawlesly.
Re: Feature 'xmi' not found exception [message #428492 is a reply to message #428481] Mon, 23 March 2009 15:32 Go to previous messageGo to next message
Eclipse UserFriend
Tomi,

Maybe it's a problem with the JRE you're using. I don't know. I've not
heard of people with Macs having this problem and I don't have a Mac to
try out anything. Maybe someone with a Mac will comment.


Tomi wrote:
> Hello ED
>
> I downloaded the eclipse fresh (package with EMF modelling of 310MB)
> but the error appears always. I tried to install some more components
> into it but error remains.
>
> When trying to open the ecore file i get 3 excetions in the problem list:
>
> feature ecore not found
> feature xsi not found
> feature xmi not found
>
> Any idea?
>
> Thanks
>
> PS: As i said .. the windows version works flawlesly.
>
Re: Feature 'xmi' not found exception [message #702217 is a reply to message #428428] Tue, 26 July 2011 01:17 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I just had the same problem (?), and got it resolved by fixing my classpath.

Regards, Sebastian.
Re: Feature 'xmi' not found exception [message #1725344 is a reply to message #702217] Wed, 02 March 2016 15:17 Go to previous messageGo to next message
Eclipse UserFriend
Sebastian Krueger wrote on Tue, 26 July 2011 05:17

I got it resolved by fixing my classpath.


Hi Sebastian,
it is a long time ago, but do you remember which jar had been missing / caused the "Feature 'xmi' not found" problem?

Best regards - Thomas
Re: Feature 'xmi' not found exception [message #1725424 is a reply to message #1725344] Thu, 03 March 2016 07:25 Go to previous message
Eclipse UserFriend
Thomas,

This probably means you're loading an XMI serialization not with an
XMIResourceImpl but rather with an XMLResourceImpl. I.e., you have some
issue with not having an appropriate resource factory registered.

On 02.03.2016 21:17, Thomas Taeger wrote:
> Sebastian Krueger wrote on Tue, 26 July 2011 05:17
>> I got it resolved by fixing my classpath.
>
>
> Hi Sebastian,
> it is a long time ago, but do you remember which jar had been missing
> / caused the "Feature 'xmi' not found" problem?
>
> Best regards - Thomas
>
Previous Topic:NP Exception in EStructuralFeature.Internal.SettingDelegate
Next Topic:NPE on selecting 2 eobjects from 2 projects
Goto Forum:
  


Current Time: Sat Nov 01 18:49:33 EDT 2025

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

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

Back to the top