Home » Modeling » UML2 » Applied Profile & ArrayStoreException
| | |
Re: Applied Profile & ArrayStoreException [message #471362 is a reply to message #471356] |
Wed, 07 March 2007 20:03 |
james bruck 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.
GUIDs are recommend. GUIDs are
described in their own model. See GUIDModel (GUID.emx).
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()->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 |
Kenn Hussey 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.
GUIDs are recommend. GUIDs are
> described in their own model. See GUIDModel
> (GUID.emx).
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()->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 #598331 is a reply to message #471356] |
Wed, 07 March 2007 20:03 |
james bruck 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.
GUIDs are recommend. GUIDs are
described in their own model. See GUIDModel (GUID.emx).
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()->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 |
Kenn Hussey 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.
GUIDs are recommend. GUIDs are
> described in their own model. See GUIDModel
> (GUID.emx).
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()->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>
>
>
|
|
| | |
Goto Forum:
Current Time: Sat Oct 19 13:40:41 GMT 2024
Powered by FUDForum. Page generated in 0.03942 seconds
|