java.lang.StackOverflowError

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

    ForkJoinPool for RecursiveTask leads to StackOverflowError

    Stack Overflow | 5 months ago | Michael Andreev
    java.lang.StackOverflowError

    Root Cause Analysis

    1. java.lang.StackOverflowError

      No message provided

      at sun.reflect.GeneratedConstructorAccessor1.newInstance()
    2. Java RT
      ForkJoinTask.join
      1. sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source)
      2. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      3. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      4. java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:598)
      5. java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:677)
      6. java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:720)
      6 frames
    3. test
      ValueSumCounter.compute
      1. test.ValueSumCounter.compute(ValueSumCounter.java:34)
      2. test.ValueSumCounter.compute(ValueSumCounter.java:13)
      2 frames
    4. Java RT
      ForkJoinTask.join
      1. java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94)
      2. java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
      3. java.util.concurrent.ForkJoinTask.doJoin(ForkJoinTask.java:389)
      4. java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:719)
      4 frames
    5. test
      ValueSumCounter.compute
      1. test.ValueSumCounter.compute(ValueSumCounter.java:34)
      2. test.ValueSumCounter.compute(ValueSumCounter.java:13)
      2 frames
    6. Java RT
      ForkJoinTask.join
      1. java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94)
      2. java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
      3. java.util.concurrent.ForkJoinTask.doJoin(ForkJoinTask.java:389)
      4. java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:719)
      4 frames
    7. test
      ValueSumCounter.compute
      1. test.ValueSumCounter.compute(ValueSumCounter.java:34)
      2. test.ValueSumCounter.compute(ValueSumCounter.java:13)
      2 frames
    8. Java RT
      ForkJoinTask.join
      1. java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94)
      2. java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
      3. java.util.concurrent.ForkJoinTask.doJoin(ForkJoinTask.java:389)
      4. java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:719)
      4 frames
    9. test
      ValueSumCounter.compute
      1. test.ValueSumCounter.compute(ValueSumCounter.java:34)
      2. test.ValueSumCounter.compute(ValueSumCounter.java:13)
      2 frames
    10. Java RT
      ForkJoinTask.join
      1. java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94)
      2. java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
      3. java.util.concurrent.ForkJoinTask.doJoin(ForkJoinTask.java:389)
      4. java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:719)
      4 frames
    11. test
      ValueSumCounter.compute
      1. test.ValueSumCounter.compute(ValueSumCounter.java:34)
      2. test.ValueSumCounter.compute(ValueSumCounter.java:13)
      2 frames
    12. Java RT
      ForkJoinTask.join
      1. java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94)
      2. java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
      3. java.util.concurrent.ForkJoinPool.helpStealer(ForkJoinPool.java:1958)
      4. java.util.concurrent.ForkJoinPool.awaitJoin(ForkJoinPool.java:2047)
      5. java.util.concurrent.ForkJoinTask.doJoin(ForkJoinTask.java:390)
      6. java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:719)
      6 frames
    13. test
      ValueSumCounter.compute
      1. test.ValueSumCounter.compute(ValueSumCounter.java:34)
      2. test.ValueSumCounter.compute(ValueSumCounter.java:13)
      2 frames
    14. Java RT
      ForkJoinWorkerThread.run
      1. java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94)
      2. java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
      3. java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
      4. java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
      5. java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
      5 frames