[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

Hi Victor,

I don't think there is enough information here to figure out what the 
problem is.  Can you post your model and profile, or at least sections of 
it,  such that the exception can be reproduced ?

- James.


"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
>