[
http://galaxy.andromda.org:8080/jira/browse/CORE-50?page=comments#action_11240 ]
Wouter Zoons commented on CORE-50:
----------------------------------
Matthias,
this should have been an email to the devel list .. no need to create issues in
jira when you're having trouble with something (sometimes it isn't a bug :-) )
anyway, your andromda-metafacades.xml contains stuff like this:
<metafacade
class="org.andromda.cartridges.costcalculator.metafacades.AssociationCostsLogicImpl">
<mapping class="org.omg.uml.foundation.core.UmlAssociation$Impl">
</mapping>
</metafacade>
that's pretty old-school, we don't do that anymore (for obvious reasons), your
cartridge metafacades should map onto the metafacades from our generic UML
layer (which in turn maps onto the JMI metaclasses)
just re-read the docs because many things changed in (and have been added to)
this department, such as conditional mapping based on metafacade properties
> Metafacade factory instantiates the wrong facade type
> -----------------------------------------------------
>
> Key: CORE-50
> URL: http://galaxy.andromda.org:8080/jira/browse/CORE-50
> Project: AndroMDA Core
> Type: Bug
> Versions: 3.0 RC1
> Reporter: Matthias Bohlen
> Assignee: Chad Brandon
>
> Please run cartridge:test inside contrib/cartridges/andromda-costcalculator.
> In andromda-costcalculator.log, you will notice a ClassCastException,
> preceded be an error message:
> ERROR 2005-03-24 11:43:18,000 - ClassifierCostsLogicImpl: cannot cast type
> 'org.andromda.cartridges.costcalculator.metafacades.OperationCostsLogicImpl'
> to AssociationEndFacade
> This is caused inside the following code snippet of that cartridge (file
> ClassifierCostsLogicImpl.java):
> Collection associationEnds = this.getAssociationEnds();
> for (Iterator iter = operations.iterator(); iter.hasNext();)
> {
> Object o = iter.next();
> if (!(o instanceof AssociationEndFacade))
> {
> this.logger.log(Priority.ERROR,
> "ClassifierCostsLogicImpl: cannot cast type '"
> + o.getClass().getName()
> + "' to AssociationEndFacade");
> }
> AssociationEndFacade aef = (AssociationEndFacade) o;
> AssociationCosts element = (AssociationCosts)
> aef.getAssociation();
> result.addSubPosition(element.getCosts());
> }
> You can see that the metafacade factory instantiates OperationCostsLogicImpl
> for an association end which is very weird! The factory should instantiate an
> AssociationEndFacade, instead. The andromda-cartridge.xml file of
> andromda-costcalculator says nothing about a mapping of association ends!
> Puzzled...
> Matthias
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://galaxy.andromda.org:8080/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel