[ http://jira.andromda.org/browse/BPM-211?page=comments#action_11732 ] Chad Brandon commented on BPM-211: ----------------------------------
However it would be nice to handle that user error in a better way (so next time its easier for Lee to figure out what he did wrong). > minlength validator on password field causes build failure > ---------------------------------------------------------- > > Key: BPM-211 > URL: http://jira.andromda.org/browse/BPM-211 > Project: Bpm4Struts Cartridge > Type: Bug > Versions: 3.1M1 > Environment: Win XP Pro, J2SE 1.4.2_07 > Reporter: Lee Greiner > Assignee: Wouter Zoons > Priority: Minor > > I created a password parameter on a transition from a FrontEndView to a > controller action state. All was well. When I added "minlength 8" to the > password parameter's "validator" tagged value I encountered the build failure > below. > pom:install: > andromda:run: > [echo] +--------------------------------------------+ > [echo] | R u n n i n g A n d r o M D A | > [echo] +--------------------------------------------+ > org.andromda.core.server.ClientException: > org.andromda.core.engine.ModelProcessorException: Error performing > ModelProcessor.process with model(s) --> > 'file:e:\javacode\retinalscan\mda\src\uml\RetinalScanModel.xml.zip!\RetinalScanModel.xml' > at > org.andromda.core.server.DefaultClient.performServerOperation(DefaultClient.java:84) > at > ... > org.apache.maven.jelly.tags.maven.MavenTag.doTag(MavenTag.java:82) > ... 16 more > Caused by: org.andromda.core.cartridge.CartridgeException: > org.andromda.core.cartridge.CartridgeException: Error performing > Cartridge.processWithTemplate with template > 'templates/bpm4struts/configuration/validation.xml.vsl', template context > '{welcomeFileName=index.jsp, manageableFieldMaxLength=36, > validatorPackage=org.andromda.presentation.bpm4struts, [EMAIL PROTECTED], > onlineHelp=true, clientValidation=true, xhtml=false, hints=true, > exceptionHandlerPattern=(.*)(\\{\\s*([\\w|\\.+]*)\\s*\\})(.*), > exceptionHandlerPackage=org.andromda.presentation.bpm4struts, > warningMessagesKey=org.andromda.bpm4struts.warningmessages, dummyData=true, > applicationUseCases=[org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCaseLogicImpl[Login]], > formName=form, serverValidation=true, manageableFormName=manageableForm, > manageableReferenceParameterPrefix=ref_, setPageVariablesInPageScope=true, > [EMAIL PROTECTED], generateWebXmlIds=false, maxBreadCrumbs=5, [EMAIL > PROTECTED], xmlEncoding=UTF-8, > errorMessagesKey=org.andromda.bpm4struts.errormessages, > servletPackage=org.andromda.presentation.bpm4struts, > securityRealm=retinalscan, > successMessagesKey=org.andromda.bpm4struts.successmessages}' and cartridge > 'bpm4struts' > at > org.andromda.core.cartridge.Cartridge.processTemplateWithMetafacades(Cartridge.java:226) > at > org.andromda.core.cartridge.Cartridge.processTemplate(Cartridge.java:117) > at > org.andromda.core.cartridge.Cartridge.processModelElements(Cartridge.java:71) > at > org.andromda.core.engine.ModelProcessor.processModels(ModelProcessor.java:209) > ... 43 more > Caused by: org.andromda.core.cartridge.CartridgeException: Error performing > Cartridge.processWithTemplate with template > 'templates/bpm4struts/configuration/validation.xml.vsl', template context > '{welcomeFileName=index.jsp, manageableFieldMaxLength=36, > validatorPackage=org.andromda.presentation.bpm4struts, [EMAIL PROTECTED], > onlineHelp=true, clientValidation=true, xhtml=false, hints=true, > exceptionHandlerPattern=(.*)(\\{\\s*([\\w|\\.+]*)\\s*\\})(.*), > exceptionHandlerPackage=org.andromda.presentation.bpm4struts, > warningMessagesKey=org.andromda.bpm4struts.warningmessages, dummyData=true, > applicationUseCases=[org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCaseLogicImpl[Login]], > formName=form, serverValidation=true, manageableFormName=manageableForm, > manageableReferenceParameterPrefix=ref_, setPageVariablesInPageScope=true, > [EMAIL PROTECTED], generateWebXmlIds=false, maxBreadCrumbs=5, [EMAIL > PROTECTED], xmlEncoding=UTF-8, > errorMessagesKey=org.andromda.bpm4struts.errormessages, > servletPackage=org.andromda.presentation.bpm4struts, > securityRealm=retinalscan, > successMessagesKey=org.andromda.bpm4struts.successmessages}' and cartridge > 'bpm4struts' > at > org.andromda.core.cartridge.Cartridge.processWithTemplate(Cartridge.java:344) > at > org.andromda.core.cartridge.Cartridge.processTemplateWithMetafacades(Cartridge.java:199) > ... 46 more > Caused by: org.apache.velocity.exception.MethodInvocationException: > Invocation of method 'isValidationRequired' in class > org.andromda.cartridges.bpm4struts.metafacades.StrutsParameterLogicImpl threw > exception class java.lang.IllegalArgumentException : Illegal validator tagged > value: minlength 8 > at > org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:193) > at > ... 47 more -- 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 - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Andromda-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-devel
