Hi,

I'm getting an error when validating email with Common Validator 1.2.0 in
conjunction with Struts 1.2.8 and Jakarta ORO 2.0.7 (we also tried the
latest ORO 2.0.8).

[3/2/06 13:39:21:469 PST] 19c79c30 WebGroup      E SRVE0026E: [Servlet
Error]-[org.apache.oro.text.regex.Util: method
substitute(Ljava/lang/StringBuffer&#59;Lorg/apache/oro/text/regex/PatternMatcher&#59;Lorg/apache/oro/text/regex/Pattern&#59;Lorg/apache/oro/text/regex/Substitution&#59;Ljava/lang/String&#59;I)I
not found]: java.lang.NoSuchMethodError: org.apache.oro.text.regex.Util:
method
substitute(Ljava/lang/StringBuffer;Lorg/apache/oro/text/regex/PatternMatcher;Lorg/apache/oro/text/regex/Pattern;Lorg/apache/oro/text/regex/Substitution;Ljava/lang/String;I)I
not found
    at org.apache.oro.text.perl.Perl5Util.substitute(Unknown Source)
    at org.apache.oro.text.perl.Perl5Util.substitute(Unknown Source)
    at org.apache.commons.validator.EmailValidator.stripComments(
EmailValidator.java:249)
    at org.apache.commons.validator.EmailValidator.isValid(
EmailValidator.java:98)
    at org.apache.commons.validator.GenericValidator.isEmail(
GenericValidator.java:256)
    at org.apache.struts.validator.FieldChecks.validateEmail(
FieldChecks.java:778)

Rolled back to Common Validator 1.1.4 works, but we like to take advantages
of numerous fixes in email validation in the latest Common Validator.
Any help would be greatly appreciated.

john dinh

Reply via email to