Hi Vikram, Ok so I had a chance to look at the model, the issue was that ArgumentFacade was not extending ModelElementFacade in the UMLMetafacadeModel (which should not have been the case....a bug in the UMLMetafacadeModel), anyway it looks like your model had meta objects of type org.omg.uml.behavioralelements.commonbehavior.Argument$Impl that therefore caused an attempt at trying to instantiate an ArgumentFacade. This led to the exception you saw since that method checks to see if the model element is assignable from ModelElementFacade (which it wasn't). But anyway I've fixed the UMLMetafacadeModel in CVS so if you get the latest from CVS (or change your UMLMetafacadeModel to make ArgumentFacade extend ModelElementFacade), the exception will go away.
Chad ----- Original Message ----- From: "Naik, Vikram" <[EMAIL PROTECTED]> To: "Chad Brandon" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, August 24, 2004 9:26 AM Subject: RE: [Andromda-user] Error process model migrated from MD 7.2 v to MD 7.8 v > Hello Chad, > > Please find the attached model here with, I have tried to generate code using the attached model, resulting into the same exception being thrown as reported in the news post. > > Thanks again for looking into it. > > Regards, > Vikram Naik. > > -----Original Message----- > From: Chad Brandon [mailto:[EMAIL PROTECTED] > Sent: Tue 8/24/2004 3:18 PM > To: Naik, Vikram > Cc: > Subject: RE: [Andromda-user] Error process model migrated from MD 7.2 v to MD 7.8 v > > > > Yep, send to my email. > > --- "Naik, Vikram" <[EMAIL PROTECTED]> wrote: > > > Hello Chad, > > > > The simplest models size is bigger then the allowed > > limit on this mailing list. Can I send the model > > directly to your mail id ? > > > > Thanks & Regards, > > -Vikram. > > > > -----Original Message----- > > From: Chad Brandon [mailto:[EMAIL PROTECTED] > > Sent: Tue 8/24/2004 1:30 PM > > To: Naik, Vikram; > > [EMAIL PROTECTED] > > Cc: > > Subject: Re: [Andromda-user] Error process model > > migrated from MD 7.2 v to MD 7.8 v > > > > > > > > Can you send me one of the models that reproduces > > the error? > > > > ----- Original Message ----- > > From: "Naik, Vikram" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, August 24, 2004 5:05 AM > > Subject: [Andromda-user] Error process model > > migrated from MD 7.2 v to MD > > 7.8 v > > > > > > > Hello, > > > > > > We have upgraded MD from version 7.2 to MD 7.8 > > version. After migrating > > the existing MD 7.2 project to MD 7.8, and trying > > to process it using > > AndroMDA 3.0M2 , exception is thrown by AndroMDA. > > The exception is pasted > > below. > > > > > > Second thing, once we have this exception, even > > if a new project modelled > > from scratch in MD 7.8 is supplied for generation, > > the AndroMDA engine > > throws the same error. We have to kill the JVM and > > re-run the AndroMDA > > process for proper execution, once such an error is > > faced. > > > > > > Is there any API using which we can discard the > > cached metafacades if any > > such error is faced? > > > > > > If a new project is created in MD 7.8 from > > scratch, the generation works > > fine. > > > > > > Please comment. > > > > > > -Vikram. > > > > > > Note: MD = Magic Draw. > > > > > > > > > > > > > > > > > > ######### Stack Trace ########################## > > > > > > java.lang.IllegalArgumentException: methodName: > > UMLModelAccessFacade.getPackageName - > > 'modelElement' class --> 'class > > ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
