java.lang.ClassCastException: com.google.gson.JsonObject cannot be cast to java.io.File

GitHub | cbeust | 5 months ago
  1. 0

    Package not created on bintray

    GitHub | 5 months ago | cbeust
    java.lang.ClassCastException: com.google.gson.JsonObject cannot be cast to java.io.File
  2. 0

    [1.7.10] java.lang.ClassCastException: com.google.gson.JsonPrimitive cannot be cast to com.google.gson.JsonObject

    GitHub | 2 months ago | HyperMan19680
    java.lang.ClassCastException: com.google.gson.JsonPrimitive cannot be cast to com.google.gson.JsonObject
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Exception - complete fail after some time with 1.3.1 release

    GitHub | 2 years ago | jvanbouchaute
    java.lang.ClassCastException: com.google.gson.JsonNull cannot be cast to com.google.gson.JsonObject
  5. 0

    Parsing JSON by using gson

    Stack Overflow | 3 years ago | Tom
    java.lang.ClassCastException: com.google.gson.JsonObject cannot be cast to com.google.gson.JsonArray

    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.ClassCastException

      com.google.gson.JsonObject cannot be cast to java.io.File

      at com.beust.kobalt.plugin.publish.RequestBodyConverter.convert()
    2. com.beust.kobalt
      RequestBodyConverter.convert
      1. com.beust.kobalt.plugin.publish.RequestBodyConverter.convert(BintrayApi.kt:235)
      1 frame
    3. retrofit2
      OkHttpCall.execute
      1. retrofit2.ParameterHandler$Body.apply(ParameterHandler.java:270)
      2. retrofit2.ServiceMethod.toRequest(ServiceMethod.java:108)
      3. retrofit2.OkHttpCall.createRawCall(OkHttpCall.java:178)
      4. retrofit2.OkHttpCall.execute(OkHttpCall.java:162)
      4 frames
    4. com.beust.kobalt
      PublishPlugin.taskUploadBintray
      1. com.beust.kobalt.plugin.publish.BintrayApi.validatePackage(BintrayApi.kt:105)
      2. com.beust.kobalt.plugin.publish.BintrayApi.uploadMaven(BintrayApi.kt:127)
      3. com.beust.kobalt.plugin.publish.PublishPlugin.uploadBintray(PublishPlugin.kt:80)
      4. com.beust.kobalt.plugin.publish.PublishPlugin.taskUploadBintray(PublishPlugin.kt:62)
      4 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    6. com.beust.kobalt
      TaskWorker.call
      1. com.beust.kobalt.internal.TaskManager$toTaskAnnotation$1.invoke(TaskManager.kt:401)
      2. com.beust.kobalt.internal.TaskManager$toTaskAnnotation$1.invoke(TaskManager.kt:19)
      3. com.beust.kobalt.internal.TaskManager$addTask$1.call(TaskManager.kt:475)
      4. com.beust.kobalt.internal.TaskManager$addTask$1.call(TaskManager.kt:473)
      5. com.beust.kobalt.internal.TaskWorker$call$$inlined$forEach$lambda$1.invoke(TaskManager.kt:514)
      6. com.beust.kobalt.internal.TaskWorker$call$$inlined$forEach$lambda$1.invoke(TaskManager.kt:500)
      7. com.beust.kobalt.misc.BenchmarksKt.benchmarkMillis(Benchmarks.kt:5)
      8. com.beust.kobalt.internal.TaskWorker.call(TaskManager.kt:513)
      9. com.beust.kobalt.internal.TaskWorker.call(TaskManager.kt:500)
      9 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      6. java.lang.Thread.run(Thread.java:745)
      6 frames