java.lang.StackOverflowError

Spring JIRA | Tyler Frederick | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When trying to persist an object [to MongoDB (spring-data-mongodb v1.1.0.M1)] that is in "session" scope and using a CGLIB proxy (ie: "@Scope(value="session", proxyMode = ScopedProxyMode.TARGET_CLASS)") I receive a StackOverflowError. When removing the session scoping, it works correctly. java.lang.StackOverflowError at java.util.HashMap$EntryIterator.<init>(HashMap.java:832) at java.util.HashMap$EntryIterator.<init>(HashMap.java:832) at java.util.HashMap.newEntryIterator(HashMap.java:846) at java.util.HashMap$EntrySet.iterator(HashMap.java:950) at java.util.AbstractMap.hashCode(AbstractMap.java:459) at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336) at org.springframework.data.util.TypeDiscoverer.hashCode(TypeDiscoverer.java:365) at org.springframework.data.util.ClassTypeInformation.hashCode(ClassTypeInformation.java:39) at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336) at org.springframework.data.util.ParentTypeAwareTypeInformation.hashCode(ParentTypeAwareTypeInformation.java:79) at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336) at org.springframework.data.util.ParentTypeAwareTypeInformation.hashCode(ParentTypeAwareTypeInformation.java:79) at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336) at org.springframework.data.util.ParentTypeAwareTypeInformation.hashCode(ParentTypeAwareTypeInformation.java:79) at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336) .... (Repeats)

    Spring JIRA | 5 years ago | Tyler Frederick
    java.lang.StackOverflowError
  2. 0

    When trying to persist an object [to MongoDB (spring-data-mongodb v1.1.0.M1)] that is in "session" scope and using a CGLIB proxy (ie: "@Scope(value="session", proxyMode = ScopedProxyMode.TARGET_CLASS)") I receive a StackOverflowError. When removing the session scoping, it works correctly. java.lang.StackOverflowError at java.util.HashMap$EntryIterator.<init>(HashMap.java:832) at java.util.HashMap$EntryIterator.<init>(HashMap.java:832) at java.util.HashMap.newEntryIterator(HashMap.java:846) at java.util.HashMap$EntrySet.iterator(HashMap.java:950) at java.util.AbstractMap.hashCode(AbstractMap.java:459) at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336) at org.springframework.data.util.TypeDiscoverer.hashCode(TypeDiscoverer.java:365) at org.springframework.data.util.ClassTypeInformation.hashCode(ClassTypeInformation.java:39) at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336) at org.springframework.data.util.ParentTypeAwareTypeInformation.hashCode(ParentTypeAwareTypeInformation.java:79) at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336) at org.springframework.data.util.ParentTypeAwareTypeInformation.hashCode(ParentTypeAwareTypeInformation.java:79) at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336) at org.springframework.data.util.ParentTypeAwareTypeInformation.hashCode(ParentTypeAwareTypeInformation.java:79) at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336) .... (Repeats)

    Spring JIRA | 5 years ago | Tyler Frederick
    java.lang.StackOverflowError
  3. 0

    GitHub comment 30#212939654

    GitHub | 1 year ago | kerler
    java.lang.StackOverflowError
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.StackOverflowError

      No message provided

      at java.util.HashMap$EntryIterator.<init>()
    2. Java RT
      AbstractMap.hashCode
      1. java.util.HashMap$EntryIterator.<init>(HashMap.java:832)
      2. java.util.HashMap$EntryIterator.<init>(HashMap.java:832)
      3. java.util.HashMap.newEntryIterator(HashMap.java:846)
      4. java.util.HashMap$EntrySet.iterator(HashMap.java:950)
      5. java.util.AbstractMap.hashCode(AbstractMap.java:459)
      5 frames
    3. Spring Core
      ObjectUtils.nullSafeHashCode
      1. org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336)
      1 frame
    4. Spring Data Core
      ClassTypeInformation.hashCode
      1. org.springframework.data.util.TypeDiscoverer.hashCode(TypeDiscoverer.java:365)
      2. org.springframework.data.util.ClassTypeInformation.hashCode(ClassTypeInformation.java:39)
      2 frames
    5. Spring Core
      ObjectUtils.nullSafeHashCode
      1. org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336)
      1 frame
    6. Spring Data Core
      ParentTypeAwareTypeInformation.hashCode
      1. org.springframework.data.util.ParentTypeAwareTypeInformation.hashCode(ParentTypeAwareTypeInformation.java:79)
      1 frame
    7. Spring Core
      ObjectUtils.nullSafeHashCode
      1. org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336)
      1 frame
    8. Spring Data Core
      ParentTypeAwareTypeInformation.hashCode
      1. org.springframework.data.util.ParentTypeAwareTypeInformation.hashCode(ParentTypeAwareTypeInformation.java:79)
      1 frame
    9. Spring Core
      ObjectUtils.nullSafeHashCode
      1. org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336)
      1 frame
    10. Spring Data Core
      ParentTypeAwareTypeInformation.hashCode
      1. org.springframework.data.util.ParentTypeAwareTypeInformation.hashCode(ParentTypeAwareTypeInformation.java:79)
      1 frame
    11. Spring Core
      ObjectUtils.nullSafeHashCode
      1. org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:336)
      1 frame