Uploaded image for project: 'Spring Data MongoDB'
  1. Spring Data MongoDB
  2. DATAMONGO-531

StackOverflowError when persisting Groovy beans

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.1 RC1
    • Fix Version/s: 1.1 GA
    • Component/s: None
    • Labels:
      None

      Description

      Beans written in Groovy cause a StackOverflowError when persisted.

      java.lang.StackOverflowError
              at java.util.HashMap.entrySet0(HashMap.java:957)
              at java.util.HashMap.entrySet(HashMap.java:953)
              at java.util.AbstractMap.hashCode(AbstractMap.java:492)
              at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336)
              at org.springframework.data.util.TypeDiscoverer.hashCode(TypeDiscoverer.java:457)
              at org.springframework.data.util.ClassTypeInformation.hashCode(ClassTypeInformation.java:38)
              at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:922)
              at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:173)
              at org.springframework.data.mapping.context.AbstractMappingContext.getPersistentEntity(AbstractMappingContext.java:68)
              at org.springframework.data.mongodb.core.convert.MappingMongoConverter.writePropertyInternal(MappingMongoConverter.java:436)
              at org.springframework.data.mongodb.core.convert.MappingMongoConverter$3.doWithPersistentProperty(MappingMongoConverter.java:373)
              at org.springframework.data.mongodb.core.convert.MappingMongoConverter$3.doWithPersistentProperty(MappingMongoConverter.java:362)
              at org.springframework.data.mapping.model.BasicPersistentEntity.doWithProperties(BasicPersistentEntity.java:195)
              at org.springframework.data.mongodb.core.convert.MappingMongoConverter.writeInternal(MappingMongoConverter.java:362)
              at org.springframework.data.mongodb.core.convert.MappingMongoConverter.writePropertyInternal(MappingMongoConverter.java:439)
              at org.springframework.data.mongodb.core.convert.MappingMongoConverter$3.doWithPersistentProperty(MappingMongoConverter.java:373)
              at org.springframework.data.mongodb.core.convert.MappingMongoConverter$3.doWithPersistentProperty(MappingMongoConverter.java:362)
              at org.springframework.data.mapping.model.BasicPersistentEntity.doWithProperties(BasicPersistentEntity.java:195)
      etc...
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                olivergierke Oliver Gierke
                Reporter:
                andrew.duncan@192.com Andrew Duncan
                Last updater:
                Trevor Marshall
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: