Cool thanks for looking into that Vikram, I just took a look at the
MDRepositoryFacade and that does make complete sense. I'll apply the fix.
Thanks again!
Chad
----- Original Message -----
From: "Naik, Vikram" <[EMAIL PROTECTED]>
To: "Chad Brandon" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Saturday, August 21, 2004 9:27 AM
Subject: RE: [Andromda-user] Metafacades not found in second run.
> Hi,
>
> The actual problem was due to, the model read during the first run is
nulled out after the generation is done.
>
> After the generation there is a call to "repository.close()" which has
following implementation.
> ##############################
> ...................
> .....................
> if (model != null)
> {
> model.refDelete();
> }
> this.model = null;
> ###############################
>
> Now in the second run, the cached repository has the modelFacade not null,
but the model set within is already nulled out, when " repository.close() "
was called in last run.
> I think in the " getModel() " of MDRepositoryFacade the call to "
this.modelFacade.setModel(this.model); " can be placed outside of "if"
statement block.
> Currently I have done the above change and 'm not having problems after,
the generation works fine.
>
> Thanks & Regards,
> Vikram Naik.
>
> -----Original Message-----
> From: Chad Brandon [mailto:[EMAIL PROTECTED]
> Sent: Fri 8/20/2004 9:36 PM
> To: Naik, Vikram; [EMAIL PROTECTED]
> Cc:
> Subject: RE: [Andromda-user] Metafacades not found in second run.
>
>
>
> The call "modelElements.getAllMetafacades(); " exists
> on org.andromda.core.cartridge.template.ModelElements
> so you can take a look at why that collection isn't
> being populated the second time or why its getting
> cleared out. The population of this collection occurs
> within the Cartridge class.
>
> --- "Naik, Vikram" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > Can you point me to the classes I should look into ?
> > Will try to corner it down.
> >
> > -Vikram.
> >
> > -----Original Message-----
> > From: Chad Brandon [mailto:[EMAIL PROTECTED]
> > Sent: Fri 8/20/2004 6:06 PM
> > To: Naik, Vikram;
> > [EMAIL PROTECTED]
> > Cc:
> > Subject: Re: [Andromda-user] Metafacades not found
> > in second run.
> >
> >
> >
> > Not sure, probably a bug in the code (as I haven't
> > tried it with more than one run before retarting
> > the
> > JVM) I'll take a look tonight, however if you find
> > the issue feel free to let me know what it is and
> > I'll
> > fix it in CVS.
> >
> > Chad
> >
> > --- "Naik, Vikram" <[EMAIL PROTECTED]> wrote:
> >
> > > Hello,
> > >
> > > I am running AndroMDA process from a java class,
> > > instead of using Ant. On the first run everything
> > > works fine. But on the second run, the
> > modelElements
> > > in Cartridge returns empty collection of
> > metafacades
> > > for this call "
> > modelElements.getAllMetafacades(); "
> > >
> > >
> > > What could be the probable reason for this?
> > >
> > > -Vikram.
> > >
> >
> HS^ÃÂÃÂÃÂà XÃÂÃÂÃÂ'ÃÂà ÃÅuÃÂÃââÃâ Ã
xÃÂÃÂ!rÃâÂÃâÂÃÂÃÂÃÂÃÂÃÂqÃÂ'VÃÂÃÂÃâÃÂÃâÂÃÂtÃâÃâÂÃÂxÃâ
> >
> >
> PÃâÃÂÃÂÃÂÃâÂÃÂÃâouÃâJdJÃâÂÃÂp5CÃÂÃÂÃÂÃâÂÃÂÃâ}ÃâjÃÂÃÂÃâÃâÂÃÅEÃÂZÃ
Z'"yÃÂwÃÂÃÂÃÂJÃÂÃÂ)à jwEÃÂÃÂÃâ ÃâÂÃÂaÃÂÃÅÃÂ
> >
> 0ÃÂ)ÃÂÃâÃâÃâÂÃÅ&ÃÂ?ÃËÃÂHÃÅÃÂ&ÃÂÃÂÃÂÃÂÃÂÃÂ?ÃÂ]<ÃÂo9wkÃÂgZÃÂÃâÃÂÃâÂÃÂÃÂÃ
x%Ã [EMAIL PROTECTED]
ÃâlÃÂÃâÂÃÂqÃÂÃÂÃÂÃÂzÃËmÃÂÃâÂ?ÃÂXÃÂÃÂÃâ(ÃÂÃÂ~Ã
à zwÃÂÃÂXÃÂÃÂÃÂÃÂà ÃâbÃÂÃÂ?jwkÃÂgZÃÂÃâÃÂ
> >
> >
> >
> > 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]
ÃXÂÂÃ(ÂÂ~ÅÃzwÂÃXÂÂÃÃÅÃbÂÃ?jwkÂgZÂÃÂ
>
>
>
>
-------------------------------------------------------
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