java.lang.StackOverflowError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Crawling error returned non ok status:500
    via by Unknown author,
  • 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}
    via by Ludovic PRAUD,
  • Strange Error
    via GitHub by Nicklander
    ,
  • GitHub comment 7#6225087
    via GitHub by Mtihc
    ,
    • java.lang.StackOverflowError at org.apache.solr.servlet.HttpSolrCall.sendError(HttpSolrCall.java:593) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:465) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:227) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:196) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:497) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.StackOverflowError at java.util.LinkedHashMap$KeyIterator.<init>(LinkedHashMap.java:404) at java.util.LinkedHashMap$KeyIterator.<init>(LinkedHashMap.java:404) at java.util.LinkedHashMap.newKeyIterator(LinkedHashMap.java:417) at java.util.HashMap$KeySet.iterator(HashMap.java:1002) at org.apache.pdfbox.pdmodel.PDResources.getXObjects(PDResources.java:252) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:317) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326) at org.apache.tika.parser.pdf.PDF2XHTML.extractImages(PDF2XHTML.java:326)
    No Bugmate found.