java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 1390

Google Groups | Brian Preuß | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    EGerrit com.google.gson.JsonSyntaxException, wrong JSON response from REST-API

    Google Groups | 6 months ago | Brian Preuß
    java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 1390
  2. 0

    Json conversion with GSON: Expected BEGIN_ARRAY but was BEGIN_OBJECT

    Stack Overflow | 2 years ago | mikugo
    java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT
  3. 0

    Cannot deserialize nested JSON using Retrofit (Android)

    Stack Overflow | 5 months ago | dudeck
    java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add `onError` handling.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 1894#263585727

    GitHub | 5 months ago | kenyee
    java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
  6. 0

    How to handle multiple possible response types with Retrofit2, Gson and Rx

    Stack Overflow | 3 months ago | Pitel
    java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 1390

      at com.google.gson.stream.JsonReader.beginArray()
    2. Gson
      CollectionTypeAdapterFactory$Adapter.read
      1. com.google.gson.stream.JsonReader.beginArray(JsonReader.java:338)
      2. com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:79)
      3. com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
      3 frames
    3. org.eclipse.egerrit
      EMFTypeAdapterFactory$EObjectTypeAdapter.read
      1. org.eclipse.egerrit.internal.core.command.EMFTypeAdapterFactory$EObjectTypeAdapter.read(EMFTypeAdapterFactory.java:115)
      2. org.eclipse.egerrit.internal.core.command.EMFTypeAdapterFactory$EObjectTypeAdapter.read(EMFTypeAdapterFactory.java:1)
      2 frames
    4. Gson
      Gson.fromJson
      1. com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
      2. com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:72)
      3. com.google.gson.Gson.fromJson(Gson.java:803)
      4. com.google.gson.Gson.fromJson(Gson.java:768)
      4 frames
    5. org.eclipse.egerrit
      BaseCommand$1.handleResponse
      1. org.eclipse.egerrit.internal.core.command.BaseCommand$1.handleResponse(BaseCommand.java:142)
      1 frame
    6. Apache HttpClient
      CloseableHttpClient.execute
      1. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:218)
      2. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:160)
      3. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:136)
      3 frames
    7. org.eclipse.egerrit
      GerritTableView$12.run
      1. org.eclipse.egerrit.internal.core.GerritHttpClient.execute(GerritHttpClient.java:153)
      2. org.eclipse.egerrit.internal.core.command.BaseCommand.call(BaseCommand.java:145)
      3. org.eclipse.egerrit.internal.core.command.QueryChangesCommand.call(QueryChangesCommand.java:101)
      4. org.eclipse.egerrit.internal.dashboard.ui.views.GerritTableView.performQuery(GerritTableView.java:1107)
      5. org.eclipse.egerrit.internal.dashboard.ui.views.GerritTableView.getReviewList(GerritTableView.java:1086)
      6. org.eclipse.egerrit.internal.dashboard.ui.views.GerritTableView.getReviews(GerritTableView.java:1058)
      7. org.eclipse.egerrit.internal.dashboard.ui.views.GerritTableView.access$13(GerritTableView.java:1008)
      8. org.eclipse.egerrit.internal.dashboard.ui.views.GerritTableView$12.run(GerritTableView.java:884)
      8 frames
    8. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      1 frame