ognl.NoSuchPropertyException: com.opensymphony.xwork2.validator.validators.RequiredStringValidator.methodName

Apache's JIRA Issue Tracker | Zach | 1 decade ago
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    On occasion, I'm receiving validation failures on valid input. Struts redirects to the form page and set's invalid input messages. I'm using only the required strings validations: @Validations( requiredStrings = { @RequiredStringValidator(type = ValidatorType.SIMPLE, fieldName = "req", message = "msg", shortCircuit = true, trim = true) } ) I think the error is caused by an exception: Apr 15, 2007 10:08:49 AM com.opensymphony.xwork2.util.OgnlUtil internalSetProperty WARNING: 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) ... I would be willing to bet this has already been logged, and probably fixed, but I can't find a bug logged in this system that says it has. I also tried to build the latest trunk this morning, but maven reported 11 Test errors and would not complete the build. I apologize if the fix is already out there, but I'm logging this in case this is a new 2.0.6 issue.

    Apache's JIRA Issue Tracker | 1 decade ago | Zach
    ognl.NoSuchPropertyException: com.opensymphony.xwork2.validator.validators.RequiredStringValidator.methodName
  2. 0

    Is it a better way to get the inserted id in Hibernate?

    Stack Overflow | 4 years ago | jackyesind
    ognl.NoSuchPropertyException: org.apache.struts2.dispatcher.ServletActionRedirectResult.applicationId
  3. 0

    Struts 2 - OgnlException on Annotation Based Validation

    nabble.com | 9 months ago
    ognl.NoSuchPropertyException: com.opensymphony.xwork2.validator.validators.RequiredStringValidator.methodName
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    program are excuted but server is showing errors

    Coderanch | 5 years ago | sathish sanigneni
    ognl.NoSuchPropertyException: com.opensymphony.xwork2.validator.validators.RequiredStringValidator.methodName
  6. 0

    Pass parameters throught struts.xml

    Stack Overflow | 2 years ago | Aditya Ekbote
    ognl.NoSuchPropertyException: org.apache.struts2.dispatcher.ServletRedirectResult.Param1

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. ognl.NoSuchPropertyException


      at ognl.ObjectPropertyAccessor.setProperty()
    2. OGNL - Object Graph Navigation Library
      1. ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
      1 frame
    3. XWork
      1. com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.setProperty(OgnlValueStack.java:68)
      1 frame
    4. OGNL - Object Graph Navigation Library
      1. ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
      2. ognl.ASTProperty.setValueBody(ASTProperty.java:101)
      3. ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
      4. ognl.SimpleNode.setValue(SimpleNode.java:246)
      4 frames