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

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

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
at android.os.Bundle.getLong(Bundle.java:973)
at com.samsung.avrcp.BtAvrcpHandler.onReceive(BtAvrcpHandler.java:162)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2262)
at android.app.ActivityThread.access$1600(ActivityThread.java:134)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4867)
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:1007)

Users with the same issue

Once, 10 months ago
Once, 11 months ago
3 times, 1 year ago
6 times, 1 year ago
746 times, 1 year ago
1 more bugmates

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