Hi Chad,
 
Took the latest model from CVS, tried running the generation process got the same 
error again. We have this a jar named "andromda-metafacades-uml-3.0M2.jar" in 
classpath which stores the abstract interfaces of all the basic metafacades, one of 
them being ArgumentFacade, which is not extending the ModelElementFacade. 
 
Apart from model, is it required to update and compile this interface ? 
 
Please comment.
 
Thanks & Regard,
-Vikram.

        -----Original Message----- 
        From: Chad Brandon [mailto:[EMAIL PROTECTED] 
        Sent: Thu 8/26/2004 5:20 AM 
        To: Naik, Vikram 
        Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] 
        Subject: Re: [Andromda-user] Error process model migrated from MD 7.2 v to MD 
7.8 v
        
        

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

HS^µéX¬²š'²ŠÞu¼’†Šxµç!r‰‹£¬¶šâqê'V§Ç‰­tÒ¢xœ
PÑãèåËouÓJdJ‰âp5CùèåË}Òj÷¹ÒßEëZŠZ'"y¢w«·žJ©¦)àjwE­çûa¶Úÿ
0²)â×…Ê&ÿ?ÈHÞ&«¶¸ë?÷]<[EMAIL PROTECTED](º·~Šàzw­þX¬¶ÏåŠËbú?jwk¢gZºÇ

Reply via email to