Chad Brandon wrote:

I already generated a Session Bean and a Hibernate Entity. But I am
still missing two other entities and an Exception. What happens is that
I get that exception:

03:53:38,497 ERROR [DefaultAndroMDACartridge] Error performing
DefaultAndroMDACartridge.processWithTemplate with template
'templates/HibernateEntity.vsl', template context
'[EMAIL PROTECTED],
[EMAIL PROTECTED]' and cartridge
'hibernate'
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'getColumnName' in class
org.andromda.metafacades.uml14.EntityAssociationEndFacadeLogicImpl threw
exception class java.lang.ClassCastException : null



Yeah unfornately those class cast messages suck :) I think you'll see that
specific exception if you have an Entity thats associated to another class
that doesn't have the <<Entity>> stereotype (basically what happens is it
tries to get the association end and if the class its associated to isn't
stereotyped as <<Entity>> then it will create an AssociationEndFacade
(instead of an EntityAssociationEndFacade)...hence the class cast exception.


Aiiiiii..... this leads me to the idea that MAYBE I shouldn't have connected my service bean with the UserAccount entity using an association? :-)

Well, I removed that one and that was exactly it.

I am getting enthusiastic about your support...

Actually one last problem persists :)))

I have one Exception class modelled which should be used four times (I drew dependencies from four different entities/service to the Exception...). The result is that AndroMDA generates four times a file with the great name .java (no name, just the extension) - AND it keeps the placeholders in the file instead of replacing those with the chosen class name (I did give the class a name, I am sure of that. It is empty otherwise, tho...). Still it correctly places that noname class in the correct package :-).

But: No error messages this time! :-)




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to