Christian Seiler wrote:

Hello,
I have a model, which included an imported module. There are some
classes
defined in the module, which I want to use in my model. I have no
problems with modelling with Magicdraw (9.0SP2), I can use the
imported classes as method parameters for instance or create inheritence
relationships.


But when I want to run Andromda, I receive validation errors like the following:

1) "Each parameter needs a type, you cannot leave the type unspecified."
(imported class as method parameter)

2) "Each entity must have at least one identifier defined."
(inheritence between two entities, the primary key is not inherited)


Obviously Andromda does not have access to the imported classes. I really don't have a clue. The log files don't show much but validation errors.

I use the latest RC1-snapshot.

Any help wpuld really be appreciated, as I'm really stuck right now..


There have been quite a few messages regarding this on the list lately. Basically it comes down to the fact that Magic Draw seems to screw up model references (usually stereotypes are no longer seen by MDR and therefore AndroMDA can't find them either) when you change the name of the referenced model or do something to the referenced module from inside Magic Draw, usually doing a search and replace to change the module in the XMI fixes the issue (people have seen this when uprading the andromda-profile to the latest for example)..

Chris



* hibernate log:
INFO  2005-03-23 13:55:24,988 - Method next threw exception for
reference $entity in template templates/hibernate/hibernate.hbm.xml.vsl
at  [15,21]

* exception log:

Root Exception .:
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'next' in  class java.util.AbstractList$Itr threw exception class
java.util.NoSuchElementException : null
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'next' in  class java.util.AbstractList$Itr threw exception class
java.util.NoSuchElementException : null
        at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:246)
        at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:175)
        at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.
java:327)
        at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpressio
n.java:51)






------------------------------------------------------- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user






------------------------------------------------------- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to