Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validator unparseable date exception?

 
Jason Berk
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why is it when the validator sees an invalid date it pukes a stack trace in the log? From the view, everything behaved as expected...but I'd hate to think everytime some user entered a bad date we'd get this massive stack trace in the log.

Jason


org.apache.commons.validator.GenericTypeValidator 02/40/1977
org.apache.commons.validator.GenericTypeValidator
TRAS0014I: The following exception was logged:
java.text.ParseException: Unparseable date: "02/40/1977"
at java.text.DateFormat.parse(DateFormat.java:345)
at ...
at ...
stack trace here
at ...
at ...
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to tweak the logging level for org.apache.commons. If you set it to "FATAL" you may be able to get rid of this stuff.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic