raise expects the stacktrace to be an array.

It worked with Strings for most ruby version but not for jRuby.