org.springframework.data.mapping.model.MappingException

Ambiguous mapping! Annotation interface org.codehaus.jackson.annotate.JsonProperty configured multiple times on accessor methods of property id in class com.xxxx.xxxxx.xxxxx.Foo!

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3

  • via Unknown by Adam Skogman,
  • via Unknown by Adam Skogman,
  • Stack trace

    • org.springframework.data.mapping.model.MappingException: Ambiguous mapping! Annotation interface org.codehaus.jackson.annotate.JsonProperty configured multiple times on accessor methods of property id in class com.xxxx.xxxxx.xxxxx.Foo! at org.springframework.data.mapping.model.AnnotationBasedPersistentProperty.populateAnnotationCache(AnnotationBasedPersistentProperty.java:86)[spring-data-commons-1.5.1.RELEASE.jar:na] at org.springframework.data.mapping.model.AnnotationBasedPersistentProperty.<init>(AnnotationBasedPersistentProperty.java:62)[spring-data-commons-1.5.1.RELEASE.jar:na] at org.springframework.data.mongodb.core.mapping.BasicMongoPersistentProperty.<init>(BasicMongoPersistentProperty.java:73)[spring-data-mongodb-1.2.1.RELEASE.jar:na] at org.springframework.data.mongodb.core.mapping.CachingMongoPersistentProperty.<init>(CachingMongoPersistentProperty.java:44)[spring-data-mongodb-1.2.1.RELEASE.jar:na] at org.springframework.data.mongodb.core.mapping.MongoMappingContext.createPersistentProperty(MongoMappingContext.java:65)[spring-data-mongodb-1.2.1.RELEASE.jar:na] at org.springframework.data.mongodb.core.mapping.MongoMappingContext.createPersistentProperty(MongoMappingContext.java:37)[spring-data-mongodb-1.2.1.RELEASE.jar:na] at org.springframework.data.mapping.context.AbstractMappingContext$PersistentPropertyCreator.doWith(AbstractMappingContext.java:391)[spring-data-commons-1.5.1.RELEASE.jar:na] at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:570)[spring-core-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.data.mapping.context.AbstractMappingContext.addPersistentEntity(AbstractMappingContext.java:283)[spring-data-commons-1.5.1.RELEASE.jar:na] at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:190)[spring-data-commons-1.5.1.RELEASE.jar:na] at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:159)[spring-data-commons-1.5.1.RELEASE.jar:na] at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:69)[spring-data-commons-1.5.1.RELEASE.jar:na] at org.springframework.data.mongodb.core.MongoTemplate.determineCollectionName(MongoTemplate.java:1607)[spring-data-mongodb-1.2.1.RELEASE.jar:na] at org.springframework.data.mongodb.core.MongoTemplate.findAll(MongoTemplate.java:1058)[spring-data-mongodb-1.2.1.RELEASE.jar:na]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.