Hi Jose,

Can you send me the model that you're testing with?

--- Jose Carlos <[EMAIL PROTECTED]> wrote:
> Hi Chad,
> 
> I testing the andromda:genapp with maven and
> application folders are 
> created in my computers. Ok. My test project use an
> Poseidon UML file 
> with 3 Entities, 3 Value Objects and 3 Exceptions.
> When the start maven 
> in my project, two files with name .java are created
> in my commons 
> directory. A compile error is generated by maven.
> 
> I testing with other very simple model (1 Entity, 1
> Value Object and 1 
> Exception) and the same happens...
> 
> Thanks
> 
> 
> > //
> // Attention: Generated code! Do not modify by hand!
> // Generated by: ApplicationException.vsl in
> andromda-java cartridge.
> //
> package com.jcmoj.mda.teste;
> 
> import org.apache.commons.beanutils.PropertyUtils;
> 
> /** 
>  
>  */
> public class ${class.name} extends Exception {
> 
>     /**
>      * The default constructor.
>      */
>     public ${class.name}() {}
> 
>       /**
>        * Constructs a new instance of ${class.name}
>        *
>        * @param throwable the parent Throwable
>        */
>       public ${class.name}(Throwable throwable) {
>               super(findRootCause(throwable));        
>       }
>       
>       /**
>        * Constructs a new instance of ${class.name}
>        *
>        * @param message the throwable message.
>        */
>       public ${class.name}(String message) {
>               super(message); 
>       }
>       
>       /**
>        * Constructs a new instance of ${class.name}
>        *
>        * @param message the throwable message.
>        * @param throwable the parent of this Throwable.
>        */
>       public ${class.name}(String message, Throwable
> throwable) {
>               super(message, findRootCause(throwable));       
>       }
>       
>       /**
>        * Finds the root cause of the parent exception
>        * by traveling up the exception tree
>        */
>     private static Throwable findRootCause(Throwable
> th) {
>       if (th != null) {
>             final String methodName =
> "${class.name}.findRootCause";
>             if (th == null) {
>                 throw new
> IllegalArgumentException(methodName + 
>                     " 'throwable can not be null"); 
>             }
>             
>             // Lets reflectively get any JMX or EJB
> exception causes.
>             try {
>                 Throwable targetException = null;
>                
> //java.lang.reflect.InvocationTargetException 
>                 //or
> javax.management.ReflectionException
>                 String exceptionProperty =
> "targetException";
>                 if (PropertyUtils.isReadable(th,
> exceptionProperty)) {
>                     targetException =
> (Throwable)PropertyUtils.getProperty(th,
> exceptionProperty);
>                 } else {
>                       exceptionProperty =
> "causedByException";
>                     //javax.ejb.EJBException
>                     if (PropertyUtils.isReadable(th,
> exceptionProperty)) {
>                       targetException =
> (Throwable)PropertyUtils.getProperty(th,
> exceptionProperty);
>                     }
>                 }
>                 if (targetException != null) {
>                       th = targetException;
>                 }
>             } catch (Exception ex) {
>               // just print the exception and
> continue
>                 ex.printStackTrace();
>             }
>             
>             if (th.getCause() != null) {
>                 th = th.getCause();
>                 th = findRootCause(th);
>             }
>         }
>         return th;
>       }       
> }
> 



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to