java.lang.IllegalArgumentException: can't serialize class MatchAfterProjectIssue$Age

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 Spring JIRA by Konstantin Lutovich, 1 year ago
can't serialize class MatchAfterProjectIssue$Age
via Spring JIRA by Konstantin Lutovich, 1 year ago
can't serialize class MatchAfterProjectIssue$Age
via Stack Overflow by pama
, 1 month ago
can't serialize class org.springframework.data.mongodb.core.query.GeoCommand
via Spring JIRA by Balazs Peterfi, 1 year ago
can't serialize class java.time.LocalDateTime
via Spring JIRA by Balazs Peterfi, 1 year ago
can't serialize class java.time.LocalDateTime
java.lang.IllegalArgumentException: can't serialize class MatchAfterProjectIssue$Age
at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:272)
at org.bson.BasicBSONEncoder.putObject(BasicBSONEncoder.java:173)
at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:228)
at org.bson.BasicBSONEncoder.putObject(BasicBSONEncoder.java:173)
at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:228)
at org.bson.BasicBSONEncoder.putIterable(BasicBSONEncoder.java:297)
at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:236)
at org.bson.BasicBSONEncoder.putObject(BasicBSONEncoder.java:173)
at org.bson.BasicBSONEncoder.putObject(BasicBSONEncoder.java:119)
at com.mongodb.DefaultDBEncoder.writeObject(DefaultDBEncoder.java:27)
at com.mongodb.OutMessage.putObject(OutMessage.java:289)
at com.mongodb.OutMessage.writeQuery(OutMessage.java:211)
at com.mongodb.OutMessage.query(OutMessage.java:84)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:285)
at com.mongodb.DB.command(DB.java:262)
at com.mongodb.DB.command(DB.java:244)
at com.mongodb.DB.command(DB.java:301)
at com.mongodb.DB.command(DB.java:199)
at org.springframework.data.mongodb.core.MongoTemplate$1.doInDB(MongoTemplate.java:323)
at org.springframework.data.mongodb.core.MongoTemplate$1.doInDB(MongoTemplate.java:321)
at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:391)
at org.springframework.data.mongodb.core.MongoTemplate.executeCommand(MongoTemplate.java:321)
at org.springframework.data.mongodb.core.MongoTemplate.aggregate(MongoTemplate.java:1328)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years 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
1 more bugmates

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