[ http://galaxy.andromda.org:8080/jira/browse/CORE-50?page=comments#action_11251 ] Chad Brandon commented on CORE-50: ----------------------------------
Nevermind, I get it....was expecting it to fail during the run but I see you catch the exception. > 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
