Hi all!

I'm still having troubles with the new AndroMDA 3.0M2. Here is my abridged andromda-metafacades.xml :


<?xml version="1.0" encoding="UTF-8" ?>
<metafacades namespace="webapp">
    <metafacade
        metaobjectClass="org.omg.uml.foundation.core.UmlClass$Impl"
        metafacadeClass="org.andromda.cartridges.webapp.metafacades.WebAppEntityFacadeLogicImpl">
        <property reference="localizableClassFullyQualifiedName"/>
    </metafacade>
</metafacades>



I'm calling this property in the templates through the getLocalizableClassFullyQualifiedName operation which is of course in the metafacade model for my cartridge. Here is the implementation in the org.andromda.cartridges.webapp.metafacades.WebAppEntityFacadeLogicImpl class :


    public String handleGetLocalizableClassFullyQualifiedName() {
        return (String) this.getConfiguredProperty("localizableClassFullyQualifiedName");
    }



When this method is called from a velocity template (${class.localizableClassFullyQualifiedName}) I get this :

Caused by: org.andromda.core.cartridge.CartridgeException: Error performing Cartridge.processWithTemplate with template 'templates/entity/Entity.vsl', template context '[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], class=org.andromda.metafacades.uml14.ModelElementFacadeLogicImpl[com.agencebraque.jetsgo.jetsadmin.flightinfo.Airport], [EMAIL PROTECTED], [EMAIL PROTECTED]' and cartridge 'webapp'
    at org.andromda.core.cartridge.Cartridge.processWithTemplate(Cartridge.java:359)
    at org.andromda.core.cartridge.Cartridge.processModelElements(Cartridge.java:227)
    ... 28 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getLocalizableClassFullyQualifiedName' in  class org.andromda.cartridges.webapp.metafacades.WebAppEntityFacadeLogicImpl threw exception class org.andromda.core.metafacade.MetafacadeFactoryException : MetafacadeFactory.getRegisteredProperty - no property 'localizableClassFullyQualifiedName' registered under namespace 'org.andromda.cartridges.webapp.metafacades.WebAppEntityFacade:property'
    at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:237)
    at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:218)
    at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:263)
    at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
    at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109)
    at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
    at org.apache.velocity.Template.merge(Template.java:296)
    at org.andromda.templateengines.velocity.VelocityTemplateEngine.processTemplate(VelocityTemplateEngine.java:204)
    at org.andromda.core.cartridge.Cartridge.processWithTemplate(Cartridge.java:290)
    ... 29 more



Any idea why? This used to work with the 3.0M2-SNAPSHOT some time ago.

Thanks,

Vincent-Olivier Arsenault

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

Reply via email to