java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • spring-data-mongodb - 1.3.3.RELEASE mongo-java-driver - 2.11.3 Unable to execute query using void org.springframework.data.mongodb.core.MongoTemplate.executeQuery(Query query, String collectionName, DocumentCallbackHandler dch) with queries which contain Criteries with Enums. {code:title=Stack trace}: java.lang.IllegalArgumentException: can't serialize class Day at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:273) at org.bson.BasicBSONEncoder.putIterable(BasicBSONEncoder.java:298) at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:237) at org.bson.BasicBSONEncoder.putObject(BasicBSONEncoder.java:174) at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:229) 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:285) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:273) 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.springframework.data.mongodb.core.MongoTemplate.executeQueryInternal(MongoTemplate.java:1701) at org.springframework.data.mongodb.core.MongoTemplate.executeQuery(MongoTemplate.java:377) at org.springframework.data.mongodb.core.MongoTemplate.executeQuery(MongoTemplate.java:350) {code} Please find little unit test in attachment
    via by Alex_M,
  • spring-data-mongodb - 1.3.3.RELEASE mongo-java-driver - 2.11.3 Unable to execute query using void org.springframework.data.mongodb.core.MongoTemplate.executeQuery(Query query, String collectionName, DocumentCallbackHandler dch) with queries which contain Criteries with Enums. {code:title=Stack trace}: java.lang.IllegalArgumentException: can't serialize class Day at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:273) at org.bson.BasicBSONEncoder.putIterable(BasicBSONEncoder.java:298) at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:237) at org.bson.BasicBSONEncoder.putObject(BasicBSONEncoder.java:174) at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:229) 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:285) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:273) 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.springframework.data.mongodb.core.MongoTemplate.executeQueryInternal(MongoTemplate.java:1701) at org.springframework.data.mongodb.core.MongoTemplate.executeQuery(MongoTemplate.java:377) at org.springframework.data.mongodb.core.MongoTemplate.executeQuery(MongoTemplate.java:350) {code} Please find little unit test in attachment
    via by Alex_M,
  • response too long: 572544067
    via GitHub by yegor256
    ,
    • java.lang.IllegalArgumentException: can't serialize class Day at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:273) at org.bson.BasicBSONEncoder.putIterable(BasicBSONEncoder.java:298) at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:237) at org.bson.BasicBSONEncoder.putObject(BasicBSONEncoder.java:174) at org.bson.BasicBSONEncoder._putObjectField(BasicBSONEncoder.java:229) 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:285) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:273) 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.springframework.data.mongodb.core.MongoTemplate.executeQueryInternal(MongoTemplate.java:1701) at org.springframework.data.mongodb.core.MongoTemplate.executeQuery(MongoTemplate.java:377) at org.springframework.data.mongodb.core.MongoTemplate.executeQuery(MongoTemplate.java:350)

    Users with the same issue

    rprp
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,