Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  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 DBF
insert error on a dbaseIV dbf table
Jeff Ferraro
2005-07-08 00:00:00
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] ExchangeManagerBean.java - 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
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
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




Google
 

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