java.lang.StackOverflowError

Google Groups | Unknown author | 11 months 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

    Crawling error returned non ok status:500

    Google Groups | 11 months ago | Unknown author
    java.lang.StackOverflowError
  2. 0

    I first created an issue at spring-data-mongo https://jira.springsource.org/browse/DATAMONGO-488 and it appears that the issue come from the mongo Java Driver. Following my test code : {code} Mongo mongo = new Mongo("localhost" , 27017); DB db = mongo.getDB("test"); DBCollection sites = db.getCollection("sites"); DBCollection users = db.getCollection("users"); BasicDBObject site = new BasicDBObject(); ObjectId siteId = new ObjectId(); site.put("_id", site); site.put("name", "site"); WriteResult result = sites.insert(site); BasicDBObject user = new BasicDBObject(); ObjectId userId = new ObjectId(); user.put("_id", userId); user.put("name", "user"); user.put("site", new DBRef(db, site)); // throws a StackoverflowError {code} Is this a proper use of DBRef or does cycle reference not allowed ? The incriminated stacktrace : {code} java.lang.StackOverflowError at java.util.LinkedHashMap$LinkedHashIterator.<init>(LinkedHashMap.java:362) at java.util.LinkedHashMap$LinkedHashIterator.<init>(LinkedHashMap.java:362) at java.util.LinkedHashMap$KeyIterator.<init>(LinkedHashMap.java:400) at java.util.LinkedHashMap$KeyIterator.<init>(LinkedHashMap.java:400) at java.util.LinkedHashMap.newKeyIterator(LinkedHashMap.java:413) at java.util.HashMap$KeySet.iterator(HashMap.java:887) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1170) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1174) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1174) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1174) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1174) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1174) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1174) ... {code}

    JIRA | 5 years ago | Ludovic PRAUD
    java.lang.StackOverflowError
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Strange Error

    GitHub | 5 years ago | Nicklander
    java.lang.StackOverflowError
  5. 0

    GitHub comment 7#6225087

    GitHub | 5 years ago | Mtihc
    java.lang.StackOverflowError

    Root Cause Analysis

    1. java.lang.StackOverflowError

      No message provided

      at java.util.LinkedHashMap$KeyIterator.<init>()
    2. Java RT
      HashMap$KeySet.iterator
      1. java.util.LinkedHashMap$KeyIterator.<init>(LinkedHashMap.java:404)
      2. java.util.LinkedHashMap$KeyIterator.<init>(LinkedHashMap.java:404)
      3. java.util.LinkedHashMap.newKeyIterator(LinkedHashMap.java:417)
      4. java.util.HashMap$KeySet.iterator(HashMap.java:1002)
      4 frames
    3. Apache PDFBox
      PDResources.getXObjects
      1. org.apache.pdfbox.pdmodel.PDResources.getXObjects(PDResources.java:252)
      1 frame
    4. Apache Tika parsers
      PDF2XHTML.extractImages
      1. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:317)
      2. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      3. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      4. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      5. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      6. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      7. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      8. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      9. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      10. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      11. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      12. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      13. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      14. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      15. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      16. org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
      16 frames