Re: Caught OgnlException while setting property 'expression' on type 'com.opensymphony.xwork2.validator.validators.RegexFieldValidator'.

2015-07-18 Thread Lukasz Lenart
It's ok in devMode, it informs you that maybe you are missing a setter
for the given property.

2015-07-17 16:43 GMT+02:00 Kiran Badi ki...@poonam.org:
 Hi ,

 For some reasons I keep getting this warning in the log file and I am not
 able to figure out the cause for it, any ideas as what is causing this,

 I have s:token tag in one of the jsp I know, but I do not have expression,

 SEVERE: Developer Notification (set struts.devMode to false to disable this
 message):
 Unexpected Exception caught setting 'struts.token.name' on 'class myclass:
 Error setting expression 'struts.token.name' with value ['token', ]
 Jul 17, 2015 10:05:30 AM
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
 SEVERE: Developer Notification (set struts.devMode to false to disable this
 message):
 Unexpected Exception caught setting 'token' on 'class myclass: Error
 setting expression 'token' with value ['CNMMPI52Q6QLAGO87O8I9FIENMS3DILF', ]
 Jul 17, 2015 10:05:30 AM
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
 WARNING: Local DTD is missing for publicID: -//OpenSymphony Group//XWork
 Validator 1.0.2//EN - defined mappings: {-//Apache Struts//XWork Validator
 1.0.3//EN=xwork-validator-1.0.3.dtd, -//Apache Struts//XWork Validator
 1.0.2//EN=xwork-validator-1.0.2.dtd, -//Apache Struts//XWork Validator
 1.0//EN=xwork-validator-1.0.dtd, -//Apache Struts//XWork Validator Config
 1.0//EN=xwork-validator-config-1.0.dtd}
 Jul 17, 2015 10:05:32 AM
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
 WARNING: Caught OgnlException while setting property 'expression' on type
 'com.opensymphony.xwork2.validator.validators.RegexFieldValidator'.
 ognl.NoSuchPropertyException:
 com.opensymphony.xwork2.validator.validators.RegexFieldValidator.expression
 at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:166)
 at
 com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)
 at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)
 at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
 at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
 at ognl.SimpleNode.setValue(SimpleNode.java:301)
 at ognl.Ognl.setValue(Ognl.java:737)
 at com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:287)
 at com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:282)
 at
 com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:340)
 at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:282)
 at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:278)
 at
 com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:547)
 at com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:170)
 at com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:146)
 at
 com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperties(OgnlReflectionProvider.java:49)
 at
 com.opensymphony.xwork2.factory.DefaultValidatorFactory.buildValidator(DefaultValidatorFactory.java:30)
 at
 com.opensymphony.xwork2.ObjectFactory.buildValidator(ObjectFactory.java:230)
 at
 com.opensymphony.xwork2.validator.DefaultValidatorFactory.getValidator(DefaultValidatorFactory.java:73)
 at
 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:114)
 at
 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:141)
 at
 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:133)
 at
 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:128)
 at
 com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:222)
 at
 com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
 at
 org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)
 at
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
 at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
 at
 com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
 at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
 at
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
 at
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
 at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
 at
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
 at
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept

Caught OgnlException while setting property 'expression' on type 'com.opensymphony.xwork2.validator.validators.RegexFieldValidator'.

2015-07-17 Thread Kiran Badi
Hi ,

For some reasons I keep getting this warning in the log file and I am not
able to figure out the cause for it, any ideas as what is causing this,

I have s:token tag in one of the jsp I know, but I do not have expression,

SEVERE: Developer Notification (set struts.devMode to false to disable this
message):
Unexpected Exception caught setting 'struts.token.name' on 'class myclass:
Error setting expression 'struts.token.name' with value ['token', ]
Jul 17, 2015 10:05:30 AM
com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
SEVERE: Developer Notification (set struts.devMode to false to disable this
message):
Unexpected Exception caught setting 'token' on 'class myclass: Error
setting expression 'token' with value ['CNMMPI52Q6QLAGO87O8I9FIENMS3DILF', ]
Jul 17, 2015 10:05:30 AM
com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
WARNING: Local DTD is missing for publicID: -//OpenSymphony Group//XWork
Validator 1.0.2//EN - defined mappings: {-//Apache Struts//XWork Validator
1.0.3//EN=xwork-validator-1.0.3.dtd, -//Apache Struts//XWork Validator
1.0.2//EN=xwork-validator-1.0.2.dtd, -//Apache Struts//XWork Validator
1.0//EN=xwork-validator-1.0.dtd, -//Apache Struts//XWork Validator Config
1.0//EN=xwork-validator-config-1.0.dtd}
Jul 17, 2015 10:05:32 AM
com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
WARNING: Caught OgnlException while setting property 'expression' on type
'com.opensymphony.xwork2.validator.validators.RegexFieldValidator'.
ognl.NoSuchPropertyException:
com.opensymphony.xwork2.validator.validators.RegexFieldValidator.expression
at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:166)
at
com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)
at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.Ognl.setValue(Ognl.java:737)
at com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:287)
at com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:282)
at
com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:340)
at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:282)
at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:278)
at
com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:547)
at com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:170)
at com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:146)
at
com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperties(OgnlReflectionProvider.java:49)
at
com.opensymphony.xwork2.factory.DefaultValidatorFactory.buildValidator(DefaultValidatorFactory.java:30)
at
com.opensymphony.xwork2.ObjectFactory.buildValidator(ObjectFactory.java:230)
at
com.opensymphony.xwork2.validator.DefaultValidatorFactory.getValidator(DefaultValidatorFactory.java:73)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:114)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:141)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:133)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:128)
at
com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:222)
at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
at
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191