java.lang.StackOverflowError

JIRA | Docs Collector User | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Hi I am using spring mongorepository, in that i am trying to fetch all records using public List<Appointment> findByPatient(User user); but it giving an error like org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for servlet application-context threw exception java.lang.StackOverflowError at java.util.TreeMap.keyIterator(TreeMap.java:1018) at java.util.TreeMap$KeySet.iterator(TreeMap.java:1031) at java.util.TreeSet.iterator(TreeSet.java:181) at java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1064) at java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1063) at com.mongodb.ClusterDescription.getServersByPredicate(ClusterDescription.java:205) at com.mongodb.ClusterDescription.getAny(ClusterDescription.java:127) at com.mongodb.AnyServerSelector.choose(AnyServerSelector.java:8) at com.mongodb.BaseCluster.getServer(BaseCluster.java:63) at com.mongodb.DBTCPConnector.getServer(DBTCPConnector.java:654) at com.mongodb.DBTCPConnector.access$300(DBTCPConnector.java:39) at com.mongodb.DBTCPConnector$MyPort.getConnection(DBTCPConnector.java:503) at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:451) at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:286) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:271) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66) at com.mongodb.DBCollection.findOne(DBCollection.java:869) at com.mongodb.DBCollection.findOne(DBCollection.java:843) at com.mongodb.DBCollection.findOne(DBCollection.java:801) at com.mongodb.DBCollection.findOne(DBCollection.java:381) at com.mongodb.DBCollection.findOne(DBCollection.java:366) at com.mongodb.DBRefBase.fetch(DBRefBase.java:68) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.readRef(MappingMongoConverter.java:1128) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.readCollectionOrArray(MappingMongoConverter.java:836) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.readValue(MappingMongoConverter.java:1113) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.access$100(MappingMongoConverter.java:77) at org.springframework.data.mongodb.core.convert.MappingMongoConverter$MongoDbPropertyValueProvider.getPropertyValue(MappingMongoConverter.java:1064) *Reporter*: nakul *E-mail*: [mailto:nakulypatil@gmail.com]

    JIRA | 2 years ago | Docs Collector User
    java.lang.StackOverflowError
  2. 0

    Hi I am using spring mongorepository, in that i am trying to fetch all records using public List<Appointment> findByPatient(User user); but it giving an error like org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for servlet application-context threw exception java.lang.StackOverflowError at java.util.TreeMap.keyIterator(TreeMap.java:1018) at java.util.TreeMap$KeySet.iterator(TreeMap.java:1031) at java.util.TreeSet.iterator(TreeSet.java:181) at java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1064) at java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1063) at com.mongodb.ClusterDescription.getServersByPredicate(ClusterDescription.java:205) at com.mongodb.ClusterDescription.getAny(ClusterDescription.java:127) at com.mongodb.AnyServerSelector.choose(AnyServerSelector.java:8) at com.mongodb.BaseCluster.getServer(BaseCluster.java:63) at com.mongodb.DBTCPConnector.getServer(DBTCPConnector.java:654) at com.mongodb.DBTCPConnector.access$300(DBTCPConnector.java:39) at com.mongodb.DBTCPConnector$MyPort.getConnection(DBTCPConnector.java:503) at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:451) at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:286) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:271) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66) at com.mongodb.DBCollection.findOne(DBCollection.java:869) at com.mongodb.DBCollection.findOne(DBCollection.java:843) at com.mongodb.DBCollection.findOne(DBCollection.java:801) at com.mongodb.DBCollection.findOne(DBCollection.java:381) at com.mongodb.DBCollection.findOne(DBCollection.java:366) at com.mongodb.DBRefBase.fetch(DBRefBase.java:68) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.readRef(MappingMongoConverter.java:1128) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.readCollectionOrArray(MappingMongoConverter.java:836) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.readValue(MappingMongoConverter.java:1113) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.access$100(MappingMongoConverter.java:77) at org.springframework.data.mongodb.core.convert.MappingMongoConverter$MongoDbPropertyValueProvider.getPropertyValue(MappingMongoConverter.java:1064) *Reporter*: nakul *E-mail*: [mailto:nakulypatil@gmail.com]

    JIRA | 2 years ago | Docs Collector User
    java.lang.StackOverflowError
  3. 0

    Crash

    GitHub | 3 years ago | Patus
    java.lang.StackOverflowError
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.StackOverflowError

      No message provided

      at java.util.TreeMap.keyIterator()
    2. Java RT
      Collections$UnmodifiableCollection.iterator
      1. java.util.TreeMap.keyIterator(TreeMap.java:1018)
      2. java.util.TreeMap$KeySet.iterator(TreeMap.java:1031)
      3. java.util.TreeSet.iterator(TreeSet.java:181)
      4. java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1064)
      5. java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1063)
      5 frames
    3. MongoDB Java Driver
      DBRefBase.fetch
      1. com.mongodb.ClusterDescription.getServersByPredicate(ClusterDescription.java:205)
      2. com.mongodb.ClusterDescription.getAny(ClusterDescription.java:127)
      3. com.mongodb.AnyServerSelector.choose(AnyServerSelector.java:8)
      4. com.mongodb.BaseCluster.getServer(BaseCluster.java:63)
      5. com.mongodb.DBTCPConnector.getServer(DBTCPConnector.java:654)
      6. com.mongodb.DBTCPConnector.access$300(DBTCPConnector.java:39)
      7. com.mongodb.DBTCPConnector$MyPort.getConnection(DBTCPConnector.java:503)
      8. com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:451)
      9. com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:286)
      10. com.mongodb.DBTCPConnector.call(DBTCPConnector.java:271)
      11. com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84)
      12. com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66)
      13. com.mongodb.DBCollection.findOne(DBCollection.java:869)
      14. com.mongodb.DBCollection.findOne(DBCollection.java:843)
      15. com.mongodb.DBCollection.findOne(DBCollection.java:801)
      16. com.mongodb.DBCollection.findOne(DBCollection.java:381)
      17. com.mongodb.DBCollection.findOne(DBCollection.java:366)
      18. com.mongodb.DBRefBase.fetch(DBRefBase.java:68)
      18 frames
    4. Spring Data MongoDB - Core
      MappingMongoConverter$MongoDbPropertyValueProvider.getPropertyValue
      1. org.springframework.data.mongodb.core.convert.MappingMongoConverter.readRef(MappingMongoConverter.java:1128)
      2. org.springframework.data.mongodb.core.convert.MappingMongoConverter.readCollectionOrArray(MappingMongoConverter.java:836)
      3. org.springframework.data.mongodb.core.convert.MappingMongoConverter.readValue(MappingMongoConverter.java:1113)
      4. org.springframework.data.mongodb.core.convert.MappingMongoConverter.access$100(MappingMongoConverter.java:77)
      5. org.springframework.data.mongodb.core.convert.MappingMongoConverter$MongoDbPropertyValueProvider.getPropertyValue(MappingMongoConverter.java:1064)
      5 frames