java.lang.IllegalArgumentException: Could not parse date: Unparseable date: "2008-09-23"

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Try this-

SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ssaa");

Solutions on the web

via Oracle Community by 793177, 1 year ago
Could not parse date: Unparseable date: "2008-09-23"
java.text.ParseException: Unparseable date: "2008-09-23"
at java.text.DateFormat.parse(DateFormat.java:337)
at org.springframework.beans.propertyeditors.CustomDateEditor.setAsText(CustomDateEditor.java:106)
at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:382)
at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:358)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:173)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:832)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:651)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
at com.vaau.rbacx.iam.file.csv.UserFileReader.createGlobalUser(UserFileReader.java:315)
at com.vaau.rbacx.iam.file.csv.UserFileReader.readInternal(UserFileReader.java:115)
at com.vaau.rbacx.iam.file.support.AbstractFileReader.read(AbstractFileReader.java:138)
at com.vaau.rbacx.iam.file.support.AbstractFileReader.run(AbstractFileReader.java:79)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

Users with the same issue

5 times, 17 hours ago
Once, 1 month ago
186 times, 3 months ago
3 times, 4 months ago
9 times, 5 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.