Stack Level Too Deep


#1

Hello!

I get a “Stack Level Too Deep”-Error with JRuby when I spawn a thread
containing code which accesses the database to update a row. When I run
this code sequentielly (not in a thread), it works fine.

The database-connection is a JDBC-connection.

The code looks like this:

@t = Thread.new do
begin
Java::checkout.Files.main main_args.to_java :String

        # critical code line
        @version.update_attribute(:status_checkout, 2)
      rescue StandardError => e
        puts "[svnkit] "+e
        @version.update_attribute(:exception_checkout, e)
      end
    end

    @t.run

Can anyone help me please?