Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 5948 invoked from network); 19 Oct 2006 19:31:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Oct 2006 19:31:34 -0000 Received: (qmail 91946 invoked by uid 500); 19 Oct 2006 19:31:30 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 91914 invoked by uid 500); 19 Oct 2006 19:31:30 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 91903 invoked by uid 99); 19 Oct 2006 19:31:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2006 12:31:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2006 12:31:30 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2309671431C for ; Thu, 19 Oct 2006 12:30:35 -0700 (PDT) Message-ID: <8884353.1161286235140.JavaMail.jira@brutus> Date: Thu, 19 Oct 2006 12:30:35 -0700 (PDT) From: "Anna Komaristaia (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Created: (VALIDATOR-206) NullPointerException in "ValidatorAction" class when we start application in Unix MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N NullPointerException in "ValidatorAction" class when we start application in Unix ----------------------------------------------------------------------------------- Key: VALIDATOR-206 URL: http://issues.apache.org/jira/browse/VALIDATOR-206 Project: Commons Validator Issue Type: Bug Components: Framework Affects Versions: 1.3.0 Release, 1.2.0 Release Environment: Unix Reporter: Anna Komaristaia When I start the application in Unix, there is the NullPointerException going from the next methods in "ValidatorAction" class - loadValidationClass( ClassLoader ) - loadParameterClasses( ClassLoader ) ClassLoadet parameter is null. This is the printout from Unix console: ERROR validator.ValidatorAction - Unhandled exception thrown during validation: null java.lang.NullPointerException at org.apache.commons.validator.ValidatorAction.loadValidationClass(ValidatorAction.java:623) at org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:531) at org.apache.commons.validator.Field.validateForRule(Field.java:766) at org.apache.commons.validator.Field.validate(Field.java:846) at org.apache.commons.validator.Form.validate(Form.java:290) ... java.lang.NullPointerException at org.apache.commons.validator.ValidatorAction.loadParameterClasses(ValidatorAction.java:652) at org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:532) at org.apache.commons.validator.Field.validateForRule(Field.java:766) at org.apache.commons.validator.Field.validate(Field.java:846) at org.apache.commons.validator.Form.validate(Form.java:290) at org.apache.commons.validator.Validator.validate(Validator.java:354) ... I recompiled the commons-validator jar with the next change and it's working fine in PC and Unix: if( loader == null ) this.validationClass = Class.forName(this.classname); else this.validationClass = loader.loadClass(this.classname); Thanks, //Anna -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org