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.

  • Timeline filter implementation fills up the stack due to it's recursive implementation. The implementation, since it's recursive, just fills up the call stack, to clean up filtered elements from memory only _after_ recursion ends. With feeds having a lot to filter out, this leads to OOM. Example stack trace: {noformat} INFO | jvm 1 | 2010/11/24 19:43:22.806 | 2010-11-24 19:43:22 ERROR [-473546514-2151] - o.s.n.r.NexusApplic~ - Unhandled exception or error intercepted INFO | jvm 1 | 2010/11/24 19:43:22.807 | java.lang.StackOverflowError INFO | jvm 1 | 2010/11/24 19:43:22.807 | at java.text.DigitList.getStringBuffer(DigitList.java:681) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at java.text.DigitList.getLong(DigitList.java:172) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at java.text.DecimalFormat.parse(DecimalFormat.java:1298) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1589) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1312) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at java.text.DateFormat.parse(DateFormat.java:335) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.apache.lucene.document.DateTools.stringToDate(DateTools.java:179) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.apache.lucene.document.DateTools.stringToTime(DateTools.java:142) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.buildData(DefaultTimelineIndexer.java:454) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:416) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:420) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:420) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:420) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:420) {noformat}
    via by Tamás Cservenák,
  • Timeline filter implementation fills up the stack due to it's recursive implementation. The implementation, since it's recursive, just fills up the call stack, to clean up filtered elements from memory only _after_ recursion ends. With feeds having a lot to filter out, this leads to OOM. Example stack trace: {noformat} INFO | jvm 1 | 2010/11/24 19:43:22.806 | 2010-11-24 19:43:22 ERROR [-473546514-2151] - o.s.n.r.NexusApplic~ - Unhandled exception or error intercepted INFO | jvm 1 | 2010/11/24 19:43:22.807 | java.lang.StackOverflowError INFO | jvm 1 | 2010/11/24 19:43:22.807 | at java.text.DigitList.getStringBuffer(DigitList.java:681) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at java.text.DigitList.getLong(DigitList.java:172) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at java.text.DecimalFormat.parse(DecimalFormat.java:1298) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1589) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1312) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at java.text.DateFormat.parse(DateFormat.java:335) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.apache.lucene.document.DateTools.stringToDate(DateTools.java:179) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.apache.lucene.document.DateTools.stringToTime(DateTools.java:142) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.buildData(DefaultTimelineIndexer.java:454) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:416) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:420) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:420) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:420) INFO | jvm 1 | 2010/11/24 19:43:22.807 | at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:420) {noformat}
    via by Tamás Cservenák,
    • java.lang.StackOverflowError at java.text.DigitList.getStringBuffer(DigitList.java:681) at java.text.DigitList.getLong(DigitList.java:172) at java.text.DecimalFormat.parse(DecimalFormat.java:1298) at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1589) at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1312) at java.text.DateFormat.parse(DateFormat.java:335) at org.apache.lucene.document.DateTools.stringToDate(DateTools.java:179) at org.apache.lucene.document.DateTools.stringToTime(DateTools.java:142) at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.buildData(DefaultTimelineIndexer.java:454) at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:416) at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:420) at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:420) at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:420) at org.sonatype.timeline.DefaultTimelineIndexer$IndexerTimelineResult.fetchNextRecord(DefaultTimelineIndexer.java:420)

    Users with the same issue

    marcbouvierdavmarcbouvierdav
    1 times, last one,