java.lang.IllegalArgumentException

Stack Overflow | Ben Cheng | 4 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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Parsing JSON with unknown Enum

    GitHub | 2 years ago | vtcosta
    java.lang.NullPointerException
  3. 0

    I have an Google AppEngine Servlet that receives an ApplicationToken from an OAuth 2.0 enabled web application: what would be the next step

    Google Groups | 4 years ago | Michel Jonker
    java.lang.IllegalArgumentException: number field formatted as a JSON string must use the @JsonString annotation [key expires_in, field private java.lang.Long com.google.api.client.auth.oauth2.TokenResponse.expiresInSeconds]

    1 unregistered visitors
    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.IllegalArgumentException

      expected numeric type but got class com.google.api.client.auth.oauth2.TokenResponse

      at com.google.api.client.json.JsonParser.parseValue()
    2. Google HTTP Client Library for Java
      HttpResponse.parseAs
      1. com.google.api.client.json.JsonParser.parseValue(JsonParser.java:844)
      2. com.google.api.client.json.JsonParser.parse(JsonParser.java:382)
      3. com.google.api.client.json.JsonParser.parse(JsonParser.java:355)
      4. com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:87)
      5. com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:81)
      6. com.google.api.client.http.HttpResponse.parseAs(HttpResponse.java:459)
      6 frames
    3. Google OAuth Client Library for Java
      TokenRequest.execute
      1. com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
      1 frame
    4. Java 6 (and higher) extensions to the Google OAuth Client Library for Java.
      AuthorizationCodeInstalledApp.authorize
      1. com.google.api.client.extensions.java6.auth.oauth2.AuthorizationCodeInstalledApp.authorize(AuthorizationCodeInstalledApp.java:82)
      1 frame
    5. com.techoffice
      Appl.main
      1. com.techoffice.Appl.authorize(Appl.java:61)
      2. com.techoffice.Appl.main(Appl.java:68)
      2 frames