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.
|
Recurred and Fixed. It's a insert index issue. Please download the latest package.
|
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.
|