From: Wouter Z. (JIRA) <ji...@an...> - 2005-06-29 15:09:46
|
[ http://jira.andromda.org/browse/BPM-211?page=3Dcomments#action_11730= ] =20 Wouter Zoons commented on BPM-211: ---------------------------------- I added a test for this but the build is going fine, the files are generate= d as expected: <field property=3D"minLengthOnPasswordTest" depends=3D"minlengt= h"> <arg position=3D"0" key=3D"validation.activity.enter.data.v= alidate.param.min.length.on.password.test" /> <arg position=3D"1" name=3D"minlength" key=3D"${var:minleng= th}" resource=3D"false"/> <var> <var-name>minlength</var-name> <var-value><![CDATA[8]]></var-value> </var> </field> what tagged value did you use ? you should be using @andromda.struts.view.f= ield.format > 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 c= ontroller action state. All was well. When I added "minlength 8" to the pas= sword 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.ModelP= rocessorException: Error performing ModelProcessor.process with model(s) --= > 'file:e:\javacode\retinalscan\mda\src\uml\RetinalScanModel.xml.zip!\Retin= alScanModel.xml' > at org.andromda.core.server.DefaultClient.performServerOperation(Defau= ltClient.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.c= ore.cartridge.CartridgeException: Error performing Cartridge.processWithTem= plate with template 'templates/bpm4struts/configuration/validation.xml.vsl'= , template context '{welcomeFileName=3Dindex.jsp, manageableFieldMaxLength= =3D36, validatorPackage=3Dorg.andromda.presentation.bpm4struts, stringUtils= =3Dorg.andromda.core.common.StringUtilsHelper@1e74d83, onlineHelp=3Dtrue, c= lientValidation=3Dtrue, xhtml=3Dfalse, hints=3Dtrue, exceptionHandlerPatter= n=3D(.*)(\\{\\s*([\\w|\\.+]*)\\s*\\})(.*), exceptionHandlerPackage=3Dorg.an= dromda.presentation.bpm4struts, warningMessagesKey=3Dorg.andromda.bpm4strut= s.warningmessages, dummyData=3Dtrue, applicationUseCases=3D[org.andromda.ca= rtridges.bpm4struts.metafacades.StrutsUseCaseLogicImpl[Login]], formName=3D= form, serverValidation=3Dtrue, manageableFormName=3DmanageableForm, managea= bleReferenceParameterPrefix=3Dref_, setPageVariablesInPageScope=3Dtrue, bpm= Utils=3Dorg.andromda.cartridges.bpm4struts.Bpm4StrutsUtils@920ee7, generate= WebXmlIds=3Dfalse, maxBreadCrumbs=3D5, dateUtils=3Dorg.andromda.cartridges.= bpm4struts.Bpm4StrutsDateUtils@1108c18, xmlEncoding=3DUTF-8, errorMessagesK= ey=3Dorg.andromda.bpm4struts.errormessages, servletPackage=3Dorg.andromda.p= resentation.bpm4struts, securityRealm=3Dretinalscan, successMessagesKey=3Do= rg.andromda.bpm4struts.successmessages}' and cartridge 'bpm4struts' > at org.andromda.core.cartridge.Cartridge.processTemplateWithMetafacade= s(Cartridge.java:226) > at org.andromda.core.cartridge.Cartridge.processTemplate(Cartridge.jav= a:117) > at org.andromda.core.cartridge.Cartridge.processModelElements(Cartridg= e.java:71) > at org.andromda.core.engine.ModelProcessor.processModels(ModelProcesso= r.java:209) > ... 43 more > Caused by: org.andromda.core.cartridge.CartridgeException: Error performi= ng Cartridge.processWithTemplate with template 'templates/bpm4struts/config= uration/validation.xml.vsl', template context '{welcomeFileName=3Dindex.jsp= , manageableFieldMaxLength=3D36, validatorPackage=3Dorg.andromda.presentati= on.bpm4struts, stringUtils=3Dorg.andromda.core.common.StringUtilsHelper@1e7= 4d83, onlineHelp=3Dtrue, clientValidation=3Dtrue, xhtml=3Dfalse, hints=3Dtr= ue, exceptionHandlerPattern=3D(.*)(\\{\\s*([\\w|\\.+]*)\\s*\\})(.*), except= ionHandlerPackage=3Dorg.andromda.presentation.bpm4struts, warningMessagesKe= y=3Dorg.andromda.bpm4struts.warningmessages, dummyData=3Dtrue, applicationU= seCases=3D[org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCaseLogi= cImpl[Login]], formName=3Dform, serverValidation=3Dtrue, manageableFormName= =3DmanageableForm, manageableReferenceParameterPrefix=3Dref_, setPageVariab= lesInPageScope=3Dtrue, bpmUtils=3Dorg.andromda.cartridges.bpm4struts.Bpm4St= rutsUtils@920ee7, generateWebXmlIds=3Dfalse, maxBreadCrumbs=3D5, dateUtils= =3Dorg.andromda.cartridges.bpm4struts.Bpm4StrutsDateUtils@1108c18, xmlEncod= ing=3DUTF-8, errorMessagesKey=3Dorg.andromda.bpm4struts.errormessages, serv= letPackage=3Dorg.andromda.presentation.bpm4struts, securityRealm=3Dretinals= can, successMessagesKey=3Dorg.andromda.bpm4struts.successmessages}' and car= tridge 'bpm4struts' > at org.andromda.core.cartridge.Cartridge.processWithTemplate(Cartridge= .java:344) > at org.andromda.core.cartridge.Cartridge.processTemplateWithMetafacade= s(Cartridge.java:199) > ... 46 more > Caused by: org.apache.velocity.exception.MethodInvocationException: Invoc= ation of method 'isValidationRequired' in class org.andromda.cartridges.bp= m4struts.metafacades.StrutsParameterLogicImpl threw exception class java.la= ng.IllegalArgumentException : Illegal validator tagged value: minlength 8 > at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTId= entifier.java:193) > at > ... 47 more=20 --=20 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 |