File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes validator unparseable date exception? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validator unparseable date exception?" Watch "validator unparseable date exception?" New topic
Author

validator unparseable date exception?

Jason Berk
Ranch Hand

Joined: May 03, 2006
Posts: 41
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validator unparseable date exception?
 
Similar Threads
signed applet issue
Struts - JAXB problem
Working with Dates
Parsing XML datetime in Android
Problem in parsing String into a particular Date format