Results 1 to 2 of 2

Thread: ValidatorAction throws NullPointerException w/ Struts 1.2.7

  1. #1

    Default 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. #2

    Default

    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.

Similar Threads

  1. Replies: 3
    Last Post: Sep 22nd, 2005, 10:14 AM
  2. Replies: 7
    Last Post: Aug 18th, 2005, 02:41 PM
  3. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  4. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM
  5. Replies: 3
    Last Post: Jan 19th, 2005, 10:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •