Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  Buy Now
  HXTT Cobol v3.0
  HXTT DBF v6.0
  HXTT Excel v5.0
  HXTT Paradox v6.0
  HXTT Text(CSV) v6.0
  HXTT XML v2.0
Offshore Outsourcing
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
Heng Xing Tian Tai Ltd. of Beijing City (abbr, HXTT)

Access 97 Error
Phil Casciola
2006-09-25 16:51:43.0
While programatically reading in a 25000 line ascii file and inserting into an Access 97 db with a prepared statement, I get the following error at row 18581. There is nothing special about this row, and in fact the data only differs from the rows around it by 1 or 2 characters. The odd part is, if I skip the first row it works ok, but if I skip the first 1000 rows it fails on a completely different row. This fails in 2.0.021 and 2.0.022, but worked ok in 2.0.002 which we were previously using. This also works ok for Access 2003, just not on Access 97.

Here are some of the rows around the one that fails:

A|106389|1|THE|PGDV3BX021 |17.01
A|106390|1|THE|PGDV3BX022 |17.01
A|106391|1|THE|PGDV3BX023 |17.01 <----This is the row that fails
A|106392|1|THE|PGDV3BX024 |17.01
A|106393|1|THE|PGDV3BX025 |17.01

And here is the stack trace:
Exception at row 18581 col 6 - java.sql.SQLException: java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at com.hxtt.b.p.a(Unknown Source)
at com.hxtt.sql.access.j.a(Unknown Source)
at Source)
at com.hxtt.sql.access.j.a(Unknown Source)
at com.hxtt.sql.access.j.a(Unknown Source)
at com.hxtt.sql.access.p.if(Unknown Source)
at com.hxtt.sql.access.u.a(Unknown Source)
at com.hxtt.sql.access.u.for(Unknown Source)
at com.hxtt.sql.access.z.a(Unknown Source)
at com.hxtt.sql.w.a(Unknown Source)
at Source)
at Source)
at com.hxtt.sql.db.a(Unknown Source)
at Source)
at Source)
at com.hxtt.sql.dd.char(Unknown Source)
at com.hxtt.sql.dd.executeUpdate(Unknown Source)

Re:Access 97 Error
HXTT Support
2006-09-26 10:22:36.0
Recurred and Fixed. It's a insert index issue. Please download the latest package.
Re:Access 97 Error
Philip Casciola
2006-09-26 11:09:50.0
Yes, that was it.

I just noticed that removing the index from that column fixed it as well with v2.0.23 and earlier. v2.0.024 works fine with the indexed column.

Thank you.

Search Key   Search by Last 50 Questions


Copyright © 1999-2017 Heng Xing Tian Tai Ltd. of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap