org.springframework.data.mapping.model.MappingException: No property signed found on [class]!

Spring JIRA | Andy Chang | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    I have an entity that has a field called {{signedDate}} but I have annotated it with {{@Field("signed")}}. I also have a method {{isSigned()}} in the same entity, which basically returns whether {{signedDate}} is {{null}} or not. When I perform any update operations using {{MongoOperations}} involving the {{signed}}/{{signedDate}} field, it gives the following error, even if I mark {{isSigned()}} as transient: {noformat} Exception in thread "main" org.springframework.data.mapping.model.MappingException: No property signed found on [class]! at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentPropertyPath(AbstractMappingContext.java:237) at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentPropertyPath(AbstractMappingContext.java:215) at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentPropertyPath(AbstractMappingContext.java:203) at org.springframework.data.mongodb.core.convert.QueryMapper$MetadataBackedField.getPath(QueryMapper.java:746) at org.springframework.data.mongodb.core.convert.QueryMapper$MetadataBackedField.<init>(QueryMapper.java:637) at org.springframework.data.mongodb.core.convert.QueryMapper$MetadataBackedField.<init>(QueryMapper.java:614) at org.springframework.data.mongodb.core.convert.UpdateMapper$MetadataBackedUpdateField.<init>(UpdateMapper.java:178) at org.springframework.data.mongodb.core.convert.UpdateMapper.createPropertyField(UpdateMapper.java:149) at org.springframework.data.mongodb.core.convert.QueryMapper.getMappedObject(QueryMapper.java:113) at org.springframework.data.mongodb.core.convert.QueryMapper.convertSimpleOrDBObject(QueryMapper.java:294) at org.springframework.data.mongodb.core.convert.QueryMapper.getMappedKeyword(QueryMapper.java:178) at org.springframework.data.mongodb.core.convert.QueryMapper.getMappedObject(QueryMapper.java:91) at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:1006) at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:997) at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:410) at org.springframework.data.mongodb.core.MongoTemplate.doUpdate(MongoTemplate.java:997) at org.springframework.data.mongodb.core.MongoTemplate.updateFirst(MongoTemplate.java:971) {noformat} I am attaching a maven project that produces the problem.

    Spring JIRA | 3 years ago | Andy Chang
    org.springframework.data.mapping.model.MappingException: No property signed found on [class]!
  2. 0

    I have an entity that has a field called {{signedDate}} but I have annotated it with {{@Field("signed")}}. I also have a method {{isSigned()}} in the same entity, which basically returns whether {{signedDate}} is {{null}} or not. When I perform any update operations using {{MongoOperations}} involving the {{signed}}/{{signedDate}} field, it gives the following error, even if I mark {{isSigned()}} as transient: {noformat} Exception in thread "main" org.springframework.data.mapping.model.MappingException: No property signed found on [class]! at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentPropertyPath(AbstractMappingContext.java:237) at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentPropertyPath(AbstractMappingContext.java:215) at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentPropertyPath(AbstractMappingContext.java:203) at org.springframework.data.mongodb.core.convert.QueryMapper$MetadataBackedField.getPath(QueryMapper.java:746) at org.springframework.data.mongodb.core.convert.QueryMapper$MetadataBackedField.<init>(QueryMapper.java:637) at org.springframework.data.mongodb.core.convert.QueryMapper$MetadataBackedField.<init>(QueryMapper.java:614) at org.springframework.data.mongodb.core.convert.UpdateMapper$MetadataBackedUpdateField.<init>(UpdateMapper.java:178) at org.springframework.data.mongodb.core.convert.UpdateMapper.createPropertyField(UpdateMapper.java:149) at org.springframework.data.mongodb.core.convert.QueryMapper.getMappedObject(QueryMapper.java:113) at org.springframework.data.mongodb.core.convert.QueryMapper.convertSimpleOrDBObject(QueryMapper.java:294) at org.springframework.data.mongodb.core.convert.QueryMapper.getMappedKeyword(QueryMapper.java:178) at org.springframework.data.mongodb.core.convert.QueryMapper.getMappedObject(QueryMapper.java:91) at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:1006) at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:997) at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:410) at org.springframework.data.mongodb.core.MongoTemplate.doUpdate(MongoTemplate.java:997) at org.springframework.data.mongodb.core.MongoTemplate.updateFirst(MongoTemplate.java:971) {noformat} I am attaching a maven project that produces the problem.

    Spring JIRA | 3 years ago | Andy Chang
    org.springframework.data.mapping.model.MappingException: No property signed found on [class]!
  3. 0

    MongoDB + Spring MVC

    Stack Overflow | 2 years ago | JavaDevil
    org.springframework.data.mapping.model.MappingException: No property status found on com.avis.bean.Agreement! at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentPropertyPath(AbstractMappingContext.java:228)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors

    Root Cause Analysis

    1. org.springframework.data.mapping.model.MappingException

      No property signed found on [class]!

      at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentPropertyPath()
    2. Spring Data Core
      AbstractMappingContext.getPersistentPropertyPath
      1. org.springframework.data.mapping.context.AbstractMappingContext.getPersistentPropertyPath(AbstractMappingContext.java:237)
      2. org.springframework.data.mapping.context.AbstractMappingContext.getPersistentPropertyPath(AbstractMappingContext.java:215)
      3. org.springframework.data.mapping.context.AbstractMappingContext.getPersistentPropertyPath(AbstractMappingContext.java:203)
      3 frames
    3. Spring Data MongoDB - Core
      MongoTemplate.updateFirst
      1. org.springframework.data.mongodb.core.convert.QueryMapper$MetadataBackedField.getPath(QueryMapper.java:746)
      2. org.springframework.data.mongodb.core.convert.QueryMapper$MetadataBackedField.<init>(QueryMapper.java:637)
      3. org.springframework.data.mongodb.core.convert.QueryMapper$MetadataBackedField.<init>(QueryMapper.java:614)
      4. org.springframework.data.mongodb.core.convert.UpdateMapper$MetadataBackedUpdateField.<init>(UpdateMapper.java:178)
      5. org.springframework.data.mongodb.core.convert.UpdateMapper.createPropertyField(UpdateMapper.java:149)
      6. org.springframework.data.mongodb.core.convert.QueryMapper.getMappedObject(QueryMapper.java:113)
      7. org.springframework.data.mongodb.core.convert.QueryMapper.convertSimpleOrDBObject(QueryMapper.java:294)
      8. org.springframework.data.mongodb.core.convert.QueryMapper.getMappedKeyword(QueryMapper.java:178)
      9. org.springframework.data.mongodb.core.convert.QueryMapper.getMappedObject(QueryMapper.java:91)
      10. org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:1006)
      11. org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:997)
      12. org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:410)
      13. org.springframework.data.mongodb.core.MongoTemplate.doUpdate(MongoTemplate.java:997)
      14. org.springframework.data.mongodb.core.MongoTemplate.updateFirst(MongoTemplate.java:971)
      14 frames