Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Applied Profile & ArrayStoreException
Applied Profile & ArrayStoreException [message #471354] Tue, 06 March 2007 22:03 Go to next message
Steffen Becker is currently offline Steffen BeckerFriend
Messages: 31
Registered: July 2009
Member
Hi,

I'm trying to import an UML2 model generated with RSA6 as ECORE model.
This has been working since I started to use it from Eclipse 3.1 on...

However, with the current version is the first which fails in
org.eclipse.emf.importer with the following exception. Any idea what to
do? Is it a bug?

Value 'org.eclipse.uml2.uml.internal.impl.ProfileApplicationImpl@191222b
(isStrict: false)' is not legal.
(file:/C:/coding/code/rsa_exports/pcm.uml2, 7, 85)

org.eclipse.emf.ecore.xmi.IllegalValueException: Value
'org.eclipse.uml2.uml.internal.impl.ProfileApplicationImpl@191222b
(isStrict: false)' is not legal.
(file:/C:/coding/code/rsa_exports/pcm.uml2, 7, 85)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XM LHandler.java:2506)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XM LHandler.java:2491)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromTy peName(XMLHandler.java:1944)
at
org.eclipse.uml2.uml.internal.resource.UML22UMLHandler.creat eObject(UML22UMLHandler.java:62)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLH andler.java:1653)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:957)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:87)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:936)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:681)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:163)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:178)
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:1164)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:965)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:256)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:271)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:398)
at
org.eclipse.uml2.uml.ecore.importer.UMLImporter.doComputeEPa ckages(UMLImporter.java:157)
at
org.eclipse.emf.importer.ModelImporter.computeEPackages(Mode lImporter.java:527)
at
org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage.refreshModel(ModelImporterDetailPage.java:406)
at
org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage$3.execute(ModelImporterDetailPage.java:351)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1798)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 890)
at
org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage.refreshModel(ModelImporterDetailPage.java:374)
at
org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage.handleOriginalModelFile(ModelImporterDetailPage.ja va:118)
at
org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage$1.run(ModelImporterDetailPage.java:109)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3467)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3107)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at
org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:115)
at
org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:105)
at
org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:243)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:545)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3490)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3104)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2264)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2228)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 03)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:457)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:452)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:101)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:146)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:354)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
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(Main.java: 476)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416)
at org.eclipse.equinox.launcher.Main.run(Main.java:1124)
Caused by: java.lang.ArrayStoreException
at org.eclipse.emf.common.util.BasicEList.assign(BasicEList.jav a:191)
at org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList. java:645)
at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUn ique(NotifyingListImpl.java:331)
at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingListImpl.java:288)
at
org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.setValue(XMLHel perImpl.java:1088)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XM LHandler.java:2501)
.... 77 more
Re: Applied Profile & ArrayStoreException [message #471355 is a reply to message #471354] Tue, 06 March 2007 22:22 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Steffen,

Would you be able to provide a representative sample so that we can
investigate?

Kenn

"Steffen Becker" <becker@informatik.uni-oldenburg.de> wrote in message
news:eskoen$j8q$1@utils.eclipse.org...
> Hi,
>
> I'm trying to import an UML2 model generated with RSA6 as ECORE model.
> This has been working since I started to use it from Eclipse 3.1 on...
>
> However, with the current version is the first which fails in
> org.eclipse.emf.importer with the following exception. Any idea what to
> do? Is it a bug?
>
> Value 'org.eclipse.uml2.uml.internal.impl.ProfileApplicationImpl@191222b
> (isStrict: false)' is not legal.
> (file:/C:/coding/code/rsa_exports/pcm.uml2, 7, 85)
>
> org.eclipse.emf.ecore.xmi.IllegalValueException: Value
> 'org.eclipse.uml2.uml.internal.impl.ProfileApplicationImpl@191222b
> (isStrict: false)' is not legal.
> (file:/C:/coding/code/rsa_exports/pcm.uml2, 7, 85)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XM LHandler.java:2506)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XM LHandler.java:2491)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromTy peName(XMLHandler.java:1944)
> at
> org.eclipse.uml2.uml.internal.resource.UML22UMLHandler.creat eObject(UML22UMLHandler.java:62)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLH andler.java:1653)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:957)
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:87)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:936)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:681)
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:163)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDriver.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
> Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:178)
> 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:1164)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:965)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:256)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:271)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:398)
> at
> org.eclipse.uml2.uml.ecore.importer.UMLImporter.doComputeEPa ckages(UMLImporter.java:157)
> at
> org.eclipse.emf.importer.ModelImporter.computeEPackages(Mode lImporter.java:527)
> at
> org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage.refreshModel(ModelImporterDetailPage.java:406)
> at
> org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage$3.execute(ModelImporterDetailPage.java:351)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1798)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 890)
> at
> org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage.refreshModel(ModelImporterDetailPage.java:374)
> at
> org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage.handleOriginalModelFile(ModelImporterDetailPage.ja va:118)
> at
> org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage$1.run(ModelImporterDetailPage.java:109)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3467)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3107)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
> at org.eclipse.jface.window.Window.open(Window.java:796)
> at
> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:115)
> at
> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:105)
> at
> org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:243)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:545)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:402)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3490)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3104)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2264)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2228)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 03)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:457)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:452)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:101)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:146)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:354)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
> 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(Main.java: 476)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1124)
> Caused by: java.lang.ArrayStoreException
> at org.eclipse.emf.common.util.BasicEList.assign(BasicEList.jav a:191)
> at org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList. java:645)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUn ique(NotifyingListImpl.java:331)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingListImpl.java:288)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.setValue(XMLHel perImpl.java:1088)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XM LHandler.java:2501)
> ... 77 more
Re: Applied Profile & ArrayStoreException [message #471356 is a reply to message #471355] Wed, 07 March 2007 06:10 Go to previous messageGo to next message
Steffen Becker is currently offline Steffen BeckerFriend
Messages: 31
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------000703060106050700020305
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Kenn Hussey schrieb:
> Steffen,
>
> Would you be able to provide a representative sample so that we can
> investigate?
>
> Kenn

Sure, I can attach one. This is the most basic model of a bunch of UML
models which belong together. However, this one is stand-alone and has
only one class which is called "Identifier" to mark classed which should
have IDs. The applied profile is the Ecore-Profile of RSA6 (maybe the
source of the problem?). As I said before, this worked in all earlier
versions of the plugin.

If you open the file directly, there is no error message (which I find
also strange) but the class is not there :-(. In the EMF Project Dialog
it causes the afore meantioned exception.

However, it is possible to open it in M4, save the imported uml file and
open it with M5. This works correctly.

Cheers,
Steffen

--------------000703060106050700020305
Content-Type: text/plain;
name="identifier.uml2"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
filename="identifier.uml2"

<?xml version="1.0" encoding="UTF-8"?>
<uml:Model xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Ecore_0="http:///Ecore_0.profile.uml2" xmlns:uml="http://www.eclipse.org/uml2/1.0.0/UML" xsi:schemaLocation="http:///Ecore_0.profile.uml2 pathmap://UML2_PROFILES/Ecore.profile.uml2#_v9VUsK87Edi5QpYe Y_yIpg" xmi:id="_hl1PocjwEdu-zpdkLYojiw" name="identifier" appliedProfile="_hl1PpcjwEdu-zpdkLYojiw _hl1PqMjwEdu-zpdkLYojiw _hl1Pq8jwEdu-zpdkLYojiw _hl1Pr8jwEdu-zpdkLYojiw">
<eAnnotations xmi:id="_hl1PosjwEdu-zpdkLYojiw" source="http://www.eclipse.org/emf/2002/Ecore" />
<eAnnotations xmi:id="_hl1Po8jwEdu-zpdkLYojiw" source="appliedStereotypes">
<contents xmi:type="Ecore_0:Ecore__EPackage" xmi:id="_hl1PpMjwEdu-zpdkLYojiw" nsPrefix="identifier" nsURI="http://sdq.ipd.uka.de/Identifier/1.0" basePackage="de.uka.ipd.sdq" />
</eAnnotations>
<packageImport xmi:type="uml:ProfileApplication" xmi:id="_hl1PpcjwEdu-zpdkLYojiw">
<eAnnotations xmi:id="_hl1PpsjwEdu-zpdkLYojiw" source="attributes">
<details xmi:id="_hl1Pp8jwEdu-zpdkLYojiw" key="version" value="0" />
</eAnnotations>
<importedPackage xmi:type="uml:Profile" href=" pathmap://UML2_PROFILES/Basic.profile.uml2#_6mFRgK86Edih9-GG 5afQ0g" />
<importedProfile href=" pathmap://UML2_PROFILES/Basic.profile.uml2#_6mFRgK86Edih9-GG 5afQ0g" />
</packageImport>
<packageImport xmi:type="uml:ProfileApplication" xmi:id="_hl1PqMjwEdu-zpdkLYojiw">
<eAnnotations xmi:id="_hl1PqcjwEdu-zpdkLYojiw" source="attributes">
<details xmi:id="_hl1PqsjwEdu-zpdkLYojiw" key="version" value="0" />
</eAnnotations>
<importedPackage xmi:type="uml:Profile" href=" pathmap://UML2_PROFILES/Intermediate.profile.uml2#_Cz7csK87E dih9-GG5afQ0g" />
<importedProfile href=" pathmap://UML2_PROFILES/Intermediate.profile.uml2#_Cz7csK87E dih9-GG5afQ0g" />
</packageImport>
<packageImport xmi:type="uml:ProfileApplication" xmi:id="_hl1Pq8jwEdu-zpdkLYojiw">
<eAnnotations xmi:id="_hl1PrMjwEdu-zpdkLYojiw" source="attributes">
<details xmi:id="_hl1PrcjwEdu-zpdkLYojiw" key="version" value="0" />
</eAnnotations>
<importedPackage xmi:type="uml:Profile" href=" pathmap://UML2_PROFILES/Complete.profile.uml2#_M7pTkK87Edih9 -GG5afQ0g" />
<importedProfile href=" pathmap://UML2_PROFILES/Complete.profile.uml2#_M7pTkK87Edih9 -GG5afQ0g" />
</packageImport>
<packageImport xmi:id="_hl1PrsjwEdu-zpdkLYojiw">
<importedPackage xmi:type="uml:Model" href=" pathmap://UML2_LIBRARIES/UML2PrimitiveTypes.library.uml2#_Ef RZoK86EdieaYgxtVWN8Q" />
</packageImport>
<packageImport xmi:type="uml:ProfileApplication" xmi:id="_hl1Pr8jwEdu-zpdkLYojiw">
<eAnnotations xmi:id="_hl1PsMjwEdu-zpdkLYojiw" source="attributes">
<details xmi:id="_hl1PscjwEdu-zpdkLYojiw" key="version" value="0" />
</eAnnotations>
<importedPackage xmi:type="uml:Profile" href=" pathmap://UML2_PROFILES/Ecore.profile.uml2#_siPt4K87Edi5QpYe Y_yIpg" />
<importedProfile href=" pathmap://UML2_PROFILES/Ecore.profile.uml2#_siPt4K87Edi5QpYe Y_yIpg" />
</packageImport>
<ownedMember xmi:type="uml:Class" xmi:id="_hl1PssjwEdu-zpdkLYojiw" name="Identifier" isAbstract="true">
<ownedComment xmi:id="_hl1Ps8jwEdu-zpdkLYojiw" body="Identifiers are not fixed to one realization.&#xD;&#xA;GUIDs are recommend. GUIDs are described in their own model. See GUIDModel (GUID.emx).&#xD;&#xA;Identifier implementations can be found in external projects only." annotatedElement="_hl1PssjwEdu-zpdkLYojiw" />
<ownedRule xmi:id="_hl1PtMjwEdu-zpdkLYojiw" name="idHasToBeUnique" constrainedElement="_hl1PssjwEdu-zpdkLYojiw">
<specification xmi:type="uml:OpaqueExpression" xmi:id="_hl1PtcjwEdu-zpdkLYojiw" body="self.allInstances()-&gt;isUnique(p | p.id)" language="OCL" />
</ownedRule>
<ownedAttribute xmi:id="_hl1PtsjwEdu-zpdkLYojiw" name="id">
<eAnnotations xmi:id="_hl1Pt8jwEdu-zpdkLYojiw" source="appliedStereotypes">
<contents xmi:type="Ecore_0:Ecore__EAttribute" xmi:id="_hl1PuMjwEdu-zpdkLYojiw" isID="true" />
</eAnnotations>
<type xmi:type="uml:PrimitiveType" href=" pathmap://UML2_LIBRARIES/EcorePrimitiveTypes.library.uml2#_O RTUYa86EdieaYgxtVWN8Q" />
</ownedAttribute>
</ownedMember>
</uml:Model>
--------------000703060106050700020305--
Re: Applied Profile & ArrayStoreException [message #471362 is a reply to message #471356] Wed, 07 March 2007 20:03 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
To add a bit more info ...

It seems that all the ecore2xml information is being ignored ( not just for
packageImport ). I can open your model with a text editor and remove all
the PackageImports to reduce your model to simply have a class with owned
attribute. When I try to open...still no luck.

If I take this one step further, I can replace ownedMember with
packagedElement then I will be able to open your model. ... not the kind of
migration experience you were hoping for ;).

I haven't pinpointed the problem in UML code just yet.

Please log a bugzilla on this for the UML component and it will be taken
care of shortly.

Regards,

p.s. By the way, there seems to be several garbage characters at the
beginning of your model. This is not causing the problem but I'm not sure
how they got there.

- James.

"Steffen Becker" <becker@informatik.uni-oldenburg.de> wrote in message
news:eslkvo$820$1@utils.eclipse.org...
> Kenn Hussey schrieb:
> > Steffen,
> >
> > Would you be able to provide a representative sample so that we can
> > investigate?
> >
> > Kenn
>
> Sure, I can attach one. This is the most basic model of a bunch of UML
> models which belong together. However, this one is stand-alone and has
> only one class which is called "Identifier" to mark classed which should
> have IDs. The applied profile is the Ecore-Profile of RSA6 (maybe the
> source of the problem?). As I said before, this worked in all earlier
> versions of the plugin.
>
> If you open the file directly, there is no error message (which I find
> also strange) but the class is not there :-(. In the EMF Project Dialog
> it causes the afore meantioned exception.
>
> However, it is possible to open it in M4, save the imported uml file and
> open it with M5. This works correctly.
>
> Cheers,
> Steffen
>


------------------------------------------------------------ ----------------
----


> <?xml version="1.0" encoding="UTF-8"?>
> <uml:Model xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:Ecore_0="http:///Ecore_0.profile.uml2"
xmlns:uml="http://www.eclipse.org/uml2/1.0.0/UML"
xsi:schemaLocation="http:///Ecore_0.profile.uml2
pathmap://UML2_PROFILES/Ecore.profile.uml2#_v9VUsK87Edi5QpYe Y_yIpg"
xmi:id="_hl1PocjwEdu-zpdkLYojiw" name="identifier"
appliedProfile="_hl1PpcjwEdu-zpdkLYojiw _hl1PqMjwEdu-zpdkLYojiw
_hl1Pq8jwEdu-zpdkLYojiw _hl1Pr8jwEdu-zpdkLYojiw">
> <eAnnotations xmi:id="_hl1PosjwEdu-zpdkLYojiw"
source="http://www.eclipse.org/emf/2002/Ecore" />
> <eAnnotations xmi:id="_hl1Po8jwEdu-zpdkLYojiw"
source="appliedStereotypes">
> <contents xmi:type="Ecore_0:Ecore__EPackage"
xmi:id="_hl1PpMjwEdu-zpdkLYojiw" nsPrefix="identifier"
nsURI="http://sdq.ipd.uka.de/Identifier/1.0" basePackage="de.uka.ipd.sdq" />
> </eAnnotations>
> <packageImport xmi:type="uml:ProfileApplication"
xmi:id="_hl1PpcjwEdu-zpdkLYojiw">
> <eAnnotations xmi:id="_hl1PpsjwEdu-zpdkLYojiw" source="attributes">
> <details xmi:id="_hl1Pp8jwEdu-zpdkLYojiw" key="version" value="0" />
> </eAnnotations>
> <importedPackage xmi:type="uml:Profile"
href=" pathmap://UML2_PROFILES/Basic.profile.uml2#_6mFRgK86Edih9-GG 5afQ0g" />
> <importedProfile
href=" pathmap://UML2_PROFILES/Basic.profile.uml2#_6mFRgK86Edih9-GG 5afQ0g" />
> </packageImport>
> <packageImport xmi:type="uml:ProfileApplication"
xmi:id="_hl1PqMjwEdu-zpdkLYojiw">
> <eAnnotations xmi:id="_hl1PqcjwEdu-zpdkLYojiw" source="attributes">
> <details xmi:id="_hl1PqsjwEdu-zpdkLYojiw" key="version" value="0" />
> </eAnnotations>
> <importedPackage xmi:type="uml:Profile"
href=" pathmap://UML2_PROFILES/Intermediate.profile.uml2#_Cz7csK87E dih9-GG5af
Q0g" />
> <importedProfile
href=" pathmap://UML2_PROFILES/Intermediate.profile.uml2#_Cz7csK87E dih9-GG5af
Q0g" />
> </packageImport>
> <packageImport xmi:type="uml:ProfileApplication"
xmi:id="_hl1Pq8jwEdu-zpdkLYojiw">
> <eAnnotations xmi:id="_hl1PrMjwEdu-zpdkLYojiw" source="attributes">
> <details xmi:id="_hl1PrcjwEdu-zpdkLYojiw" key="version" value="0" />
> </eAnnotations>
> <importedPackage xmi:type="uml:Profile"
href=" pathmap://UML2_PROFILES/Complete.profile.uml2#_M7pTkK87Edih9 -GG5afQ0g"
/>
> <importedProfile
href=" pathmap://UML2_PROFILES/Complete.profile.uml2#_M7pTkK87Edih9 -GG5afQ0g"
/>
> </packageImport>
> <packageImport xmi:id="_hl1PrsjwEdu-zpdkLYojiw">
> <importedPackage xmi:type="uml:Model"
href=" pathmap://UML2_LIBRARIES/UML2PrimitiveTypes.library.uml2#_Ef RZoK86Edie
aYgxtVWN8Q" />
> </packageImport>
> <packageImport xmi:type="uml:ProfileApplication"
xmi:id="_hl1Pr8jwEdu-zpdkLYojiw">
> <eAnnotations xmi:id="_hl1PsMjwEdu-zpdkLYojiw" source="attributes">
> <details xmi:id="_hl1PscjwEdu-zpdkLYojiw" key="version" value="0" />
> </eAnnotations>
> <importedPackage xmi:type="uml:Profile"
href=" pathmap://UML2_PROFILES/Ecore.profile.uml2#_siPt4K87Edi5QpYe Y_yIpg" />
> <importedProfile
href=" pathmap://UML2_PROFILES/Ecore.profile.uml2#_siPt4K87Edi5QpYe Y_yIpg" />
> </packageImport>
> <ownedMember xmi:type="uml:Class" xmi:id="_hl1PssjwEdu-zpdkLYojiw"
name="Identifier" isAbstract="true">
> <ownedComment xmi:id="_hl1Ps8jwEdu-zpdkLYojiw" body="Identifiers are
not fixed to one realization.&#xD;&#xA;GUIDs are recommend. GUIDs are
described in their own model. See GUIDModel (GUID.emx).&#xD;&#xA;Identifier
implementations can be found in external projects only."
annotatedElement="_hl1PssjwEdu-zpdkLYojiw" />
> <ownedRule xmi:id="_hl1PtMjwEdu-zpdkLYojiw" name="idHasToBeUnique"
constrainedElement="_hl1PssjwEdu-zpdkLYojiw">
> <specification xmi:type="uml:OpaqueExpression"
xmi:id="_hl1PtcjwEdu-zpdkLYojiw" body="self.allInstances()-&gt;isUnique(p |
p.id)" language="OCL" />
> </ownedRule>
> <ownedAttribute xmi:id="_hl1PtsjwEdu-zpdkLYojiw" name="id">
> <eAnnotations xmi:id="_hl1Pt8jwEdu-zpdkLYojiw"
source="appliedStereotypes">
> <contents xmi:type="Ecore_0:Ecore__EAttribute"
xmi:id="_hl1PuMjwEdu-zpdkLYojiw" isID="true" />
> </eAnnotations>
> <type xmi:type="uml:PrimitiveType"
href=" pathmap://UML2_LIBRARIES/EcorePrimitiveTypes.library.uml2#_O RTUYa86Edi
eaYgxtVWN8Q" />
> </ownedAttribute>
> </ownedMember>
> </uml:Model>
Re: Applied Profile & ArrayStoreException [message #471363 is a reply to message #471362] Wed, 07 March 2007 20:47 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
James,

It turns out that the source of this problem is in EMF - a bug was
introduced when the Ecore2XML metamodel was updated based on generics.
Steffen, please open a bug against EMF and I'll fix it ASAP.

Kenn

"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:esn5qr$ati$2@utils.eclipse.org...
> To add a bit more info ...
>
> It seems that all the ecore2xml information is being ignored ( not just
> for
> packageImport ). I can open your model with a text editor and remove
> all
> the PackageImports to reduce your model to simply have a class with owned
> attribute. When I try to open...still no luck.
>
> If I take this one step further, I can replace ownedMember with
> packagedElement then I will be able to open your model. ... not the kind
> of
> migration experience you were hoping for ;).
>
> I haven't pinpointed the problem in UML code just yet.
>
> Please log a bugzilla on this for the UML component and it will be taken
> care of shortly.
>
> Regards,
>
> p.s. By the way, there seems to be several garbage characters at the
> beginning of your model. This is not causing the problem but I'm not sure
> how they got there.
>
> - James.
>
> "Steffen Becker" <becker@informatik.uni-oldenburg.de> wrote in message
> news:eslkvo$820$1@utils.eclipse.org...
>> Kenn Hussey schrieb:
>> > Steffen,
>> >
>> > Would you be able to provide a representative sample so that we can
>> > investigate?
>> >
>> > Kenn
>>
>> Sure, I can attach one. This is the most basic model of a bunch of UML
>> models which belong together. However, this one is stand-alone and has
>> only one class which is called "Identifier" to mark classed which should
>> have IDs. The applied profile is the Ecore-Profile of RSA6 (maybe the
>> source of the problem?). As I said before, this worked in all earlier
>> versions of the plugin.
>>
>> If you open the file directly, there is no error message (which I find
>> also strange) but the class is not there :-(. In the EMF Project Dialog
>> it causes the afore meantioned exception.
>>
>> However, it is possible to open it in M4, save the imported uml file and
>> open it with M5. This works correctly.
>>
>> Cheers,
>> Steffen
>>
>
>
> ------------------------------------------------------------ ----------------
> ----
>
>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <uml:Model xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:Ecore_0="http:///Ecore_0.profile.uml2"
> xmlns:uml="http://www.eclipse.org/uml2/1.0.0/UML"
> xsi:schemaLocation="http:///Ecore_0.profile.uml2
> pathmap://UML2_PROFILES/Ecore.profile.uml2#_v9VUsK87Edi5QpYe Y_yIpg"
> xmi:id="_hl1PocjwEdu-zpdkLYojiw" name="identifier"
> appliedProfile="_hl1PpcjwEdu-zpdkLYojiw _hl1PqMjwEdu-zpdkLYojiw
> _hl1Pq8jwEdu-zpdkLYojiw _hl1Pr8jwEdu-zpdkLYojiw">
>> <eAnnotations xmi:id="_hl1PosjwEdu-zpdkLYojiw"
> source="http://www.eclipse.org/emf/2002/Ecore" />
>> <eAnnotations xmi:id="_hl1Po8jwEdu-zpdkLYojiw"
> source="appliedStereotypes">
>> <contents xmi:type="Ecore_0:Ecore__EPackage"
> xmi:id="_hl1PpMjwEdu-zpdkLYojiw" nsPrefix="identifier"
> nsURI="http://sdq.ipd.uka.de/Identifier/1.0" basePackage="de.uka.ipd.sdq"
> />
>> </eAnnotations>
>> <packageImport xmi:type="uml:ProfileApplication"
> xmi:id="_hl1PpcjwEdu-zpdkLYojiw">
>> <eAnnotations xmi:id="_hl1PpsjwEdu-zpdkLYojiw" source="attributes">
>> <details xmi:id="_hl1Pp8jwEdu-zpdkLYojiw" key="version" value="0"
>> />
>> </eAnnotations>
>> <importedPackage xmi:type="uml:Profile"
> href=" pathmap://UML2_PROFILES/Basic.profile.uml2#_6mFRgK86Edih9-GG 5afQ0g"
> />
>> <importedProfile
> href=" pathmap://UML2_PROFILES/Basic.profile.uml2#_6mFRgK86Edih9-GG 5afQ0g"
> />
>> </packageImport>
>> <packageImport xmi:type="uml:ProfileApplication"
> xmi:id="_hl1PqMjwEdu-zpdkLYojiw">
>> <eAnnotations xmi:id="_hl1PqcjwEdu-zpdkLYojiw" source="attributes">
>> <details xmi:id="_hl1PqsjwEdu-zpdkLYojiw" key="version" value="0"
>> />
>> </eAnnotations>
>> <importedPackage xmi:type="uml:Profile"
> href=" pathmap://UML2_PROFILES/Intermediate.profile.uml2#_Cz7csK87E dih9-GG5af
> Q0g" />
>> <importedProfile
> href=" pathmap://UML2_PROFILES/Intermediate.profile.uml2#_Cz7csK87E dih9-GG5af
> Q0g" />
>> </packageImport>
>> <packageImport xmi:type="uml:ProfileApplication"
> xmi:id="_hl1Pq8jwEdu-zpdkLYojiw">
>> <eAnnotations xmi:id="_hl1PrMjwEdu-zpdkLYojiw" source="attributes">
>> <details xmi:id="_hl1PrcjwEdu-zpdkLYojiw" key="version" value="0"
>> />
>> </eAnnotations>
>> <importedPackage xmi:type="uml:Profile"
> href=" pathmap://UML2_PROFILES/Complete.profile.uml2#_M7pTkK87Edih9 -GG5afQ0g"
> />
>> <importedProfile
> href=" pathmap://UML2_PROFILES/Complete.profile.uml2#_M7pTkK87Edih9 -GG5afQ0g"
> />
>> </packageImport>
>> <packageImport xmi:id="_hl1PrsjwEdu-zpdkLYojiw">
>> <importedPackage xmi:type="uml:Model"
> href=" pathmap://UML2_LIBRARIES/UML2PrimitiveTypes.library.uml2#_Ef RZoK86Edie
> aYgxtVWN8Q" />
>> </packageImport>
>> <packageImport xmi:type="uml:ProfileApplication"
> xmi:id="_hl1Pr8jwEdu-zpdkLYojiw">
>> <eAnnotations xmi:id="_hl1PsMjwEdu-zpdkLYojiw" source="attributes">
>> <details xmi:id="_hl1PscjwEdu-zpdkLYojiw" key="version" value="0"
>> />
>> </eAnnotations>
>> <importedPackage xmi:type="uml:Profile"
> href=" pathmap://UML2_PROFILES/Ecore.profile.uml2#_siPt4K87Edi5QpYe Y_yIpg"
> />
>> <importedProfile
> href=" pathmap://UML2_PROFILES/Ecore.profile.uml2#_siPt4K87Edi5QpYe Y_yIpg"
> />
>> </packageImport>
>> <ownedMember xmi:type="uml:Class" xmi:id="_hl1PssjwEdu-zpdkLYojiw"
> name="Identifier" isAbstract="true">
>> <ownedComment xmi:id="_hl1Ps8jwEdu-zpdkLYojiw" body="Identifiers are
> not fixed to one realization.&#xD;&#xA;GUIDs are recommend. GUIDs are
> described in their own model. See GUIDModel
> (GUID.emx).&#xD;&#xA;Identifier
> implementations can be found in external projects only."
> annotatedElement="_hl1PssjwEdu-zpdkLYojiw" />
>> <ownedRule xmi:id="_hl1PtMjwEdu-zpdkLYojiw" name="idHasToBeUnique"
> constrainedElement="_hl1PssjwEdu-zpdkLYojiw">
>> <specification xmi:type="uml:OpaqueExpression"
> xmi:id="_hl1PtcjwEdu-zpdkLYojiw" body="self.allInstances()-&gt;isUnique(p
> |
> p.id)" language="OCL" />
>> </ownedRule>
>> <ownedAttribute xmi:id="_hl1PtsjwEdu-zpdkLYojiw" name="id">
>> <eAnnotations xmi:id="_hl1Pt8jwEdu-zpdkLYojiw"
> source="appliedStereotypes">
>> <contents xmi:type="Ecore_0:Ecore__EAttribute"
> xmi:id="_hl1PuMjwEdu-zpdkLYojiw" isID="true" />
>> </eAnnotations>
>> <type xmi:type="uml:PrimitiveType"
> href=" pathmap://UML2_LIBRARIES/EcorePrimitiveTypes.library.uml2#_O RTUYa86Edi
> eaYgxtVWN8Q" />
>> </ownedAttribute>
>> </ownedMember>
>> </uml:Model>
>
>
Re: Applied Profile & ArrayStoreException [message #471621 is a reply to message #471362] Wed, 07 March 2007 20:51 Go to previous messageGo to next message
Steffen Becker is currently offline Steffen BeckerFriend
Messages: 31
Registered: July 2009
Member
Hi,

> Please log a bugzilla on this for the UML component and it will be taken
> care of shortly.
Done, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=176645

> p.s. By the way, there seems to be several garbage characters at the
> beginning of your model. This is not causing the problem but I'm not sure
> how they got there.
I also don't know how they got there. It has sth. to do with the
encoding, in TextPad there are gone but in other editors I see them, too.

Thanks for investigating the issue,
Steffen
Re: Applied Profile & ArrayStoreException [message #471622 is a reply to message #471621] Wed, 07 March 2007 21:05 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Steffen,

I've retargeted the bug against EMF and committed the fix, which should be
available in Thursday's integration build.

Kenn

"Steffen Becker" <becker@informatik.uni-oldenburg.de> wrote in message
news:esn8jq$m9m$1@utils.eclipse.org...
> Hi,
>
>> Please log a bugzilla on this for the UML component and it will be taken
>> care of shortly.
> Done, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=176645
>
>> p.s. By the way, there seems to be several garbage characters at the
>> beginning of your model. This is not causing the problem but I'm not
>> sure
>> how they got there.
> I also don't know how they got there. It has sth. to do with the encoding,
> in TextPad there are gone but in other editors I see them, too.
>
> Thanks for investigating the issue,
> Steffen
Re: Applied Profile & ArrayStoreException [message #598285 is a reply to message #471354] Tue, 06 March 2007 22:22 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Steffen,

Would you be able to provide a representative sample so that we can
investigate?

Kenn

"Steffen Becker" <becker@informatik.uni-oldenburg.de> wrote in message
news:eskoen$j8q$1@utils.eclipse.org...
> Hi,
>
> I'm trying to import an UML2 model generated with RSA6 as ECORE model.
> This has been working since I started to use it from Eclipse 3.1 on...
>
> However, with the current version is the first which fails in
> org.eclipse.emf.importer with the following exception. Any idea what to
> do? Is it a bug?
>
> Value 'org.eclipse.uml2.uml.internal.impl.ProfileApplicationImpl@191222b
> (isStrict: false)' is not legal.
> (file:/C:/coding/code/rsa_exports/pcm.uml2, 7, 85)
>
> org.eclipse.emf.ecore.xmi.IllegalValueException: Value
> 'org.eclipse.uml2.uml.internal.impl.ProfileApplicationImpl@191222b
> (isStrict: false)' is not legal.
> (file:/C:/coding/code/rsa_exports/pcm.uml2, 7, 85)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XM LHandler.java:2506)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XM LHandler.java:2491)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromTy peName(XMLHandler.java:1944)
> at
> org.eclipse.uml2.uml.internal.resource.UML22UMLHandler.creat eObject(UML22UMLHandler.java:62)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLH andler.java:1653)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:957)
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:87)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:936)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:681)
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:163)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDriver.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
> Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:178)
> 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:1164)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:965)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:256)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:271)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:398)
> at
> org.eclipse.uml2.uml.ecore.importer.UMLImporter.doComputeEPa ckages(UMLImporter.java:157)
> at
> org.eclipse.emf.importer.ModelImporter.computeEPackages(Mode lImporter.java:527)
> at
> org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage.refreshModel(ModelImporterDetailPage.java:406)
> at
> org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage$3.execute(ModelImporterDetailPage.java:351)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1798)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 890)
> at
> org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage.refreshModel(ModelImporterDetailPage.java:374)
> at
> org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage.handleOriginalModelFile(ModelImporterDetailPage.ja va:118)
> at
> org.eclipse.emf.importer.ui.contribution.base.ModelImporterD etailPage$1.run(ModelImporterDetailPage.java:109)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3467)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3107)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
> at org.eclipse.jface.window.Window.open(Window.java:796)
> at
> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:115)
> at
> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:105)
> at
> org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:243)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:545)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:402)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3490)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3104)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2264)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2228)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 03)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:457)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:452)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:101)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:146)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:354)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
> 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(Main.java: 476)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1124)
> Caused by: java.lang.ArrayStoreException
> at org.eclipse.emf.common.util.BasicEList.assign(BasicEList.jav a:191)
> at org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList. java:645)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUn ique(NotifyingListImpl.java:331)
> at
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingListImpl.java:288)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.setValue(XMLHel perImpl.java:1088)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XM LHandler.java:2501)
> ... 77 more
Re: Applied Profile & ArrayStoreException [message #598291 is a reply to message #471355] Wed, 07 March 2007 06:10 Go to previous message
Steffen Becker is currently offline Steffen BeckerFriend
Messages: 31
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------000703060106050700020305
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Kenn Hussey schrieb:
> Steffen,
>
> Would you be able to provide a representative sample so that we can
> investigate?
>
> Kenn

Sure, I can attach one. This is the most basic model of a bunch of UML
models which belong together. However, this one is stand-alone and has
only one class which is called "Identifier" to mark classed which should
have IDs. The applied profile is the Ecore-Profile of RSA6 (maybe the
source of the problem?). As I said before, this worked in all earlier
versions of the plugin.

If you open the file directly, there is no error message (which I find
also strange) but the class is not there :-(. In the EMF Project Dialog
it causes the afore meantioned exception.

However, it is possible to open it in M4, save the imported uml file and
open it with M5. This works correctly.

Cheers,
Steffen

--------------000703060106050700020305
Content-Type: text/plain;
name="identifier.uml2"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
filename="identifier.uml2"

<?xml version="1.0" encoding="UTF-8"?>
<uml:Model xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Ecore_0="http:///Ecore_0.profile.uml2" xmlns:uml="http://www.eclipse.org/uml2/1.0.0/UML" xsi:schemaLocation="http:///Ecore_0.profile.uml2 pathmap://UML2_PROFILES/Ecore.profile.uml2#_v9VUsK87Edi5QpYe Y_yIpg" xmi:id="_hl1PocjwEdu-zpdkLYojiw" name="identifier" appliedProfile="_hl1PpcjwEdu-zpdkLYojiw _hl1PqMjwEdu-zpdkLYojiw _hl1Pq8jwEdu-zpdkLYojiw _hl1Pr8jwEdu-zpdkLYojiw">
<eAnnotations xmi:id="_hl1PosjwEdu-zpdkLYojiw" source="http://www.eclipse.org/emf/2002/Ecore" />
<eAnnotations xmi:id="_hl1Po8jwEdu-zpdkLYojiw" source="appliedStereotypes">
<contents xmi:type="Ecore_0:Ecore__EPackage" xmi:id="_hl1PpMjwEdu-zpdkLYojiw" nsPrefix="identifier" nsURI="http://sdq.ipd.uka.de/Identifier/1.0" basePackage="de.uka.ipd.sdq" />
</eAnnotations>
<packageImport xmi:type="uml:ProfileApplication" xmi:id="_hl1PpcjwEdu-zpdkLYojiw">
<eAnnotations xmi:id="_hl1PpsjwEdu-zpdkLYojiw" source="attributes">
<details xmi:id="_hl1Pp8jwEdu-zpdkLYojiw" key="version" value="0" />
</eAnnotations>
<importedPackage xmi:type="uml:Profile" href=" pathmap://UML2_PROFILES/Basic.profile.uml2#_6mFRgK86Edih9-GG 5afQ0g" />
<importedProfile href=" pathmap://UML2_PROFILES/Basic.profile.uml2#_6mFRgK86Edih9-GG 5afQ0g" />
</packageImport>
<packageImport xmi:type="uml:ProfileApplication" xmi:id="_hl1PqMjwEdu-zpdkLYojiw">
<eAnnotations xmi:id="_hl1PqcjwEdu-zpdkLYojiw" source="attributes">
<details xmi:id="_hl1PqsjwEdu-zpdkLYojiw" key="version" value="0" />
</eAnnotations>
<importedPackage xmi:type="uml:Profile" href=" pathmap://UML2_PROFILES/Intermediate.profile.uml2#_Cz7csK87E dih9-GG5afQ0g" />
<importedProfile href=" pathmap://UML2_PROFILES/Intermediate.profile.uml2#_Cz7csK87E dih9-GG5afQ0g" />
</packageImport>
<packageImport xmi:type="uml:ProfileApplication" xmi:id="_hl1Pq8jwEdu-zpdkLYojiw">
<eAnnotations xmi:id="_hl1PrMjwEdu-zpdkLYojiw" source="attributes">
<details xmi:id="_hl1PrcjwEdu-zpdkLYojiw" key="version" value="0" />
</eAnnotations>
<importedPackage xmi:type="uml:Profile" href=" pathmap://UML2_PROFILES/Complete.profile.uml2#_M7pTkK87Edih9 -GG5afQ0g" />
<importedProfile href=" pathmap://UML2_PROFILES/Complete.profile.uml2#_M7pTkK87Edih9 -GG5afQ0g" />
</packageImport>
<packageImport xmi:id="_hl1PrsjwEdu-zpdkLYojiw">
<importedPackage xmi:type="uml:Model" href=" pathmap://UML2_LIBRARIES/UML2PrimitiveTypes.library.uml2#_Ef RZoK86EdieaYgxtVWN8Q" />
</packageImport>
<packageImport xmi:type="uml:ProfileApplication" xmi:id="_hl1Pr8jwEdu-zpdkLYojiw">
<eAnnotations xmi:id="_hl1PsMjwEdu-zpdkLYojiw" source="attributes">
<details xmi:id="_hl1PscjwEdu-zpdkLYojiw" key="version" value="0" />
</eAnnotations>
<importedPackage xmi:type="uml:Profile" href=" pathmap://UML2_PROFILES/Ecore.profile.uml2#_siPt4K87Edi5QpYe Y_yIpg" />
<importedProfile href=" pathmap://UML2_PROFILES/Ecore.profile.uml2#_siPt4K87Edi5QpYe Y_yIpg" />
</packageImport>
<ownedMember xmi:type="uml:Class" xmi:id="_hl1PssjwEdu-zpdkLYojiw" name="Identifier" isAbstract="true">
<ownedComment xmi:id="_hl1Ps8jwEdu-zpdkLYojiw" body="Identifiers are not fixed to one realization.&#xD;&#xA;GUIDs are recommend. GUIDs are described in their own model. See GUIDModel (GUID.emx).&#xD;&#xA;Identifier implementations can be found in external projects only." annotatedElement="_hl1PssjwEdu-zpdkLYojiw" />
<ownedRule xmi:id="_hl1PtMjwEdu-zpdkLYojiw" name="idHasToBeUnique" constrainedElement="_hl1PssjwEdu-zpdkLYojiw">
<specification xmi:type="uml:OpaqueExpression" xmi:id="_hl1PtcjwEdu-zpdkLYojiw" body="self.allInstances()-&gt;isUnique(p | p.id)" language="OCL" />
</ownedRule>
<ownedAttribute xmi:id="_hl1PtsjwEdu-zpdkLYojiw" name="id">
<eAnnotations xmi:id="_hl1Pt8jwEdu-zpdkLYojiw" source="appliedStereotypes">
<contents xmi:type="Ecore_0:Ecore__EAttribute" xmi:id="_hl1PuMjwEdu-zpdkLYojiw" isID="true" />
</eAnnotations>
<type xmi:type="uml:PrimitiveType" href=" pathmap://UML2_LIBRARIES/EcorePrimitiveTypes.library.uml2#_O RTUYa86EdieaYgxtVWN8Q" />
</ownedAttribute>
</ownedMember>
</uml:Model>
--------------000703060106050700020305--
Re: Applied Profile & ArrayStoreException [message #598331 is a reply to message #471356] Wed, 07 March 2007 20:03 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
To add a bit more info ...

It seems that all the ecore2xml information is being ignored ( not just for
packageImport ). I can open your model with a text editor and remove all
the PackageImports to reduce your model to simply have a class with owned
attribute. When I try to open...still no luck.

If I take this one step further, I can replace ownedMember with
packagedElement then I will be able to open your model. ... not the kind of
migration experience you were hoping for ;).

I haven't pinpointed the problem in UML code just yet.

Please log a bugzilla on this for the UML component and it will be taken
care of shortly.

Regards,

p.s. By the way, there seems to be several garbage characters at the
beginning of your model. This is not causing the problem but I'm not sure
how they got there.

- James.

"Steffen Becker" <becker@informatik.uni-oldenburg.de> wrote in message
news:eslkvo$820$1@utils.eclipse.org...
> Kenn Hussey schrieb:
> > Steffen,
> >
> > Would you be able to provide a representative sample so that we can
> > investigate?
> >
> > Kenn
>
> Sure, I can attach one. This is the most basic model of a bunch of UML
> models which belong together. However, this one is stand-alone and has
> only one class which is called "Identifier" to mark classed which should
> have IDs. The applied profile is the Ecore-Profile of RSA6 (maybe the
> source of the problem?). As I said before, this worked in all earlier
> versions of the plugin.
>
> If you open the file directly, there is no error message (which I find
> also strange) but the class is not there :-(. In the EMF Project Dialog
> it causes the afore meantioned exception.
>
> However, it is possible to open it in M4, save the imported uml file and
> open it with M5. This works correctly.
>
> Cheers,
> Steffen
>


------------------------------------------------------------ ----------------
----


> <?xml version="1.0" encoding="UTF-8"?>
> <uml:Model xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:Ecore_0="http:///Ecore_0.profile.uml2"
xmlns:uml="http://www.eclipse.org/uml2/1.0.0/UML"
xsi:schemaLocation="http:///Ecore_0.profile.uml2
pathmap://UML2_PROFILES/Ecore.profile.uml2#_v9VUsK87Edi5QpYe Y_yIpg"
xmi:id="_hl1PocjwEdu-zpdkLYojiw" name="identifier"
appliedProfile="_hl1PpcjwEdu-zpdkLYojiw _hl1PqMjwEdu-zpdkLYojiw
_hl1Pq8jwEdu-zpdkLYojiw _hl1Pr8jwEdu-zpdkLYojiw">
> <eAnnotations xmi:id="_hl1PosjwEdu-zpdkLYojiw"
source="http://www.eclipse.org/emf/2002/Ecore" />
> <eAnnotations xmi:id="_hl1Po8jwEdu-zpdkLYojiw"
source="appliedStereotypes">
> <contents xmi:type="Ecore_0:Ecore__EPackage"
xmi:id="_hl1PpMjwEdu-zpdkLYojiw" nsPrefix="identifier"
nsURI="http://sdq.ipd.uka.de/Identifier/1.0" basePackage="de.uka.ipd.sdq" />
> </eAnnotations>
> <packageImport xmi:type="uml:ProfileApplication"
xmi:id="_hl1PpcjwEdu-zpdkLYojiw">
> <eAnnotations xmi:id="_hl1PpsjwEdu-zpdkLYojiw" source="attributes">
> <details xmi:id="_hl1Pp8jwEdu-zpdkLYojiw" key="version" value="0" />
> </eAnnotations>
> <importedPackage xmi:type="uml:Profile"
href=" pathmap://UML2_PROFILES/Basic.profile.uml2#_6mFRgK86Edih9-GG 5afQ0g" />
> <importedProfile
href=" pathmap://UML2_PROFILES/Basic.profile.uml2#_6mFRgK86Edih9-GG 5afQ0g" />
> </packageImport>
> <packageImport xmi:type="uml:ProfileApplication"
xmi:id="_hl1PqMjwEdu-zpdkLYojiw">
> <eAnnotations xmi:id="_hl1PqcjwEdu-zpdkLYojiw" source="attributes">
> <details xmi:id="_hl1PqsjwEdu-zpdkLYojiw" key="version" value="0" />
> </eAnnotations>
> <importedPackage xmi:type="uml:Profile"
href=" pathmap://UML2_PROFILES/Intermediate.profile.uml2#_Cz7csK87E dih9-GG5af
Q0g" />
> <importedProfile
href=" pathmap://UML2_PROFILES/Intermediate.profile.uml2#_Cz7csK87E dih9-GG5af
Q0g" />
> </packageImport>
> <packageImport xmi:type="uml:ProfileApplication"
xmi:id="_hl1Pq8jwEdu-zpdkLYojiw">
> <eAnnotations xmi:id="_hl1PrMjwEdu-zpdkLYojiw" source="attributes">
> <details xmi:id="_hl1PrcjwEdu-zpdkLYojiw" key="version" value="0" />
> </eAnnotations>
> <importedPackage xmi:type="uml:Profile"
href=" pathmap://UML2_PROFILES/Complete.profile.uml2#_M7pTkK87Edih9 -GG5afQ0g"
/>
> <importedProfile
href=" pathmap://UML2_PROFILES/Complete.profile.uml2#_M7pTkK87Edih9 -GG5afQ0g"
/>
> </packageImport>
> <packageImport xmi:id="_hl1PrsjwEdu-zpdkLYojiw">
> <importedPackage xmi:type="uml:Model"
href=" pathmap://UML2_LIBRARIES/UML2PrimitiveTypes.library.uml2#_Ef RZoK86Edie
aYgxtVWN8Q" />
> </packageImport>
> <packageImport xmi:type="uml:ProfileApplication"
xmi:id="_hl1Pr8jwEdu-zpdkLYojiw">
> <eAnnotations xmi:id="_hl1PsMjwEdu-zpdkLYojiw" source="attributes">
> <details xmi:id="_hl1PscjwEdu-zpdkLYojiw" key="version" value="0" />
> </eAnnotations>
> <importedPackage xmi:type="uml:Profile"
href=" pathmap://UML2_PROFILES/Ecore.profile.uml2#_siPt4K87Edi5QpYe Y_yIpg" />
> <importedProfile
href=" pathmap://UML2_PROFILES/Ecore.profile.uml2#_siPt4K87Edi5QpYe Y_yIpg" />
> </packageImport>
> <ownedMember xmi:type="uml:Class" xmi:id="_hl1PssjwEdu-zpdkLYojiw"
name="Identifier" isAbstract="true">
> <ownedComment xmi:id="_hl1Ps8jwEdu-zpdkLYojiw" body="Identifiers are
not fixed to one realization.&#xD;&#xA;GUIDs are recommend. GUIDs are
described in their own model. See GUIDModel (GUID.emx).&#xD;&#xA;Identifier
implementations can be found in external projects only."
annotatedElement="_hl1PssjwEdu-zpdkLYojiw" />
> <ownedRule xmi:id="_hl1PtMjwEdu-zpdkLYojiw" name="idHasToBeUnique"
constrainedElement="_hl1PssjwEdu-zpdkLYojiw">
> <specification xmi:type="uml:OpaqueExpression"
xmi:id="_hl1PtcjwEdu-zpdkLYojiw" body="self.allInstances()-&gt;isUnique(p |
p.id)" language="OCL" />
> </ownedRule>
> <ownedAttribute xmi:id="_hl1PtsjwEdu-zpdkLYojiw" name="id">
> <eAnnotations xmi:id="_hl1Pt8jwEdu-zpdkLYojiw"
source="appliedStereotypes">
> <contents xmi:type="Ecore_0:Ecore__EAttribute"
xmi:id="_hl1PuMjwEdu-zpdkLYojiw" isID="true" />
> </eAnnotations>
> <type xmi:type="uml:PrimitiveType"
href=" pathmap://UML2_LIBRARIES/EcorePrimitiveTypes.library.uml2#_O RTUYa86Edi
eaYgxtVWN8Q" />
> </ownedAttribute>
> </ownedMember>
> </uml:Model>
Re: Applied Profile & ArrayStoreException [message #598339 is a reply to message #471362] Wed, 07 March 2007 20:47 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
James,

It turns out that the source of this problem is in EMF - a bug was
introduced when the Ecore2XML metamodel was updated based on generics.
Steffen, please open a bug against EMF and I'll fix it ASAP.

Kenn

"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:esn5qr$ati$2@utils.eclipse.org...
> To add a bit more info ...
>
> It seems that all the ecore2xml information is being ignored ( not just
> for
> packageImport ). I can open your model with a text editor and remove
> all
> the PackageImports to reduce your model to simply have a class with owned
> attribute. When I try to open...still no luck.
>
> If I take this one step further, I can replace ownedMember with
> packagedElement then I will be able to open your model. ... not the kind
> of
> migration experience you were hoping for ;).
>
> I haven't pinpointed the problem in UML code just yet.
>
> Please log a bugzilla on this for the UML component and it will be taken
> care of shortly.
>
> Regards,
>
> p.s. By the way, there seems to be several garbage characters at the
> beginning of your model. This is not causing the problem but I'm not sure
> how they got there.
>
> - James.
>
> "Steffen Becker" <becker@informatik.uni-oldenburg.de> wrote in message
> news:eslkvo$820$1@utils.eclipse.org...
>> Kenn Hussey schrieb:
>> > Steffen,
>> >
>> > Would you be able to provide a representative sample so that we can
>> > investigate?
>> >
>> > Kenn
>>
>> Sure, I can attach one. This is the most basic model of a bunch of UML
>> models which belong together. However, this one is stand-alone and has
>> only one class which is called "Identifier" to mark classed which should
>> have IDs. The applied profile is the Ecore-Profile of RSA6 (maybe the
>> source of the problem?). As I said before, this worked in all earlier
>> versions of the plugin.
>>
>> If you open the file directly, there is no error message (which I find
>> also strange) but the class is not there :-(. In the EMF Project Dialog
>> it causes the afore meantioned exception.
>>
>> However, it is possible to open it in M4, save the imported uml file and
>> open it with M5. This works correctly.
>>
>> Cheers,
>> Steffen
>>
>
>
> ------------------------------------------------------------ ----------------
> ----
>
>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <uml:Model xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:Ecore_0="http:///Ecore_0.profile.uml2"
> xmlns:uml="http://www.eclipse.org/uml2/1.0.0/UML"
> xsi:schemaLocation="http:///Ecore_0.profile.uml2
> pathmap://UML2_PROFILES/Ecore.profile.uml2#_v9VUsK87Edi5QpYe Y_yIpg"
> xmi:id="_hl1PocjwEdu-zpdkLYojiw" name="identifier"
> appliedProfile="_hl1PpcjwEdu-zpdkLYojiw _hl1PqMjwEdu-zpdkLYojiw
> _hl1Pq8jwEdu-zpdkLYojiw _hl1Pr8jwEdu-zpdkLYojiw">
>> <eAnnotations xmi:id="_hl1PosjwEdu-zpdkLYojiw"
> source="http://www.eclipse.org/emf/2002/Ecore" />
>> <eAnnotations xmi:id="_hl1Po8jwEdu-zpdkLYojiw"
> source="appliedStereotypes">
>> <contents xmi:type="Ecore_0:Ecore__EPackage"
> xmi:id="_hl1PpMjwEdu-zpdkLYojiw" nsPrefix="identifier"
> nsURI="http://sdq.ipd.uka.de/Identifier/1.0" basePackage="de.uka.ipd.sdq"
> />
>> </eAnnotations>
>> <packageImport xmi:type="uml:ProfileApplication"
> xmi:id="_hl1PpcjwEdu-zpdkLYojiw">
>> <eAnnotations xmi:id="_hl1PpsjwEdu-zpdkLYojiw" source="attributes">
>> <details xmi:id="_hl1Pp8jwEdu-zpdkLYojiw" key="version" value="0"
>> />
>> </eAnnotations>
>> <importedPackage xmi:type="uml:Profile"
> href=" pathmap://UML2_PROFILES/Basic.profile.uml2#_6mFRgK86Edih9-GG 5afQ0g"
> />
>> <importedProfile
> href=" pathmap://UML2_PROFILES/Basic.profile.uml2#_6mFRgK86Edih9-GG 5afQ0g"
> />
>> </packageImport>
>> <packageImport xmi:type="uml:ProfileApplication"
> xmi:id="_hl1PqMjwEdu-zpdkLYojiw">
>> <eAnnotations xmi:id="_hl1PqcjwEdu-zpdkLYojiw" source="attributes">
>> <details xmi:id="_hl1PqsjwEdu-zpdkLYojiw" key="version" value="0"
>> />
>> </eAnnotations>
>> <importedPackage xmi:type="uml:Profile"
> href=" pathmap://UML2_PROFILES/Intermediate.profile.uml2#_Cz7csK87E dih9-GG5af
> Q0g" />
>> <importedProfile
> href=" pathmap://UML2_PROFILES/Intermediate.profile.uml2#_Cz7csK87E dih9-GG5af
> Q0g" />
>> </packageImport>
>> <packageImport xmi:type="uml:ProfileApplication"
> xmi:id="_hl1Pq8jwEdu-zpdkLYojiw">
>> <eAnnotations xmi:id="_hl1PrMjwEdu-zpdkLYojiw" source="attributes">
>> <details xmi:id="_hl1PrcjwEdu-zpdkLYojiw" key="version" value="0"
>> />
>> </eAnnotations>
>> <importedPackage xmi:type="uml:Profile"
> href=" pathmap://UML2_PROFILES/Complete.profile.uml2#_M7pTkK87Edih9 -GG5afQ0g"
> />
>> <importedProfile
> href=" pathmap://UML2_PROFILES/Complete.profile.uml2#_M7pTkK87Edih9 -GG5afQ0g"
> />
>> </packageImport>
>> <packageImport xmi:id="_hl1PrsjwEdu-zpdkLYojiw">
>> <importedPackage xmi:type="uml:Model"
> href=" pathmap://UML2_LIBRARIES/UML2PrimitiveTypes.library.uml2#_Ef RZoK86Edie
> aYgxtVWN8Q" />
>> </packageImport>
>> <packageImport xmi:type="uml:ProfileApplication"
> xmi:id="_hl1Pr8jwEdu-zpdkLYojiw">
>> <eAnnotations xmi:id="_hl1PsMjwEdu-zpdkLYojiw" source="attributes">
>> <details xmi:id="_hl1PscjwEdu-zpdkLYojiw" key="version" value="0"
>> />
>> </eAnnotations>
>> <importedPackage xmi:type="uml:Profile"
> href=" pathmap://UML2_PROFILES/Ecore.profile.uml2#_siPt4K87Edi5QpYe Y_yIpg"
> />
>> <importedProfile
> href=" pathmap://UML2_PROFILES/Ecore.profile.uml2#_siPt4K87Edi5QpYe Y_yIpg"
> />
>> </packageImport>
>> <ownedMember xmi:type="uml:Class" xmi:id="_hl1PssjwEdu-zpdkLYojiw"
> name="Identifier" isAbstract="true">
>> <ownedComment xmi:id="_hl1Ps8jwEdu-zpdkLYojiw" body="Identifiers are
> not fixed to one realization.&#xD;&#xA;GUIDs are recommend. GUIDs are
> described in their own model. See GUIDModel
> (GUID.emx).&#xD;&#xA;Identifier
> implementations can be found in external projects only."
> annotatedElement="_hl1PssjwEdu-zpdkLYojiw" />
>> <ownedRule xmi:id="_hl1PtMjwEdu-zpdkLYojiw" name="idHasToBeUnique"
> constrainedElement="_hl1PssjwEdu-zpdkLYojiw">
>> <specification xmi:type="uml:OpaqueExpression"
> xmi:id="_hl1PtcjwEdu-zpdkLYojiw" body="self.allInstances()-&gt;isUnique(p
> |
> p.id)" language="OCL" />
>> </ownedRule>
>> <ownedAttribute xmi:id="_hl1PtsjwEdu-zpdkLYojiw" name="id">
>> <eAnnotations xmi:id="_hl1Pt8jwEdu-zpdkLYojiw"
> source="appliedStereotypes">
>> <contents xmi:type="Ecore_0:Ecore__EAttribute"
> xmi:id="_hl1PuMjwEdu-zpdkLYojiw" isID="true" />
>> </eAnnotations>
>> <type xmi:type="uml:PrimitiveType"
> href=" pathmap://UML2_LIBRARIES/EcorePrimitiveTypes.library.uml2#_O RTUYa86Edi
> eaYgxtVWN8Q" />
>> </ownedAttribute>
>> </ownedMember>
>> </uml:Model>
>
>
Re: Applied Profile & ArrayStoreException [message #598344 is a reply to message #471362] Wed, 07 March 2007 20:51 Go to previous message
Steffen Becker is currently offline Steffen BeckerFriend
Messages: 31
Registered: July 2009
Member
Hi,

> Please log a bugzilla on this for the UML component and it will be taken
> care of shortly.
Done, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=176645

> p.s. By the way, there seems to be several garbage characters at the
> beginning of your model. This is not causing the problem but I'm not sure
> how they got there.
I also don't know how they got there. It has sth. to do with the
encoding, in TextPad there are gone but in other editors I see them, too.

Thanks for investigating the issue,
Steffen
Re: Applied Profile & ArrayStoreException [message #598354 is a reply to message #471621] Wed, 07 March 2007 21:05 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Steffen,

I've retargeted the bug against EMF and committed the fix, which should be
available in Thursday's integration build.

Kenn

"Steffen Becker" <becker@informatik.uni-oldenburg.de> wrote in message
news:esn8jq$m9m$1@utils.eclipse.org...
> Hi,
>
>> Please log a bugzilla on this for the UML component and it will be taken
>> care of shortly.
> Done, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=176645
>
>> p.s. By the way, there seems to be several garbage characters at the
>> beginning of your model. This is not causing the problem but I'm not
>> sure
>> how they got there.
> I also don't know how they got there. It has sth. to do with the encoding,
> in TextPad there are gone but in other editors I see them, too.
>
> Thanks for investigating the issue,
> Steffen
Previous Topic:Problems encountered in file "pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml"
Next Topic:Re: Accessing property values of applied stereotypes through UML2 API
Goto Forum:
  


Current Time: Thu Mar 28 21:43:00 GMT 2024

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

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

Back to the top