stringToDate Method line 122...
char d = text.charAt(++pos);
with;
pos++;
if(text.length() == pos)
break;
char d = text.charAt(pos);
Otherwise, I was getting StringOutOfBounds exception while the marshalling the dot in milliseconds in date string.
8 August 2008