struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cilquirm <aadi.deshpa...@gmail.com>
Subject Re: [S2] Problem with 2.0.6
Date Tue, 27 Feb 2007 18:17:12 GMT

I see errors like that on occasion ( mine is with the JSONResult type and the
location property ), but they've always been warnings.

Is yours logged at the ERROR level?



Piero Sartini-3 wrote:
> 
> upgraded to 2.0.6 - now the error below is thrown when accessing an Action 
> with validators.
> 
> dont know if it is important, but ajax-validation is enabled and the 
> annotation looks like this:
> 
> --- code ---
>    @RequiredStringValidator(message = "Login is required", key 
> = "error.loginname.missing")
>     public String getLogin() {
>         return login;
>     }
> --- code ---
> 
> 
> Exec[0]: validator.doPost()
> Caught OgnlException while setting property 'methodName' on 
> type
> 'com.opensymphony.xwork2.validator.validators.RequiredStringValidator'.
> ognl.NoSuchPropertyException: 
> com.opensymphony.xwork2.validator.validators.RequiredStringValidator.methodName
>         at 
> ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
>         at 
> com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.setProperty(OgnlValueStack.java:68)
>         at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
>         at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
>         at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
>         at ognl.SimpleNode.setValue(SimpleNode.java:246)
>         at ognl.Ognl.setValue(Ognl.java:476)
>         at
> com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186)
>         at 
> com.opensymphony.xwork2.util.OgnlUtil.internalSetProperty(OgnlUtil.java:360)
>         at 
> com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:76)
>         at 
> com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:103)
>         at 
> com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:90)
>         at 
> com.opensymphony.xwork2.ObjectFactory.buildValidator(ObjectFactory.java:234)
>         at 
> com.opensymphony.xwork2.validator.ValidatorFactory.getValidator(ValidatorFactory.java:252)
>         at 
> com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:79)
>         at 
> com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:134)
>         at 
> com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:109)
>         at 
> com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:96)
>         at 
> com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:142)
>         at 
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:148)
>         at 
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
>         at 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
>         at 
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
> 
> ....
> ....
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-2.0.6-tf3300246.html#a9188430
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message