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.

  • [JIRA] [core] (JENKINS-34751) StackOverflowError in Groovy scripts
    via by ma...@daniel-spilker.com (JIRA),
  • 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}
    via by Daniel Spilker,
  • 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}
    via by Daniel Spilker,
  • StackOverflow in XmppUtils
    via GitHub by oxtoacart
    ,
  • Stackoverflow AndResultSet
    via GitHub by pveentjer
    ,
    • 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)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    PilleoPilleo
    1 times, last one,
    serious2monkeysserious2monkeys
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    5 more bugmates