Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.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 Lab of Xi'an City (abbr, HXTT)

HXTT ACCESS
Access 97 Error
Phil Casciola
2006-09-25 16:51:43
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 com.hxtt.sql.access.j.int(Unknown 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 com.hxtt.sql.by.for(Unknown Source)
at com.hxtt.sql.bs.int(Unknown Source)
at com.hxtt.sql.db.a(Unknown Source)
at com.hxtt.sql.bl.a(Unknown Source)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.dd.char(Unknown Source)
at com.hxtt.sql.dd.executeUpdate(Unknown Source)

Thanks.
Re:Access 97 Error
HXTT Support
2006-09-26 10:22:36
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
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




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap