java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Package not created on bintray
    via GitHub by cbeust
    ,
    • java.lang.ClassCastException: com.google.gson.JsonObject cannot be cast to java.io.File at com.beust.kobalt.plugin.publish.RequestBodyConverter.convert(BintrayApi.kt:235) at retrofit2.ParameterHandler$Body.apply(ParameterHandler.java:270) at retrofit2.ServiceMethod.toRequest(ServiceMethod.java:108) at retrofit2.OkHttpCall.createRawCall(OkHttpCall.java:178) at retrofit2.OkHttpCall.execute(OkHttpCall.java:162) at com.beust.kobalt.plugin.publish.BintrayApi.validatePackage(BintrayApi.kt:105) at com.beust.kobalt.plugin.publish.BintrayApi.uploadMaven(BintrayApi.kt:127) at com.beust.kobalt.plugin.publish.PublishPlugin.uploadBintray(PublishPlugin.kt:80) at com.beust.kobalt.plugin.publish.PublishPlugin.taskUploadBintray(PublishPlugin.kt:62) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.beust.kobalt.internal.TaskManager$toTaskAnnotation$1.invoke(TaskManager.kt:401) at com.beust.kobalt.internal.TaskManager$toTaskAnnotation$1.invoke(TaskManager.kt:19) at com.beust.kobalt.internal.TaskManager$addTask$1.call(TaskManager.kt:475) at com.beust.kobalt.internal.TaskManager$addTask$1.call(TaskManager.kt:473) at com.beust.kobalt.internal.TaskWorker$call$$inlined$forEach$lambda$1.invoke(TaskManager.kt:514) at com.beust.kobalt.internal.TaskWorker$call$$inlined$forEach$lambda$1.invoke(TaskManager.kt:500) at com.beust.kobalt.misc.BenchmarksKt.benchmarkMillis(Benchmarks.kt:5) at com.beust.kobalt.internal.TaskWorker.call(TaskManager.kt:513) at com.beust.kobalt.internal.TaskWorker.call(TaskManager.kt:500) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
    No Bugmate found.