[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2] UML2 editor exception on stereotype application

Hi,

I use a predefined profile definition written with MagicDraw (see attached files), I have a uml model (see attached test.uml).
When I try to apply "serviceCRUD" stereotype to a uml Class I have a NPE on org.eclipse.uml2.uml.edit.providers.StereotypeApplicationItemProvider.getPropertyDescriptors(StereotypeApplicationItemProvider.java:139


with uml2 from ganymede, with galileo release I have a NPE on org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getSettingDelegate(EStructuralFeatureImpl.java:814

Is it my profil definition that is incorrect, if right what is incorrect?

Thanks in advance.
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:PersistenceProfil="http:///schemas/PersistenceProfil/_k-vKAGGNEd6noqTSfbYfzw/0"; xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"; xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML"; xsi:schemaLocation="http:///schemas/PersistenceProfil/_k-vKAGGNEd6noqTSfbYfzw/0 ../../../com.miasoftware.miastudio.mapping.model/model/persistenceProfile/Persistence_Profil1.profile.uml#_lNyUUWGNEd6noqTSfbYfzw">
  <uml:Model xmi:id="_8qLEAEFhEd6SvejbCXXp4A" name="Model">
    <elementImport xmi:id="_8qLEAUFhEd6SvejbCXXp4A">
      <importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
    </elementImport>
    <elementImport xmi:id="_8qnv8EFhEd6SvejbCXXp4A" alias="">
      <importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
    </elementImport>
    <elementImport xmi:id="_8qnv8UFhEd6SvejbCXXp4A">
      <importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#UnlimitedNatural"/>
    </elementImport>
    <elementImport xmi:id="_8qnv8kFhEd6SvejbCXXp4A">
      <importedElement xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
    </elementImport>
    <packagedElement xmi:type="uml:Package" xmi:id="_tOZKEEIzEd69ocq2JytHEA" name="business">
      <packagedElement xmi:type="uml:Class" xmi:id="_ABzHIEFiEd6SvejbCXXp4A" name="Person">
        <ownedAttribute xmi:id="_n1-jMEnvEd6JxJdzuWWlww" name="id" visibility="public" aggregation="composite">
          <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
        </ownedAttribute>
        <ownedAttribute xmi:id="_w3QvcEGJEd6tBdxq2mzFhQ" name="name">
          <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
        </ownedAttribute>
        <ownedAttribute xmi:id="_cu0rAUlfEd6F7ooXUTzWYA" name="job" type="_0emIcEleEd6F7ooXUTzWYA" association="_cuzc4ElfEd6F7ooXUTzWYA">
          <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_cu0rA0lfEd6F7ooXUTzWYA" value="1"/>
          <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_cu0rAklfEd6F7ooXUTzWYA" value="1"/>
        </ownedAttribute>
      </packagedElement>
      <packagedElement xmi:type="uml:Class" xmi:id="_zZSGMEleEd6F7ooXUTzWYA" name="Company">
        <ownedAttribute xmi:id="_p5aakEnvEd6JxJdzuWWlww" name="id" aggregation="composite">
          <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
        </ownedAttribute>
        <ownedAttribute xmi:id="_FsILcElfEd6F7ooXUTzWYA" name="name" aggregation="composite">
          <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
        </ownedAttribute>
        <ownedAttribute xmi:id="_cHu10ElfEd6F7ooXUTzWYA" name="job" type="_0emIcEleEd6F7ooXUTzWYA" aggregation="composite" association="_cHuOwElfEd6F7ooXUTzWYA">
          <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_cHvc4UlfEd6F7ooXUTzWYA" value="*"/>
          <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_cHvc4ElfEd6F7ooXUTzWYA" value="1"/>
        </ownedAttribute>
      </packagedElement>
      <packagedElement xmi:type="uml:Class" xmi:id="_0emIcEleEd6F7ooXUTzWYA" name="Job">
        <ownedAttribute xmi:id="_lMZR0EnvEd6JxJdzuWWlww" name="id" aggregation="composite">
          <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
        </ownedAttribute>
        <ownedAttribute xmi:id="_QlKxkElfEd6F7ooXUTzWYA" name="salary" aggregation="composite">
          <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
        </ownedAttribute>
        <ownedAttribute xmi:id="_cbpN4EnvEd6JxJdzuWWlww" name="title" aggregation="composite">
          <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
        </ownedAttribute>
        <ownedAttribute xmi:id="_cuzc4UlfEd6F7ooXUTzWYA" name="employee" type="_ABzHIEFiEd6SvejbCXXp4A" association="_cuzc4ElfEd6F7ooXUTzWYA">
          <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_cu0rAElfEd6F7ooXUTzWYA" value="1"/>
          <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_cu0D8ElfEd6F7ooXUTzWYA" value="1"/>
        </ownedAttribute>
        <ownedAttribute xmi:id="_cHvc4klfEd6F7ooXUTzWYA" name="employer" type="_zZSGMEleEd6F7ooXUTzWYA" association="_cHuOwElfEd6F7ooXUTzWYA">
          <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_cHwD8UlfEd6F7ooXUTzWYA" value="1"/>
          <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_cHwD8ElfEd6F7ooXUTzWYA" value="1"/>
        </ownedAttribute>
        <ownedAttribute xmi:id="_ddu_cElfEd6F7ooXUTzWYA" name="boss" type="_0emIcEleEd6F7ooXUTzWYA" association="_ddtxUElfEd6F7ooXUTzWYA">
          <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_ddu_cklfEd6F7ooXUTzWYA" value="1"/>
          <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_ddu_cUlfEd6F7ooXUTzWYA"/>
        </ownedAttribute>
        <ownedAttribute xmi:id="_ddtxUUlfEd6F7ooXUTzWYA" name="worker" type="_0emIcEleEd6F7ooXUTzWYA" association="_ddtxUElfEd6F7ooXUTzWYA">
          <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_dduYYUlfEd6F7ooXUTzWYA" value="*"/>
          <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_dduYYElfEd6F7ooXUTzWYA" value="1"/>
        </ownedAttribute>
      </packagedElement>
      <packagedElement xmi:type="uml:Association" xmi:id="_cHuOwElfEd6F7ooXUTzWYA" name="CompanyJob" memberEnd="_cHu10ElfEd6F7ooXUTzWYA _cHvc4klfEd6F7ooXUTzWYA"/>
      <packagedElement xmi:type="uml:Association" xmi:id="_cuzc4ElfEd6F7ooXUTzWYA" name="PersonJob" memberEnd="_cuzc4UlfEd6F7ooXUTzWYA _cu0rAUlfEd6F7ooXUTzWYA"/>
      <packagedElement xmi:type="uml:Association" xmi:id="_ddtxUElfEd6F7ooXUTzWYA" name="BossWorker" memberEnd="_ddtxUUlfEd6F7ooXUTzWYA _ddu_cElfEd6F7ooXUTzWYA"/>
      <packagedElement xmi:type="uml:Package" xmi:id="_hauN0HE9Ed6Z0fEfv32RaQ" name="businessVO">
        <packagedElement xmi:type="uml:Class" xmi:id="_hauN0nE9Ed6Z0fEfv32RaQ" name="PersonSalaryVO" clientDependency="_ha3XwXE9Ed6Z0fEfv32RaQ _hbBIwXE9Ed6Z0fEfv32RaQ _hbUDsXE9Ed6Z0fEfv32RaQ">
          <ownedAttribute xmi:id="_hbBIwnE9Ed6Z0fEfv32RaQ" name="personId" clientDependency="_hbK5wXE9Ed6Z0fEfv32RaQ">
            <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
          </ownedAttribute>
          <ownedAttribute xmi:id="_hcDqkHE9Ed6Z0fEfv32RaQ" name="personName" clientDependency="_hcDqknE9Ed6Z0fEfv32RaQ">
            <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
          </ownedAttribute>
          <ownedAttribute xmi:id="_hcDqk3E9Ed6Z0fEfv32RaQ" name="jobSalary" clientDependency="_hcNbkXE9Ed6Z0fEfv32RaQ">
            <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
          </ownedAttribute>
        </packagedElement>
        <packagedElement xmi:type="uml:Dependency" xmi:id="_ha3XwXE9Ed6Z0fEfv32RaQ" supplier="_ABzHIEFiEd6SvejbCXXp4A" client="_hauN0nE9Ed6Z0fEfv32RaQ"/>
        <packagedElement xmi:type="uml:Dependency" xmi:id="_hbBIwXE9Ed6Z0fEfv32RaQ" supplier="_0emIcEleEd6F7ooXUTzWYA" client="_hauN0nE9Ed6Z0fEfv32RaQ"/>
        <packagedElement xmi:type="uml:Dependency" xmi:id="_hbK5wXE9Ed6Z0fEfv32RaQ" supplier="_n1-jMEnvEd6JxJdzuWWlww" client="_hbBIwnE9Ed6Z0fEfv32RaQ"/>
        <packagedElement xmi:type="uml:Class" xmi:id="_hbK5wnE9Ed6Z0fEfv32RaQ" name="PersonSalaryVOIdentifier"/>
        <packagedElement xmi:type="uml:Dependency" xmi:id="_hbUDsXE9Ed6Z0fEfv32RaQ" supplier="_hbK5wnE9Ed6Z0fEfv32RaQ" client="_hauN0nE9Ed6Z0fEfv32RaQ"/>
        <packagedElement xmi:type="uml:Dependency" xmi:id="_hcDqknE9Ed6Z0fEfv32RaQ" supplier="_w3QvcEGJEd6tBdxq2mzFhQ" client="_hcDqkHE9Ed6Z0fEfv32RaQ"/>
        <packagedElement xmi:type="uml:Dependency" xmi:id="_hcNbkXE9Ed6Z0fEfv32RaQ" supplier="_QlKxkElfEd6F7ooXUTzWYA" client="_hcDqk3E9Ed6Z0fEfv32RaQ"/>
      </packagedElement>
      <packagedElement xmi:type="uml:Package" xmi:id="_hauN0XE9Ed6Z0fEfv32RaQ" name="businessService">
        <packagedElement xmi:type="uml:Class" xmi:id="_hbUDs3E9Ed6Z0fEfv32RaQ" name="PersonSalaryService" clientDependency="_hbUDtHE9Ed6Z0fEfv32RaQ _hbd0sXE9Ed6Z0fEfv32RaQ _hbd0snE9Ed6Z0fEfv32RaQ"/>
        <packagedElement xmi:type="uml:Dependency" xmi:id="_hbUDtHE9Ed6Z0fEfv32RaQ" supplier="_ABzHIEFiEd6SvejbCXXp4A" client="_hbUDs3E9Ed6Z0fEfv32RaQ"/>
        <packagedElement xmi:type="uml:Dependency" xmi:id="_hbd0sXE9Ed6Z0fEfv32RaQ" supplier="_0emIcEleEd6F7ooXUTzWYA" client="_hbUDs3E9Ed6Z0fEfv32RaQ"/>
        <packagedElement xmi:type="uml:Dependency" xmi:id="_hbd0snE9Ed6Z0fEfv32RaQ" supplier="_hauN0nE9Ed6Z0fEfv32RaQ" client="_hbUDs3E9Ed6Z0fEfv32RaQ"/>
      </packagedElement>
    </packagedElement>
    <packagedElement xmi:type="uml:Package" xmi:id="_3hS2cF_xEd6eObMch8Zy6g" name="useCases">
      <packagedElement xmi:type="uml:Component" xmi:id="_iIeCQF_yEd6eObMch8Zy6g" name="RHManager"/>
      <packagedElement xmi:type="uml:Actor" xmi:id="_mASoYF_yEd6eObMch8Zy6g" name="DRH"/>
    </packagedElement>
    <profileApplication xmi:id="_Yp2lMHEpEd6ZpuywBV8xTA">
      <eAnnotations xmi:id="_YqAWMHEpEd6ZpuywBV8xTA" source="http://www.eclipse.org/uml2/2.0.0/UML";>
        <references xmi:type="ecore:EPackage" href="../../../com.miasoftware.miastudio.mapping.model/model/persistenceProfile/Persistence_Profil1.profile.uml#_lNyUUWGNEd6noqTSfbYfzw"/>
      </eAnnotations>
      <appliedProfile href="../../../com.miasoftware.miastudio.mapping.model/model/persistenceProfile/Persistence_Profil1.profile.uml#_15_0_1_ffd0382_1205508097408_209189_98"/>
    </profileApplication>
  </uml:Model>
  <PersistenceProfil:entity xmi:id="_Zp7iIHEpEd6ZpuywBV8xTA" base_Class="_ABzHIEFiEd6SvejbCXXp4A"/>
  <PersistenceProfil:entity xmi:id="_a17bMHEpEd6ZpuywBV8xTA" base_Class="_zZSGMEleEd6F7ooXUTzWYA"/>
  <PersistenceProfil:entity xmi:id="_b2dEEHEpEd6ZpuywBV8xTA" base_Class="_0emIcEleEd6F7ooXUTzWYA"/>
  <PersistenceProfil:field xmi:id="_d-gVsHEpEd6ZpuywBV8xTA" base_Property="_n1-jMEnvEd6JxJdzuWWlww" key="true"/>
  <PersistenceProfil:field xmi:id="_enoyQHEpEd6ZpuywBV8xTA" base_Property="_w3QvcEGJEd6tBdxq2mzFhQ"/>
  <PersistenceProfil:field xmi:id="_fhADMHEpEd6ZpuywBV8xTA" base_Property="_p5aakEnvEd6JxJdzuWWlww" key="true"/>
  <PersistenceProfil:field xmi:id="_gUtYEHEpEd6ZpuywBV8xTA" base_Property="_FsILcElfEd6F7ooXUTzWYA"/>
  <PersistenceProfil:field xmi:id="_hKNcsHEpEd6ZpuywBV8xTA" base_Property="_lMZR0EnvEd6JxJdzuWWlww" key="true"/>
  <PersistenceProfil:field xmi:id="_iFOTcHEpEd6ZpuywBV8xTA" base_Property="_QlKxkElfEd6F7ooXUTzWYA"/>
  <PersistenceProfil:field xmi:id="_i2GWwHEpEd6ZpuywBV8xTA" base_Property="_cbpN4EnvEd6JxJdzuWWlww"/>
  <PersistenceProfil:valueObject xmi:id="_ha3XwHE9Ed6Z0fEfv32RaQ" base_Class="_hauN0nE9Ed6Z0fEfv32RaQ"/>
  <PersistenceProfil:masterEntity xmi:id="_hbBIwHE9Ed6Z0fEfv32RaQ" base_Dependency="_ha3XwXE9Ed6Z0fEfv32RaQ"/>
  <PersistenceProfil:valueObjectProperty xmi:id="_hbBIw3E9Ed6Z0fEfv32RaQ" base_Property="_hbBIwnE9Ed6Z0fEfv32RaQ"/>
  <PersistenceProfil:field xmi:id="_hbK5wHE9Ed6Z0fEfv32RaQ" base_Property="_hbBIwnE9Ed6Z0fEfv32RaQ" key="true"/>
  <PersistenceProfil:valueObjectIdentifier xmi:id="_hbUDsHE9Ed6Z0fEfv32RaQ" base_Class="_hbK5wnE9Ed6Z0fEfv32RaQ"/>
  <PersistenceProfil:valueObjectIdentifier xmi:id="_hbUDsnE9Ed6Z0fEfv32RaQ" base_Dependency="_hbUDsXE9Ed6Z0fEfv32RaQ"/>
  <PersistenceProfil:masterEntity xmi:id="_hbd0sHE9Ed6Z0fEfv32RaQ" base_Dependency="_hbUDtHE9Ed6Z0fEfv32RaQ"/>
  <PersistenceProfil:valueObject xmi:id="_hbd0s3E9Ed6Z0fEfv32RaQ" base_Dependency="_hbd0snE9Ed6Z0fEfv32RaQ"/>
  <PersistenceProfil:valueObjectProperty xmi:id="_hcDqkXE9Ed6Z0fEfv32RaQ" base_Property="_hcDqkHE9Ed6Z0fEfv32RaQ"/>
  <PersistenceProfil:valueObjectProperty xmi:id="_hcNbkHE9Ed6Z0fEfv32RaQ" base_Property="_hcDqk3E9Ed6Z0fEfv32RaQ"/>
</xmi:XMI>

Attachment: persistence.rar
Description: Binary data