SHARE
TWEET

Untitled

a guest Jun 19th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Exception in thread "main" com.google.gson.JsonSyntaxException: Sat May 18 15:30:07 +0000 2019
  2. at com.google.gson.internal.bind.DateTypeAdapter.deserializeToDate(DateTypeAdapter.java:87)
  3. at com.google.gson.internal.bind.DateTypeAdapter.read(DateTypeAdapter.java:75)
  4. at com.google.gson.internal.bind.DateTypeAdapter.read(DateTypeAdapter.java:46)
  5. at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
  6. at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
  7. at com.google.gson.Gson.fromJson(Gson.java:927)
  8. at com.google.gson.Gson.fromJson(Gson.java:892)
  9. at com.google.gson.Gson.fromJson(Gson.java:841)
  10. at com.google.gson.Gson.fromJson(Gson.java:813)
  11. at app.producer.TwitterKafkaProducer.run(TwitterKafkaProducer.java:75)
  12. at app.App.main(App.java:13)
  13. Caused by: java.text.ParseException: Failed to parse date ["Sat May 18 15:30:07 +0000 2019"]: Invalid number: Sat
  14. at com.google.gson.internal.bind.util.ISO8601Utils.parse(ISO8601Utils.java:274)
  15. at com.google.gson.internal.bind.DateTypeAdapter.deserializeToDate(DateTypeAdapter.java:85)
  16. ... 10 more
  17. Caused by: java.lang.NumberFormatException: Invalid number: Sat
  18. at com.google.gson.internal.bind.util.ISO8601Utils.parseInt(ISO8601Utils.java:311)
  19. at com.google.gson.internal.bind.util.ISO8601Utils.parse(ISO8601Utils.java:129)
  20. ... 11 more
  21.      
  22. @SerializedName("created_at")
  23. private Date createdAt;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top