java.lang.NumberFormatException: multiple points in SimpleDateFormat.parse
807580Nov 6 2009 — edited Nov 12 2009Not 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