java.lang.ClassCastException: java.lang.Short cannot be cast to java.lang.Integer

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Petr Vanek, 1 year ago
via GitHub by SwiTool
, 6 months ago
java.lang.Float cannot be cast to java.lang.Integer
via Stack Overflow by Lorenzo Sogliani
, 2 years ago
java.lang.String cannot be cast to java.lang.Integer
via Stack Overflow by Jason Paddle
, 2 years ago
java.lang.Long cannot be cast to java.lang.Integer
via Stack Overflow by Unknown author, 2 years ago
java.lang.String cannot be cast to java.lang.Integer
via GitHub by barbeau
, 2 years ago
java.lang.Float cannot be cast to java.lang.Integer
java.lang.ClassCastException: java.lang.Short cannot be cast to java.lang.Integer
at android.os.Bundle.getInt(Bundle.java:940)
at ch.bitspin.timely.alarm.IntentAlarmSetter.onCreate(SourceFile:41)
at ch.bitspin.timely.alarm.IntentAlarmSetter_.onCreate(SourceFile:29)
at android.app.Activity.performCreate(Activity.java:5206)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
at android.app.ActivityThread.access$700(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4921)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)

Users with the same issue

6 times, 1 year ago
302 times, 1 month ago
3 times, 2 months ago
8 times, 4 months ago
12 times, 11 months ago
7 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.