Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.NumberFormatException: multiple points in SimpleDateFormat.parse

807580Nov 6 2009 — edited Nov 12 2009
Not sure if the milliseconds in my derby db is causing the SimpleDateFormat.parse(String) to fail
an example of date that is failing is '2009-11-05 12:50:28.296'
the date in derby is defined as timestamp datatype

Caused by: java.lang.NumberFormatException: multiple points
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1096)
at java.lang.Double.parseDouble(Double.java:521)
at java.text.DigitList.getDouble(DigitList.java:162)
at java.text.DecimalFormat.parse(DecimalFormat.java:1314)
at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1555)
at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1275)
at java.text.DateFormat.parse(DateFormat.java:346)


//////////////////////////////////////
private static SimpleDateFormat sdf = new SimpleDateFormat("yy/MM/dd");
...............
start = sdf.parse(startDateS);
..............
//////////////////////////////////////


I use WAS 7.0 for windows
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 10 2009
Added on Nov 6 2009
3 comments
9,071 views