Hello Kiran,

Thursday, February 3, 2005, 11:45:09 PM, you wrote:

KK>> Sorry for the hasstle, Matthias but I have looked at your September thread
KK>> regarding the Hibernate cartidge and I am wondering if you were able to 
just
KK>> take an existing .xmi file (from Poseidon or the like) and run a maven
KK>> andromda:run on it to get the desired hibernate config files.  
KK>> I don't get any output, although the Andromda processor is working fine.  
Any
KK>> ideas?  I also tried generating the fullblow j2ee app using the 
KK>> maven andromdapp:generate (which works fine, as indicated in your thread),
KK>> and then replaced the .xmi file created from this in /mda/src/uml with my 
own
KK>> and ran the andromda:run, but to no avail.  The code is still not 
generated.
KK>> Has this been fixed?  The thread I am referring to is linked below.

KK>> 
http://www.mail-archive.com/[email protected]/msg02623.html

KK>> Thanks in advance,

KK>> Kiran

I got your model file (*.zuml, created with Poseidon 3). I looked at
it inside Poseidon 3 and did not find any reason why it should not
generate any output.

I did a "maven andromdapp:generate" and edited project.properties in
the "mda" subdirectory of the generated project. I replaced the model
URI line by:

  
maven.andromda.model.uri=jar:file:C:/temp/kiran/genome/mda/src/uml/model.zuml!model.xmi

And: bingo! I got an exception that says:

Main Exception .: methodName: Model.Model - 'url' can not be null
Root Exception .: java.lang.IllegalArgumentException: methodName: Model.Model - 
'url' can not be null
java.lang.IllegalArgumentException: methodName: Model.Model - 'url' can not be 
null
        at 
org.andromda.core.common.ExceptionUtils.checkNull(ExceptionUtils.java:41)
        at org.andromda.core.Model.<init>(Model.java:35)
        at 
org.andromda.core.anttasks.AndroMDAGenTask.execute(AndroMDAGenTask.java:187)

So, I deduced that we have a bug in the processing of the
"jar:file:..." syntax, when combined with a "*.zuml" file extension of
the model file!

I used WinZip to unzip the model.zuml file and got a model.xmi file.
Then I replaced the model URI by:

  maven.andromda.model.uri=file:C:/temp/kiran/genome/mda/src/uml/model.xmi

Then, I got tons of java files generated from your entity classes!
These java files were not in proper java packages and did not make use
of the platform independent datatypes from the AndroMDA profile, so
that later on, the Java compiler complained about things like
"java.lang.int", but never mind, you'll get rid of that easily if you
follow our modeling guidelines on the website www.andromda.org.

To my peers in the team: Can anyone fix the jar:file:....zuml!...xmi
issue? This would enable Poseidon users to work as expected. Thanks!

Good luck, Kiran...
Matthias

---

Matthias Bohlen

Internet:
   http://www.mbohlen.de/
   [EMAIL PROTECTED]






-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to