Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT Text(CSV)
StackOverflow on bulk insert
Carmen Rodriguez
2016-02-14 02:20:24.0
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
Re:StackOverflow on bulk insert
HXTT Support
2016-02-14 02:28:31.0
What's your jdbc url, sql, and insert code block?
Re:Re:StackOverflow on bulk insert
Carmen Rodriguez
2016-02-14 02:32:10.0
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
Re:Re:Re:StackOverflow on bulk insert
HXTT Support
2016-02-18 09:30:10.0
Failed to recur your issue, maybe is resulted by long line without EOL. Please download the latest package.
Re:Re:Re:Re:StackOverflow on bulk insert
Carmen Rodriguez
2016-02-19 01:44:32.0
I solved it by running the process with -Xss1024M

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap