Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.042
  HXTT Cobol 5.0.042
  HXTT DBF 7.1.042
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel 6.1.045
  HXTT Json 1.0.014
  HXTT Paradox 7.1.042
  HXTT PDF 2.0.042
  HXTT Text(CSV) 7.1.042
  HXTT Word 1.1.042
  HXTT XML 4.0.043
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.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] 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.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




Google
 

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