Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Feature annotation not found
Feature annotation not found [message #627586] Sat, 16 May 2009 06:23
John T.E. Timm is currently offline John T.E. Timm
Messages: 160
Registered: July 2009
Senior Member
I'm tring to convert a UML model to EMF using the UML2 model import under
RSM 7.5. I have specified some annotations in the "annotations" property
of the Ecore <<eClass>> stereotype and this is the exception that is
generated:

org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'annotation'
not found. (platform:/resource/MyProject/model/model.emx, 64, 17)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.reportUnknownFeatu re(Unknown
Source)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleUnknownFeatu re(Unknown
Source)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.handleUnknownFeatu re(Unknown
Source)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(Unkn own Source)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(Unk nown
Source)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(Unk nown
Source)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(Unkno wn Source)
at
com.ibm.xtools.emf.core.internal.resource.RMPLoad$RMPXMIHand ler.startElement(Unknown
Source)
at org.eclipse.emf.ecore.xmi.impl.SAXWrapper.startElement(Unkno wn Source)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unk nown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanSt artElement(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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unk nown
Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(Unknown Source)
at org.eclipse.gmf.runtime.emf.core.resources.GMFLoad.load(Unkn own Source)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(Unknow n Source)
at com.ibm.xtools.emf.core.internal.resource.RMPResource.doLoad (Unknown
Source)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Unknow n Source)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Unknow n Source)
at com.ibm.xtools.emf.core.internal.resource.RMPResource.load(U nknown
Source)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(Unknown
Source)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(Unknown
Source)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(Unknown
Source)
at
org.eclipse.uml2.uml.ecore.importer.UMLImporter.doComputeEPa ckages(Unknown
Source)
at org.eclipse.emf.importer.ModelImporter.computeEPackages(Unkn own Source)
at
org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage.refreshModel(Unknown
Source)
at
org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage$3.execute(Unknown
Source)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Unknow n Source)
at org.eclipse.core.internal.resources.Workspace.run(Unknown Source)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread( Unknown
Source)
at org.eclipse.jface.operation.ModalContext.run(Unknown Source)
at org.eclipse.jface.wizard.WizardDialog.run(Unknown Source)
at
org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage.refreshModel(Unknown
Source)
at
org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage.browseWorkspace(Unknown
Source)
at
org.eclipse.emf.converter.ui.contribution.base.ModelConverte rURIPage.doHandleEvent(Unknown
Source)
at
org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage.doHandleEvent(Unknown
Source)
at
org.eclipse.emf.converter.ui.contribution.base.ModelConverte rPage.handleEvent(Unknown
Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.jface.window.Window.runEventLoop(Unknown Source)
at org.eclipse.jface.window.Window.open(Unknown Source)
at
org.eclipse.ui.internal.handlers.WizardHandler$New.executeHa ndler(Unknown
Source)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(Unkno wn Source)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(Unknow n Source)
at org.eclipse.core.commands.Command.executeWithChecks(Unknown Source)
at
org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(Unknown
Source)
at org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(Unknown
Source)
at
org.eclipse.ui.internal.handlers.SlaveHandlerService.execute Command(Unknown
Source)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(U nknown
Source)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Unknown
Source)
at org.eclipse.jface.action.ActionContributionItem.access$2(Unk nown
Source)
at org.eclipse.jface.action.ActionContributionItem$5.handleEven t(Unknown
Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
at org.eclipse.ui.internal.Workbench.access$4(Unknown Source)
at org.eclipse.ui.internal.Workbench$5.run(Unknown Source)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Unknown
Source)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unkn own Source)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (Unknown
Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknow n Source)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(Unknown
Source)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Unknown
Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
at org.eclipse.equinox.launcher.Main.main(Unknown Source)

It is possible that the problem is in some RSM-specific code (something in
com.ibm.xtools.emf.core.internal.resource) but I thought I would post it
here in case someone else has run into this issue and has a workaround.

Thanks,

JT
Previous Topic:Datamodel migration with ecore2ecroe
Next Topic:UML API : BehavioralFeature::setMethod(Behavior behavior) is missing ?
Goto Forum:
  


Current Time: Fri Oct 24 13:42:50 GMT 2014

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

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