[Andromda-devel] AndroMDA/JIRA Commented: (EJB-53) Wrong class reference of associations of a MappedSuperclass
[ http://jira.andromda.org/browse/EJB-53?page=comments#action_14420 ] Karl-Heinz Walk commented on EJB-53: I used this modification and encoutered several problems/ errors: 1. With stereotype <> the class is generated without the member "id" and methods getId and setId. But this methods are called in the derived classes. 2. When I model the "id" member explictly in the <> the model will not be validated. For each derived class I get the following message: 2007-05-17 13:59:55,013 ERROR [AndroMDA] 1) [Data::aiinfosys::de.amnesty.bezirk.aiinfosys::domain::EinzelMitglied]:An undocumented constraint has been violated: context EJB3EntityFacade\r\ninv: identifiersPresent This also happens if I annote the "id" member with @andromda.persistence.coulmn 3. I would like to have the <> to be abstract. If I set the flag in MagicDraw for the class I get the following error: --- AndroMDA Exception Recording --- Version : 3.3-SNAPSHOT Error ..: Error performing ModelProcessor.process with model(s) --> 'C:\Projects\aiinfosys\mda\src\main\uml\aiinfosys.uml2' Build ..: ${build.date} Build System ...: Linux-2.4.29-su-1.2 Build JDK ..: Sun Microsystems Inc.-1.5.0_07-b03 Build Builder ..: su-builder Run System .: Windows XP5.1 Run JDK : Sun Microsystems Inc.1.5.0_06-b05 Main Exception .: org.andromda.core.cartridge.CartridgeException: Error processing template 'templates/ejb3/EntityEmbeddable.vsl' with template context '{entity=org.andromda.cartridges.ejb3.metafacades.EJB3EntityFacadeLogicImpl[Adresse], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], driver=com.mysql.jdbc.Driver, username=amnesty, password=andisherpa, connectionUrl=jdbc:mysql://localhost:3306/aiinfosys, dataSource=java:/jdbc/aiinfosys, dataSourceName=jdbc/aiinfosys, entityManagerName=aiinfosys, hibernateHbm2DDLAuto=update, hibernateDialect=org.hibernate.dialect.MySQLInnoDBDialect, hibernateShowSql=null, hibernateMaxFetchDepth=null, hibernateJdbcFetchSize=null, hibernateJdbcBatchSize=null, hibernateJdbcUseScrollableResultSet=null, hibernateJdbcUseStreamsForBinary=null, hibernate CacheProvider=org.jboss.ejb3.entity.TreeCacheProviderHook, hibernateTreecacheMbeanObject=jboss.cache:service=EJB3EntityTreeCache, hibernateEnableCache=false, hibernateEnableAssociationsCache=false, hibernateUseQueryCache=false, useDefaultCacheRegion=false, hibernateTransactionManagerLookupClass=null, hibernateTransactionFlushBeforeCompletion=null, hibernateTransactionAutoCloseSession=null, serviceLocatorName=ServiceLocator, manageableServiceLocatorName=ManageableServiceLocator, ejb3TypesPackage=de.amnesty.bezirk.infosys, persistenceProviderExtensions=none, persistenceContextUnitName=aiinfosys, persistenceContainerName=jboss, parameterRequiredCheck=true, xmlEncoding=UTF-8, enableTemplating=true, jndiNamePrefix=aiinfosys-1.0, securityRealm=null, manageableRolesAllowed=Admin, enableClustering=false, webServiceContextRoot=/aiinfosys-ws, webServiceUrlPattern=/services, dao-impls=C:\Projects\aiinfosys\mda/../core/src/main/java, daos=C:\Projects\aiinfosys\mda/../core/target/src, da oInheritanceEnabled=false, enableDaoPropertiesCreateMethod=true, seamEnabled=false, jarFiles=null}' using cartridge 'ejb3' Root Exception .: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getAllEntityRelations' in class org.andromda.cartridges.ejb3.metafacades.EJB3EntityFacadeLogicImpl threw exception class java.lang.IllegalStateException : Relation 'adresse2adressierbar' has the abstract target 'Adressierbar'. Abstract targets are not allowed in EJB. org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getAllEntityRelations' in class org.andromda.cartridges.ejb3.metafacades.EJB3EntityFacadeLogicImpl threw exception class java.lang.IllegalStateException : Relation 'adresse2adressierbar' has the abstract target 'Adressierbar'. Abstract targets are not allowed in EJB. at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:193) 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.parser.node.ASTExpression.value(ASTExpression.java:51) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95) 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:240) at org.andromda.core.cartridge.Cartridge.processWithTemplate(Cartridge.java:373) at org.andromda.core.cartridge.Cartridge.processTemplateWithMetafacades(Cartridge.java:235) at org.andromda.core.ca
[Andromda-devel] AndroMDA/JIRA Reopened: (EJB-53) Wrong class reference of associations of a MappedSuperclass
[ http://jira.andromda.org/browse/EJB-53?page=all ] Vance Karimi reopened EJB-53: - Need to investigate further. > Wrong class reference of associations of a MappedSuperclass > --- > > Key: EJB-53 > URL: http://jira.andromda.org/browse/EJB-53 > Project: EJB Cartridge > Type: Bug > Reporter: Karl-Heinz Walk > Assignee: Vance Karimi > Priority: Critical > > A modelled entity "XXX" with stereotype <> which has an > association to an entity "YYY" is named "XXXEmbeddable". But in the class > "YYY" the association definition is of class "XXX" instead of > "XXXEmbeddable". The generated code can't be compiled. > To solve this bug I suggest that explicitly modelled mapped superclasses are > NOT renamed to "XXXEmbeddable" but simply named "XXX". -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
[Andromda-devel] AndroMDA/JIRA Created: (EJB-57) UML {ordered} produces invalid code
UML {ordered} produces invalid code --- Key: EJB-57 URL: http://jira.andromda.org/browse/EJB-57 Project: EJB Cartridge Type: Bug Environment: AndroMDA 3.3-SNAPSHOT on Windows using EJB3-cartridge (HEAD-checkout from 16th may 2007) Reporter: Tun Schlechter Assigned to: Vance Karimi A one to many association between 2 <> classes [Class_1 and Class_2] with {ordered} tag on the many side produces the following code within Class_1: private java.util.Set class_2s = new java.util.ArrayList(); and thus the expected following error: C:\work\bugreport-ordered\core\target\src\Class_1.java:[35,46] incompatible types found : java.util.ArrayList required: java.util.Set -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
[Andromda-devel] AndroMDA/JIRA Updated: (EJB-57) UML {ordered} produces invalid code
[ http://jira.andromda.org/browse/EJB-57?page=all ] Tun Schlechter updated EJB-57: -- Attachment: bugreport-ordered.zip > UML {ordered} produces invalid code > --- > > Key: EJB-57 > URL: http://jira.andromda.org/browse/EJB-57 > Project: EJB Cartridge > Type: Bug > Environment: AndroMDA 3.3-SNAPSHOT on Windows using EJB3-cartridge > (HEAD-checkout from 16th may 2007) > Reporter: Tun Schlechter > Assignee: Vance Karimi > Attachments: bugreport-ordered.zip > > A one to many association between 2 <> classes [Class_1 and Class_2] > with {ordered} tag on the many side produces the following code within > Class_1: > private java.util.Set class_2s = new java.util.ArrayList(); > and thus the expected following error: > C:\work\bugreport-ordered\core\target\src\Class_1.java:[35,46] incompatible > types > found : java.util.ArrayList > required: java.util.Set -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
[Andromda-devel] AndroMDA/JIRA Created: (SITE-55) Impossible to build the TimeTracker project because Maven2.0.5 not available anymore
Impossible to build the TimeTracker project because Maven2.0.5 not available anymore Key: SITE-55 URL: http://jira.andromda.org/browse/SITE-55 Project: Website Type: Bug Environment: Win XP Home Ed. Reporter: Damien Huriet Assigned to: Wouter Zoons Hi, I was so pleased to start your "Getting started Java (3.2)" tutorial... But I've been stopped at the "TimeTracker Tour" step 4 : " 3. Open a Command Prompt in the directory C:\timetracker-completed. 4. Execute the command mvn install to build the application. " I get an error : " D:\Projects\timetracker-completed>mvn install [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] An invalid artifact was detected. This artifact might be in your project's POM, or it might have been included transitively during the resolution process. Here is the information we do have for this artifact: o GroupID: org.andromda.timetracker o ArtifactID: timetracker-common o Version: <<< MISSING >>> o Type:jar [INFO] [INFO] Trace org.apache.maven.artifact.InvalidArtifactRTException: For artifact {org.andromda.timetracker:timetracker-common:null:jar}: The version cannot be empty. at org.apache.maven.artifact.DefaultArtifact.validateIdentity(DefaultArtifact.java:147) at org.apache.maven.artifact.DefaultArtifact.(DefaultArtifact.java:122) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact(DefaultArtifactFactory.java:158) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createDependencyArtifact(DefaultArtifactFactory.java:58) at org.apache.maven.project.DefaultMavenProjectBuilder.createManagedVersionMap(DefaultMavenProjectBuilder.java:424) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:857) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:479) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:537) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:511) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [INFO] Total time: < 1 second [INFO] Finished at: Thu May 17 18:42:29 CEST 2007 [INFO] Final Memory: 1M/3M [INFO] " It seems to be a compatibility problem with Maven 2.0.6. I know that the tutorial asks to use maven 2.0.5, but it seems to be not available anymore : I can't find it for download. I have not been the only one : see the forum : http://galaxy.andromda.org/forum/viewtopic.php?t=4540&sid=077ebe86514e9213115dabd491e10147 Can you update the POM.XML file content so that it builds, and warn me when it's done. I'll be able to evaluate your MDA tool with pleasure and exitement! Thanks a lot, and good continuation. Damien Huriet France -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/