[ http://jira.andromda.org/browse/WS-10?page=comments#action_13794 ]
David Ignjic commented on WS-10: -------------------------------- solution for this bug is simple change constraint validation from context WebServiceParameter inv : return=false implies type.collectionType = false to context WebServiceParameter inv : operation.exposed implies type.collectionType = false i don't why is return=false, but if it needed change to context WebServiceParameter inv : (operation.exposed and return=false) implies type.collectionType = false > Spurious Model Validation Error on service method with parameter of type > collection > ----------------------------------------------------------------------------------- > > Key: WS-10 > URL: http://jira.andromda.org/browse/WS-10 > Project: WebService Cartridge > Type: Bug > Environment: Occurs on both MacOSX and Linux under Java 1.4.2 > Reporter: Andrew Kinard > Assignee: 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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV