: multiple points

时间:2024-10-10 07:39:16

今天生产环境报了如下异常:

: multiple points
   at (:1890)
   at (:110)
   at (:538)
   at (:169)
   at (:2056)
   at (:1869)
   at (:1514)
   at (:364)
   at (:30)
   at (:18)
   at (:58)
   at $(:116)
   at $(:216)
   at (:879)
   at (:844)
   at (:793)
   at (:765)
   at (:63)
   at (:55)
   at (:22)
   at (:35)
   at (:2762)
   at .(Unknown Source)
   at (:43)
   at (:498)
   at (:127)
   at (:54)
   at (:76)
   at .(Unknown Source)
   at (:43)
   at (:498)
   at (:221)
   at (:136)
   at (:114)
   at (:827)
   at (:738)
   at (:85)
   at (:963)
   at (:897)
   at (:970)
   at (:872)
   at (:648)
   at (:846)
   at (:729)
   at (:292)
   at (:207)
   at (:52)
   at (:240)
   at (:207)
   at (:24)
   at (:107)
   at (:240)
   at (:207)
   at (:32)
   at (:240)
   at (:207)
   at (:197)
   at (:107)
   at (:240)
   at (:207)
   at (:212)
   at (:106)
   at (:502)
   at (:141)
   at (:79)
   at (:88)
   at (:528)
   at .http11.(:1100)
   at $(:687)
   at $(:1520)
   at $(:1476)
   at (:49)
   at (:1142)
   at $(:617)
   at $(:61)
   at (:745)
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77

之前以为是字符串数值的格式有问题,但是看到异常栈有SimpleDateFormat,去GsonTsTypeAdapter类中查看,发现这么一行代码:

private final DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  • 1

想起SimpleDateFormat是线程不安全的,上网一查,果然如此。使用ThreadLocal或者java8的DateTimeFormatter

private static DateTimeFormatter dateTimeFormatter = ("yyyy-MM-dd HH:mm:ss");
  • 1