java.lang.IllegalArgumentException: can't serialize class entities.users.NormalUser

Stack Overflow | stack man | 3 months ago
  1. 0

    IllegalArgumentException: Can´t serialize class (even it implements Serializable)

    Stack Overflow | 3 months ago | stack man
    java.lang.IllegalArgumentException: can't serialize class entities.users.NormalUser
  2. 0

    Can´t create entity in MongoDB

    Stack Overflow | 3 months ago | stack man
    java.lang.IllegalArgumentException: can't serialize class entities.users.NormalUser
  3. 0

    How to implement DAO layer for storing JSON at Mongo DB

    Stack Overflow | 2 years ago | nazar_art
    java.lang.IllegalArgumentException: can't serialize class com.aerlingus.ta.data.dao.b2b.Test
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Inserting Date in MongoDB using Java

    Stack Overflow | 2 years ago | Ninad
    java.lang.IllegalArgumentException: can't serialize class org.joda.time.DateTime

  1. poroszd 3 times, last 4 months ago
  2. rp 1 times, last 5 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    can't serialize class entities.users.NormalUser

    at org.bson.BasicBSONEncoder._putObjectField()
  2. MongoDB Java Driver
    DBCollection.insert
    1. org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:270)
    2. org.bson.BasicBSONEncoder.putObject(BasicBSONEncoder.java:174)
    3. org.bson.BasicBSONEncoder.putObject(BasicBSONEncoder.java:120)
    4. com.mongodb.DefaultDBEncoder.writeObject(DefaultDBEncoder.java:27)
    5. com.mongodb.OutMessage.putObject(OutMessage.java:289)
    6. com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:261)
    7. com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:226)
    8. com.mongodb.DBCollection.insert(DBCollection.java:75)
    9. com.mongodb.DBCollection.insert(DBCollection.java:59)
    10. com.mongodb.DBCollection.insert(DBCollection.java:104)
    10 frames
  3. repositories
    UsersRepository.main
    1. repositories.UsersRepository.createUser(UsersRepository.java:35)
    2. repositories.UsersRepository.main(UsersRepository.java:68)
    2 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  5. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
    1 frame