Spurious Model Validation Error on service method with parameter of type collection -----------------------------------------------------------------------------------
Key: SPRING-159 URL: http://jira.andromda.org/browse/SPRING-159 Project: Spring Cartridge Type: Bug Versions: 3.2-RC1 Environment: Occurs on both MacOSX and Linux under Java 1.4.2 Reporter: Andrew Kinard Assigned to: Chad Brandon Priority: Critical Attachments: TestAppModel.xmi I just switched to using 3.2-RC1-SNAPSHOT and I'm getting a validation error on a non-webservice service method. The error states that I cannot have a parameter of type "Collection" in a webservice method. I agree that webservices should use arrays instead of collections, but neither the service class or method in question are marked as being a webservice or webservice operation. I have found this error to be consistent on two separate models. I have attached a sample model to this bug. I get the following error and stack trace: ERROR [AndroMDA] Model Validation Failed - 1 VALIDATION ERROR ERROR [AndroMDA] 1) [Data::CarService::getTask::resources]:A web service parameter can NOT be a collection type You'll need to model an array instead. org.andromda.core.ModelValidationException: Model validation failed! at org.andromda.core.engine.ModelProcessor.printValidationMessages(ModelProcessor.java:434) at org.andromda.core.engine.ModelProcessor.validateModel(ModelProcessor.java:374) at org.andromda.core.engine.ModelProcessor.loadModelIfNecessary(ModelProcessor.java:324) at org.andromda.core.engine.ModelProcessor.loadIfNecessary(ModelProcessor.java:504) at org.andromda.core.engine.ModelProcessor.processModels(ModelProcessor.java:217) at org.andromda.core.engine.ModelProcessor.process(ModelProcessor.java:143) at org.andromda.core.engine.ModelProcessor.process(ModelProcessor.java:79) at org.andromda.core.engine.Engine.run(Engine.java:82) at org.andromda.core.AndroMDA.run(AndroMDA.java:197) ... -- 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 xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642