Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
ValidatorAction throws NullPointerException w/ Struts 1.2.7 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ValidatorAction throws NullPointerException w/ Struts 1.2.7

    Anyone have a clue why the latest version of Struts causes this? It was working fine with my previous version of Struts but I wanted to the ValidWhen functionality, so I upgraded.

    Code:
    &#91;org.apache.commons.validator.ValidatorAction&#93; - <Unhandled exception thrown during validation&#58; null>
    java.lang.NullPointerException
    	at org.apache.struts.validator.Resources.getMessageResources&#40;Resources.java&#58;127&#41;
    	at org.apache.struts.validator.Resources.getActionMessage&#40;Resources.java&#58;349&#41;
    	at org.apache.struts.validator.FieldChecks.validateRequired&#40;FieldChecks.java&#58;94&#41;

  • #2
    P.S. Not sure if this is related to the above problem but I just found this on http://struts.apache.org/userGuide/dev_validator.html

    Note that since Struts 1.1, you must explicitly define your message resource in any module that is going to use the Validator, due to a problem accessing the top-level resource. This only effects applications which are using modules.

    Comment

    Working...
    X