I'm trying to bulk insert data in a CSV database. After around 20 minutes (with 20000 registers already inserted), the driver throws the following exception:
Exception in thread "Thread-15" java.lang.StackOverflowError
at com.hxtt.concurrent.t.void(Unknown Source)
at com.hxtt.concurrent.bi.byte(Unknown Source)
at com.hxtt.concurrent.bi.byte(Unknown Source)
at com.hxtt.concurrent.bi.d(Unknown Source)
at com.hxtt.sql.text.b.else(Unknown Source)
at com.hxtt.sql.text.b.a(Unknown Source)
at com.hxtt.sql.text.b.a(Unknown Source)
at com.hxtt.sql.text.b.a(Unknown Source)
at com.hxtt.sql.text.b.a(Unknown Source)
at com.hxtt.sql.text.b.a(Unknown Source)
at com.hxtt.sql.text.b.a(Unknown Source)
at com.hxtt.sql.text.b.a(Unknown Source)
Is there anyway to solve it? I need to insert millions of registers
Thanks in advance.
Regards,
Carmen
|
What's your jdbc url, sql, and insert code block?
|
My jdbc url is jdbc:csv:///$csv{csvfile.outputFolder}/life/
I'm using Hibernate so what I do is just session.persist(alert);
This generates lots of inserts, as this 'alert' object has multiple cascade relationships.
I'm repeating this process thousands of times
|
Failed to recur your issue, maybe is resulted by long line without EOL. Please download the latest package.
|
I solved it by running the process with -Xss1024M
|