[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/30359] SimpleDateFormat parse "invalid Date syntax in" ex
From: |
louis dot boydstun at ugs dot com |
Subject: |
[Bug classpath/30359] SimpleDateFormat parse "invalid Date syntax in" exception |
Date: |
17 Apr 2007 16:08:59 -0000 |
------- Comment #7 from louis dot boydstun at ugs dot com 2007-04-17 17:08
-------
IKVM 0.32+ (classpath & ikvm source download and full rebuild of IKVM on
4/11/2007)
Test case is provided below, with exception shown.
But occurs with or without the set utc statement.
This is a show stopper for the UGS code I am evaluating against
IKVM/classpath....as it occurs during the check of a digital digest, and thus
reports out as an invalid/expired credential, i.e. security violation detected
on protected resources.
I have not been able to step into the classpath code via the VS8/ikvm compiled
code yet, so I am not sure if it can be debugged from that approach or not.
Appears bug has been out there since Jan, but is not assigned.
java.text.ParseException: invalid Date syntax in "2007/04/13 18:10:20"
at java.text.DateFormat.parse(DateFormat.java:960)
at
com.teamcenter.fms.servercache.FMSServerCache.main(FMSServerCache.java:261)
public static void main(final String[] args)
{
for (int i = 0; i < 500; i++)
{
try
{
if (i == 0)
{
System.out.println("enter CR");
byte[] b = new byte[10];
System.in.read(b);
}
String dateString = "2007/04/13 18:10:20";
SimpleDateFormat ticketExpDateFormatter = new
SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
ticketExpDateFormatter.setTimeZone(
TimeZone.getTimeZone("UTC"));
Date expires = ticketExpDateFormatter.parse(dateString);
System.out.println(dateString + "-" + expires);
SimpleDateFormat ticketExpDateFormatter2 = new
SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
expires = ticketExpDateFormatter2.parse(dateString);
System.out.println(dateString + "-" + expires);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30359