Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: [S2] Problem with 2.0.6

cilquirm

2007-02-27

Replies:


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@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.