java.lang.ClassCastException: java.lang.Object 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 Stack Overflow by AgustinusWD
, 1 year ago
java.lang.Object cannot be cast to java.lang.String
via Stack Overflow by Krish
, 1 year ago
via Stack Overflow by Krish
, 11 months ago
via Stack Overflow by Rajendra
, 1 year ago
java.lang.Object cannot be cast to java.lang.String
via Stack Overflow by Unknown author, 2 years ago
java.lang.Object cannot be cast to java.lang.String
via proguard by alaxid
, 1 year ago
java.lang.Object cannot be cast to java.lang.String
java.lang.ClassCastException: java.lang.Object cannot be cast to java.lang.String
at proguard.obfuscate.MemberObfuscator.newMemberName(MemberObfuscator.java:198)
at proguard.obfuscate.MemberNameCollector.visitAnyMember(MemberNameCollector.java:74)
at proguard.classfile.util.SimplifiedVisitor.visitProgramMember(SimplifiedVisitor.java:79)
at proguard.classfile.util.SimplifiedVisitor.visitProgramMethod(SimplifiedVisitor.java:91)
at proguard.classfile.visitor.MemberAccessFilter.visitProgramMethod(MemberAccessFilter.java:90)
at proguard.classfile.ProgramMethod.accept(ProgramMethod.java:71)
at proguard.classfile.ProgramClass.methodsAccept(ProgramClass.java:504)
at proguard.classfile.visitor.AllMemberVisitor.visitProgramClass(AllMemberVisitor.java:48)
at proguard.classfile.ProgramClass.accept(ProgramClass.java:346)
at proguard.classfile.ProgramClass.hierarchyAccept(ProgramClass.java:359)
at proguard.classfile.LibraryClass.hierarchyAccept(LibraryClass.java:371)
at proguard.classfile.ProgramClass.hierarchyAccept(ProgramClass.java:416)
at proguard.classfile.visitor.ClassHierarchyTraveler.visitProgramClass(ClassHierarchyTraveler.java:75)
at proguard.classfile.visitor.MultiClassVisitor.visitProgramClass(MultiClassVisitor.java:85)
at proguard.classfile.ProgramClass.accept(ProgramClass.java:346)
at proguard.classfile.ClassPool.classesAccept(ClassPool.java:116)
at proguard.obfuscate.Obfuscator.execute(Obfuscator.java:217)
at proguard.ProGuard.obfuscate(ProGuard.java:333)
at proguard.ProGuard.execute(ProGuard.java:135)
at proguard.ProGuard.main(ProGuard.java:492)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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