java.lang.StackOverflowError

Jenkins JIRA | Daniel Spilker | 7 months ago
  1. 0

    [JIRA] [core] (JENKINS-34751) StackOverflowError in Groovy scripts

    Google Groups | 7 months ago | ma...@daniel-spilker.com (JIRA)
    java.lang.StackOverflowError
  2. 0

    Due to a regression in Groovy 2.4 ([GROOVY-7826|https://issues.apache.org/jira/browse/GROOVY-7826]) scripts using some of the core classes with complex generic type arguments (e.g. {{hudson.model.Run}} or {{hudson.model.Job}}) will cause a {{StackoverflowError}}. Run this script in Script Console to reproduce the problem: {code} def foo(hudson.model.Run run) {} {code} This affects Script Console, Pipeline, Job DSL, Groovy plugin (system Groovy script) and probably other plugins using the Groovy runtime provided by Jenkins core. {code} java.lang.StackOverflowError at java.lang.StringBuilder.append(StringBuilder.java:132) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178) at org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178) at org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178) at org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199) ... {code}

    Jenkins JIRA | 7 months ago | Daniel Spilker
    java.lang.StackOverflowError
  3. 0

    Due to a regression in Groovy 2.4 ([GROOVY-7826|https://issues.apache.org/jira/browse/GROOVY-7826]) scripts using some of the core classes with complex generic type arguments (e.g. {{hudson.model.Run}} or {{hudson.model.Job}}) will cause a {{StackoverflowError}}. Run this script in Script Console to reproduce the problem: {code} def foo(hudson.model.Run run) {} {code} This affects Script Console, Pipeline, Job DSL, Groovy plugin (system Groovy script) and probably other plugins using the Groovy runtime provided by Jenkins core. {code} java.lang.StackOverflowError at java.lang.StringBuilder.append(StringBuilder.java:132) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178) at org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178) at org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178) at org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199) ... {code}

    Jenkins JIRA | 7 months ago | Daniel Spilker
    java.lang.StackOverflowError
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    StackOverflow in XmppUtils

    GitHub | 3 years ago | oxtoacart
    java.lang.StackOverflowError
  6. 0

    can't load widgets containing long strings

    GitHub | 4 years ago | stevebhall
    java.lang.StackOverflowError

  1. serious2monkeys 1 times, last 2 months ago
3 unregistered visitors
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.lang.StringBuilder.append()
  2. Java RT
    StringBuilder.append
    1. java.lang.StringBuilder.append(StringBuilder.java:132)
    1 frame
  3. Groovy
    ClassNode.genericTypeAsString
    1. org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173)
    2. org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159)
    3. org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178)
    4. org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199)
    5. org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173)
    6. org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159)
    7. org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178)
    8. org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199)
    9. org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173)
    10. org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159)
    11. org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178)
    12. org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199)
    12 frames