java.lang.IllegalArgumentException: can't serialize class java.lang.Character

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 Stack Overflow by Matteo Pacini
, 2 years ago
can't serialize class com.google.i18n.phonenumbers.Phonenumber$PhoneNumber
via Stack Overflow by zigot
, 2 years ago
can't serialize class org.apache.avro.util.Utf8
via Stack Overflow by popcoder
, 2 years ago
can't serialize class twitter4j.internal.json.UserJSONImpl
via apache.org by Unknown author, 1 year ago
can't serialize class org.apache.logging.log4j.Level
java.lang.IllegalArgumentException: can't serialize class java.lang.Character
at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:234)
at org.bson.BasicBSONEncoder.putObject(BasicBSONEncoder.java:140)
at org.bson.BasicBSONEncoder.putObject(BasicBSONEncoder.java:86)
at com.mongodb.DefaultDBEncoder.writeObject(DefaultDBEncoder.java:27)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 4 months ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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