You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alex Wibowo <al...@gmail.com> on 2007/03/05 23:44:15 UTC

@ExpressionValidator annotation & ognl.NoSuchPropertyException: com.opensymphony.xwork2.validator.validators.ExpressionValidator.methodName

Gday...


I am using the @ExpressionValidator annotation. So far it is working
alright, apart from this exception I was getting:

WARNING: Caught OgnlException while setting property 'methodName' on type '
com.opensymphony.xwork2.validator.validators.ExpressionValidator'.
ognl.NoSuchPropertyException:
com.opensymphony.xwork2.validator.validators.ExpressionValidator.methodName

Did anyone else get this error? According to the API, the
@ExpressionValidator does not require any "methodName" parameter. So I am
not sure
what this exception is all about. I havent looked at the source code yet..



-- 
Best regards,


WiB
-------------------

Re: @ExpressionValidator annotation & ognl.NoSuchPropertyException: com.opensymphony.xwork2.validator.validators.ExpressionValidator.methodName

Posted by Piero Sartini <li...@pierosartini.de>.
I see this warning as well when using ajax-validation. It seems ognl expects 
a .methodName method which is not there in the struts validators.

There is another thread regarding this problem with the Topic "Problem with 
2.0.6". The warning is there in 2.0.7 as well.

Ted suggested to turn off devMode, but the warning remains.

Piero

Am Montag, 5. März 2007 schrieb Alex Wibowo:
> Gday...
>
>
> I am using the @ExpressionValidator annotation. So far it is working
> alright, apart from this exception I was getting:
>
> WARNING: Caught OgnlException while setting property 'methodName' on type '
> com.opensymphony.xwork2.validator.validators.ExpressionValidator'.
> ognl.NoSuchPropertyException:
> com.opensymphony.xwork2.validator.validators.ExpressionValidator.methodName
>
> Did anyone else get this error? According to the API, the
> @ExpressionValidator does not require any "methodName" parameter. So I am
> not sure
> what this exception is all about. I havent looked at the source code yet..

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