Hi,


I want to build my cartridge with ant, because in my company the usage of ant 
is favoured to the usage of maven.



If I try to build my cartridge I get the following error after the validation 
of my MetafacadeModel:



------- AndroMDA Exception Recording -------

Version ........: 3.1-RC1-20050714061224

Error ..........: Error performing ModelProcessor.process with 
model(s) --> 
'file:D:devdiplomtplcartridge_devdpcom-bpm4jformularumlBpm4JFormularMetaFacadeModel.xml.zip!Bpm4JFormularMetaFacadeModel.xml'

Build ..........: 2005-07-14 06:12:24

Build System ...: Linux-2.4.29

Build JDK ......: Sun Microsystems Inc.-1.4.2_07-b05

Build Builder ..: andromda-build

Run System .....: Windows XP5.1

Run JDK ........: Sun Microsystems Inc.1.4.2_06-b03

Main Exception .: org.andromda.core.cartridge.CartridgeException: Error 
performing Cartridge.processWithTemplate with template 
'templates/meta/MetafacadeLogic.vsl', template context '{[EMAIL 
PROTECTED], [EMAIL PROTECTED], 
metafacade=org.andromda.cartridges.meta.metafacades.MetafacadeLogicImpl[ProgressNotificationFacade],
 [EMAIL PROTECTED]}' and cartridge 'meta'

Root Exception .: 
org.apache.velocity.exception.MethodInvocationException: Invocation of 
method 'getMethodDataForPSM' in  class 
org.andromda.cartridges.meta.metafacades.MetafacadeLogicImpl threw exception 
class java.lang.RuntimeException : 
org.andromda.core.metafacade.MetafacadeException: Error performing 
MetafacadeFacadeLogicImpl.internalGetMethodDataForPSM

org.apache.velocity.exception.MethodInvocationException: Invocation of 
method 'getMethodDataForPSM' in  class 
org.andromda.cartridges.meta.metafacades.MetafacadeLogicImpl threw exception 
class java.lang.RuntimeException : 
org.andromda.core.metafacade.MetafacadeException: Error performing 
MetafacadeFacadeLogicImpl.internalGetMethodDataForPSM

   at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246)

   at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)

   at 
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327)

   at 
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:131)

   at 
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)

   at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)

   at 
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)

   at 
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)

   at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)

   at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70)

   at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)

   at 
org.apache.velocity.Template.merge(Template.java:256)

   at 
org.andromda.templateengines.velocity.VelocityTemplateEngine.processTemplate(VelocityTemplateEngine.java:258)

   at 
org.andromda.core.cartridge.Cartridge.processWithTemplate(Cartridge.java:291)

   at 
org.andromda.core.cartridge.Cartridge.processTemplateWithMetafacades(Cartridge.java:215)

   at 
org.andromda.core.cartridge.Cartridge.processTemplate(Cartridge.java:117)

   at 
org.andromda.core.cartridge.Cartridge.processModelElements(Cartridge.java:71)

   at 
org.andromda.core.engine.ModelProcessor.processModels(ModelProcessor.java:225)

   at 
org.andromda.core.engine.ModelProcessor.process(ModelProcessor.java:146)

   at 
org.andromda.core.engine.ModelProcessor.process(ModelProcessor.java:84)

   at org.andromda.core.engine.Engine.run(Engine.java:76)

   at org.andromda.core.AndroMDA.run(AndroMDA.java:129)

   at org.andromda.core.AndroMDA.run(AndroMDA.java:91)

   at 
org.andromda.ant.task.AndroMDAGenTask.execute(AndroMDAGenTask.java:77)

   at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

   at org.apache.tools.ant.Task.perform(Task.java:364)

   at org.apache.tools.ant.Target.execute(Target.java:341)

   at 
org.apache.tools.ant.Target.performTasks(Target.java:369)

   at 
org.apache.tools.ant.Project.executeTarget(Project.java:1214)

   at 
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)

   at 
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)

   at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

   at org.apache.tools.ant.Task.perform(Task.java:364)

   at org.apache.tools.ant.Target.execute(Target.java:341)

   at 
org.apache.tools.ant.Target.performTasks(Target.java:369)

   at 
org.apache.tools.ant.Project.executeTarget(Project.java:1214)

   at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:379)

   at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)





My andromda.xml looks like:

<andromda>

&nbsp; &nbsp; <properties>

&nbsp; &nbsp; &nbsp; &nbsp; <property name="cartridgeFilter">meta</property>

&nbsp; &nbsp; </properties>

&nbsp; &nbsp; <repositories>

&nbsp; &nbsp; &nbsp; &nbsp; <repository name="netBeansMDR">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <models>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <model>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<uri>$&#123;model&#125;</uri>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<moduleSearchLocations>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; <location>$&#123;profiles.dir&#125;</location>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;<location>$&#123;andromda.core.lib.dir&#125;</location>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
</moduleSearchLocations>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<modelPackages>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; <modelPackage 
process="false">org&#58;&#58;andromda&#58;&#58;metafacades&#58;&#58;uml</modelPackage>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
</modelPackages>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </model>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </models>

&nbsp; &nbsp; &nbsp; &nbsp; </repository>

&nbsp; &nbsp; </repositories>

&nbsp; &nbsp; <namespaces>

&nbsp; &nbsp; &nbsp; &nbsp; <namespace name="meta">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <properties>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="languageMappingsUri">Java</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="wrapperMappingsUri">JavaWrapper</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="facades">$&#123;basedir&#125;/src/java/facade</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="facade-logics">$&#123;basedir&#125;/src/java/logic</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="facade-logic-impls">$&#123;basedir&#125;/src/java/impl</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </properties>

&nbsp; &nbsp; &nbsp; &nbsp; </namespace>

&nbsp; &nbsp; </namespaces>

</andromda>



Has anyone an idea what causes the error? The building of the cartridge with 
Maven runs without any problems...



Thanks

Timo
--
...and that's the way the cookie crumbles
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3492#3492
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to