Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  HXTT Cobol v3.0
  HXTT DBF v6.0
  Buy Now
  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)

insert error on a dbaseIV dbf table
Jeff Ferraro
2005-07-08 00:00:00.0
I am performing an insert on a dbaseIV dbf table (SORMAS.DBF) and I keep getting the following exception thrown at the point of the ps.executeUpdate(). Code snipit is below... Any ideas ???

Elapsed Time (2595615 ms): [ERROR] - java.sql.SQLException: java.lang.ArrayIndexOutOfBoundsException: 891507

private void insertOnSORMASTable(ExchangeOrderDataObj edo)
PreparedStatement ps = null;
Connection dbfConn = null;
try {
dbfConn = DriverManager.getConnection(Constant.DBF_PROVIDER_URL);
ps = dbfConn.prepareStatement("insert into SORMAS (ACCT_NUM, UNITNO, INVMODELNO, MINVPONO, MINVRONO, VIN) values (?, ?, ?, ?, ?, ?)");
ps.setString(1, edo.getDealerCode());
ps.setBigDecimal(2, new BigDecimal(edo.getRANumber()));
ps.setString(3, edo.getPartNumber());
ps.setString(4, edo.getPONumber());
ps.setString(5, edo.getRONumber());
ps.setString(6, edo.getVIN());
if (ps.executeUpdate() != 1)
throw new SQLException("Insert failed on SORMAS table");
Re:Software Engineer
Jeff Ferraro
2005-07-08 00:00:00.0
The dbf file has an associated MDX file which when I delete from the directory seems to work fine. Does your product support MDX files ?
Re:Re:Software Engineer
HXTT Support
2005-07-09 00:00:00.0
HXTT DBF supports MDX files. You can try "REINDEX ALL ON SORMAS" to rebuild your corrupted MDX files if you hasn't deleteD that SORMAS.MDX file, or restore your SORMAS.MDX file from other place. Then try your code, and that ArrayIndexOutOfBoundsException should disappear. If your error exists still, just let us know.

Search Key   Search by Last 50 Questions


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