-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Is this related to the problem where Tomcat changed the evaluation of
'this' in expressions?

org.apache.el.parser. SKIP_IDENTIFIER_CHECK=true

See http://www.stripesframework.org/jira/browse/STS-822

Also see:
http://tomcat.apache.org/tomcat-7.0-doc/config/systemprops.html#Expression_Language

Tim

On 8/12/12 3:52 PM, Michael Pridemore (JIRA) wrote:
> It appears @Validate(expression) functionality is broken 
> --------------------------------------------------------
> 
> Key: STS-888 URL: 
> http://www.stripesframework.org/jira/browse/STS-888 Project:
> Stripes Issue Type: Bug Components: Validation Affects Versions:
> Release 1.5.7 Environment: Stripes 1.5.7 running under Tomcat
> 7.0.29, Java 1.6.0_33-b03-424-11M3720 on Mac OS X (10.8). Reporter:
> Michael Pridemore
> 
> 
> I am testing the upgrade to 1.5.7 on an existing (working)
> project. Everywhere I use @Validate(expression) I am now getting 
> errors/stacktraces. For example, I have an ActionBean with this:
> 
> @ValidateNestedPropertes({ @Validate(field = "password", required
> = true, minlength = 8) }) MDUser user; @Validate(required = true, 
> expression = "this == user.password") String passwordConfirm;
> 
> And when I submit the form I get this error in Tomcat:
> 
> 
> SEVERE: Servlet.service() for servlet jsp threw exception 
> java.lang.IllegalArgumentException: can't parse argument number
> this == user.password at 
> java.text.MessageFormat.makeFormat(MessageFormat.java:1339) at 
> java.text.MessageFormat.applyPattern(MessageFormat.java:458) at 
> java.text.MessageFormat.<init>(MessageFormat.java:368) at 
> net.sourceforge.stripes.action.SimpleMessage.getMessage(SimpleMessage.java:95)
>
>
> 
at
net.sourceforge.stripes.validation.SimpleError.getMessage(SimpleError.java:102)
> at 
> net.sourceforge.stripes.tag.ErrorsTag.doEndTag(ErrorsTag.java:349)
> at 
> org.apache.jsp.WEB_002dINF.layout.admin.default_002dadmin_jsp._jspService(default_002dadmin_jsp.java:293)
>
>
> 
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
>
>
> 
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) 
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>
>
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)
Comment: Seeking grim and perilous adventure!
Comment: Get my public key at http://bit.ly/9UQHQv
Comment: HOWTO: OpenPGP SHA-512 migration http://bit.ly/aA75FZ
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCgAGBQJQKEAzAAoJEHJJ3jMipSyC4pAP/iHT3Fsv42x2cflMP2/nYVYf
wQLtLS+phDh+GQh9V9oDkgSiGxY4C1ccUolTUU38Frl4r0uwjKcf6/LpfS9sSmsB
ttJ/NG9fBe8hmxxpoGdltPMTadhPndE6TOlGJtA66XLp92Hhsvn9dR4zgkGqdwa0
a6zyGqGeWF248igBEDIEbxF/xPlXqUndvFJLONAHSxYMqTrA7bjv6sfrLhC+PNGx
rBP6DIEuS79jLVJgVLESLoNfdDWY08iTdOgvSpNjdGyeAMqLNt0nICq+gWAvpkBq
NXB3GH+wukCnybbdw4bqT/DM8w/O3gfseOQh8U+N15Liu8ebd+2lUiYugWH0P1Ex
68f10+VHjUINFGZu/d3otLXgojEyrLMue4g/HiCr6X6sh02q/VYBNuL8QR+V0E+q
OkiI2x23ZtBukRjS2SsySZ1LOIiFX1vZZsuVeEmTia0XV79OXMepr+8pKU9LLcVh
G8ht5H4K0n+p5Qymrt+wRzfNK3EmPNWV2sDNbisytoDAj8C5Qxq8yfO7h3olUHXw
VeRRklo8wojEbRv0R/TI1XEvvkOFgS4ulKbOwB7Am9R5aE+eS3OWx7rF6Q+1BL+B
TCoX8Lmtw3nFt2p6LAPBjPiGPv9EX2af7zDP6oyim8ob+1XmRMbatDJbKlLt3zkJ
4hTjrNFxykiEDLquKbxE
=M5VH
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to