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

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 GitHub by rajam1215
, 10 months ago
libcore.util.ZoneInfo cannot be cast to java.lang.String
via Stack Overflow by Ashish Keshri
, 2 years ago
java.util.Locale cannot be cast to java.lang.String
via Stack Overflow by user3663921
, 2 years ago
android.text.SpannableString cannot be cast to java.lang.String
via GitHub by gkbiswas
, 4 months ago
android.text.SpannableString cannot be cast to java.lang.String
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
at android.os.BaseBundle.getString(BaseBundle.java:923)
at com.google.android.gms.gcm.zza.zzad(Unknown Source)
at com.google.android.gms.gcm.GcmListenerService.zzo(Unknown Source)
at com.google.android.gms.gcm.GcmListenerService.zzn(Unknown Source)
at com.google.android.gms.gcm.GcmListenerService.zzm(Unknown Source)
at com.google.android.gms.gcm.GcmListenerService.zza(Unknown Source)
at com.google.android.gms.gcm.GcmListenerService$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

2 times, 1 year ago
4 times, 6 months ago
2 times, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 11 months ago
31 more bugmates

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