I keep seeing this in my logs, however to my knowledge the scenario should be impossible.
java.lang.NumberFormatException: For input string: "1487832810"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.7.0_80]
at java.lang.Long.parseLong(Long.java:430) ~[na:1.7.0_80]
at java.lang.Long.parseLong(Long.java:483) ~[na:1.7.0_80]
here is (i think) the relevant source code (the line numbers match to the ST)
424: char firstChar = s.charAt(0);
425: if (firstChar < '0') { // Possible leading "+" or "-"
426: if (firstChar == '-') {
427: negative = true;
428: limit = Long.MIN_VALUE;
429: } else if (firstChar != '+')
430: throw NumberFormatException.forInputString(s);
Therefore, it thinks the first char (1
) is < '0'
??
I can only assume it is some character encoding issue or something.
Any ideas?