java.lang.IllegalArgumentException: can't serialize class org.hibernate.ogm.datastore.mongodb.test.id.GuitarPlayer$Skill

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 Hibernate JIRA by Gunnar Morling, 1 year ago
can't serialize class org.hibernate.ogm.datastore.mongodb.test.id.GuitarPlayer$Skill
via Hibernate JIRA by Gunnar Morling, 1 year ago
can't serialize class org.hibernate.ogm.datastore.mongodb.test.id.GuitarPlayer$Skill
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 org.hibernate.ogm.datastore.mongodb.test.id.GuitarPlayer$Skill
at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:270)
at org.bson.BasicBSONEncoder.putObject(BasicBSONEncoder.java:174)
at org.bson.BasicBSONEncoder.putObject(BasicBSONEncoder.java:120)
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:307)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:295)
at com.mongodb.DBCursor._check(DBCursor.java:368)
at com.mongodb.DBCursor._hasNext(DBCursor.java:459)
at com.mongodb.DBCursor.hasNext(DBCursor.java:484)
at org.hibernate.ogm.datastore.mongodb.MongoDBDialect$MongoDBResultsCursor.hasNext(MongoDBDialect.java:860)
at org.hibernate.ogm.query.impl.OgmQueryLoader.listOfEntities(OgmQueryLoader.java:88)
at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:231)
at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1264)

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.