1

I am using Derby DB and I am executing simple INSERT statement, well there is around 9000 of rows to be filled in. During that I get the error:

ERROR XJ001: Java exception: ': java.lang.StackOverflowError'

Can anyone help me with some tips please?

Thanks

Remi

lcnicolau
  • 3,252
  • 4
  • 36
  • 53

1 Answers1

0

I had the same problem and I find three different ways to solve it:

  • Use an INSERT command per row.
  • Split the rows in several INSERT commands with multiple (but less) rows in VALUES clause.
  • Use the -Xss option to set the thread stack size of the Java Virtual Machine. See here and here for better understanding about this option.
lcnicolau
  • 3,252
  • 4
  • 36
  • 53