[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.mdt.uml2] Re: Continuing saga of the standalone app
|
Victor,
This happened to me when I tried to use an older profile.
My solution was to open the profile with the UML Model Editor, select the
<Profile> element, then (in the top menu) click UML Editor | Profile |
Define.
The result is an up-to-date profile that can be loaded as
org.eclipse.uml2.uml.Profile instead of
org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl .
It would be nice if this could be done programatically, though.
Jeff
"Victor Hugo" <victorhcf@xxxxxxxxx> wrote in message
news:d05d6b4e49b96e4e3e7e108487524686$1@xxxxxxxxxxxxxxxxxx
> Hi Friends,
>
> i have the same problem and try to solve using yours solutions by I obtain
> this exception when i try to load model:
>
> java.lang.ClassCastException:
> org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl cannot be cast to
> org.eclipse.uml2.uml.Profile
> at
> org.eclipse.uml2.uml.internal.impl.ProfileApplicationImpl.getAppliedProfile(ProfileApplicationImpl.java:182)
> at
> org.eclipse.uml2.uml.internal.impl.ProfileApplicationImpl.eGet(ProfileApplicationImpl.java:410)
> at
> org.eclipse.uml2.common.util.DerivedEObjectEList$DerivedListIterator.prepareNext(DerivedEObjectEList.java:100)
> at
> org.eclipse.uml2.common.util.DerivedEObjectEList$DerivedListIterator.hasNext(DerivedEObjectEList.java:149)
> at
> org.eclipse.uml2.common.util.DerivedEObjectEList$DerivedListIterator.scanNext(DerivedEObjectEList.java:66)
> at
> org.eclipse.uml2.common.util.DerivedEObjectEList$DerivedListIterator.prepareNext(DerivedEObjectEList.java:109)
> at
> org.eclipse.uml2.common.util.DerivedEObjectEList$DerivedListIterator.hasNext(DerivedEObjectEList.java:149)
> at
> org.eclipse.uml2.common.util.DerivedEObjectEList$DerivedListIterator.next(DerivedEObjectEList.java:158)
> at
> org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.hasNext(EContentsEList.java:443)
> at
> org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.next(EContentsEList.java:561)
> at
> org.eclipse.emf.ecore.util.EcoreUtil.resolveCrossReferences(EcoreUtil.java:307)
> at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:287)
> at
> br.ufrj.nce.crossmda.xml.util.EMFUML2RepositoryFacade.readModel(EMFUML2RepositoryFacade.java:143)
> at
> br.ufrj.nce.crossmda.xml.util.EMFUML2RepositoryFacade.readModel(EMFUML2RepositoryFacade.java:126)
> at
> br.ufrj.nce.crossmda.xml.util.EMFUML2RepositoryFacade.readModel(EMFUML2RepositoryFacade.java:203)
> at
> br.ufrj.nce.crossmda.xmi.util.emf.EMF_XMIRepositoryImpl.loadModel(EMF_XMIRepositoryImpl.java:227)
> at br.ufrj.nce.crossmda.test.emf.TesteModelo.main(TesteModelo.java:248)
>
>
>
> what should i do to resolve profiles?
>
> thanks
>