Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. MappingMongoConverter.writeMapInternal() has thrown a MappingException
    Spring Data MongoDB - Core
    2
    0
    0

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
org.springframework.data.mapping.model.MappingException: Cannot use a complex object as a key value.
    at org.springframework.data.mongodb.core.convert.MappingMongoConverter.writeMapInternal(MappingMongoConverter.java:525)
    at org.springframework.data.mongodb.core.convert.MappingMongoConverter.writePropertyInternal(MappingMongoConverter.java:385)
    at org.springframework.data.mongodb.core.convert.MappingMongoConverter$3.doWithPersistentProperty(MappingMongoConverter.java:346)
    at org.springframework.data.mongodb.core.convert.MappingMongoConverter$3.doWithPersistentProperty(MappingMongoConverter.java:335)
17 frames hidden

External results for this pattern (3)

  1. Cannot use a complex object as a key value.
    Show stack trace
  2. Alexander Bätzvia Spring JIRA2 years ago
    Cannot use a complex object as a key value.
    Show stack trace