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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by sglok
, 10 months ago
java.lang.Long cannot be cast to java.lang.String
via GitHub by m1ga
, 1 year ago
java.lang.Long cannot be cast to java.lang.String
via GitHub by sglok
, 10 months ago
java.lang.Long cannot be cast to java.lang.String
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
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
at android.os.BaseBundle.getString(BaseBundle.java:923)
at nl.vanvianen.android.gcm.GCMIntentService.onMessage(GCMIntentService.java:98)
at com.google.android.gcm.GCMBaseIntentService.onHandleIntent(GCMBaseIntentService.java:223)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:168)
at android.os.HandlerThread.run(HandlerThread.java:61)

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, 1 year ago

Write tip

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