Thank you Eric.
1. Increasing -Xss from 1m to 10m and 100m did not help
2. Breaking down the tests into separate one (that means writing separate "should" cases instead of all tests into just one "should" statement) did not help
3. All in all, I have around 140 calls of the "should" statement which itself has around 5 calls of the "in"-statement.
To avoid duplicate code, I use helper methods like:
class MyTest extends Specification {
sequential
helpMethod("a")
helpMethod("b")
helpMethod("c")
def helpMethod(...) {
innerHelpMethod(1)
innerHelpMethod(2)
innerHelpMethod(3)
....
}
def innerHelpMethod(...) {
"..." should {
"... " in {
...
}
}
}
}
Could the sequential-statement or the help methods cause the problem ?
4. I use Intellij IDEA, where I can only see the last piece in the error stack output. Is it possible to view the whole output ? Maybe one can see what triggers the problem.
5. I would like to give you more information, but unfortunately I can not post my original tests here because of company restrictions. And I can not reduce or isolate the problem to a smaller one. The error appears when I start all tests, and disappears when I only start a part of the tests (which part is not relevant, all parts for itself run through successfull).
Greetings, John