Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT DBF
java.lang.VerifyError - test case attached
Andrei Postolache
2006-05-10 06:09:12.0
Hi,

I'm using the dbf and access drivers together, dbf version 2.2.017 and access version 1.1.0.32. See full manifest.mf files at the end.

If I have both drivers in the class path and run the sample code below, I get

Exception in thread "main" java.lang.VerifyError: (class: com/hxtt/sql/dbf/Embed
dedDriver, method: connect signature: (Ljava/lang/String;Ljava/util/Properties;)
Ljava/sql/Connection;) Incompatible argument to function
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.hxtt.global.SQLState.getConnection(Unknown Source)
at com.hxtt.sql.HxttDriver.if(Unknown Source)
at com.hxtt.sql.HxttDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at ConnectToFoxPro.selectTopData(ConnectToFoxPro.java:53)
at ConnectToFoxPro.main(ConnectToFoxPro.java:32)

I I have only the dbf driver, it works.


Sample code:

public static void main(String[] args) throws ClassNotFoundException, SQLException {
Class.forName("com.hxtt.sql.dbf.DBFDriver");

String tableName = "sample.dbf";
String sqlQuery = "select * from " + tableName;

String url = "jdbc:dbf:/e:\\work\\projects\\foxpro\\FoxproODBC\\";

ResultSet resultSet = DriverManager.getConnection(url).createStatement().executeQuery(sqlQuery);
System.out.println("Column Count : " + resultSet.getMetaData().getColumnCount());
}


The java command is like: java -cp Access_JDBC30.jar;DBF_JDBC30.jar;classes\ Main

Thank you in advance,
Andrei


Manifest MF files:

Manifest-Version: 1.0
Created-By: HXTT Version Robot
Main-Class: com.hxtt.sql.admin.Admin

Name: com/hxtt/sql/dbf/
Specification-Title: HXTT DBF JDBC 3.0 Package For Evaluation Purpose
Implementation-Title: com.hxtt.sql.dbf
Specification-Version: 2.2.017 on April 07, 2006
Specification-Vendor: Hongxin Technology & Trade Ltd.
Comment: JDBC 3.0 Package for Xbase database
Implementation-Version: 2.2.017 on April 07, 2006
Implementation-Vendor: Hongxin Technology & Trade Ltd.
Implementation-URL: http://www.hxtt.com/dbf.html

Name: com/hxtt/sql/admin/
Specification-Title: HXTT Database Admin
Implementation-Title: com.hxtt.sql.admin
Specification-Vendor: Hongxin Technology & Trade Ltd.
Specification-Version: 0.5 on April 07, 2006
Comment: HXTT Database Admin
Implementation-Version: 0.5 on April 07, 2006
Implementation-Vendor: Hongxin Technology & Trade Ltd.
Implementation-URL: http://www.hxtt.com/dbf/dbadmin.html

---------------------------------

Manifest-Version: 1.0
Created-By: HXTT Version Robot
Main-Class: com.hxtt.sql.admin.Admin

Name: com/hxtt/sql/admin/
Specification-Title: HXTT Database Admin
Implementation-Title: com.hxtt.sql.admin
Specification-Vendor: Hongxin Technology & Trade Ltd.
Specification-Version: 0.5 on May 08, 2006
Comment: HXTT Database Admin
Implementation-Version: 0.5 on May 08, 2006
Implementation-Vendor: Hongxin Technology & Trade Ltd.
Implementation-URL: http://www.hxtt.com/dbf/dbadmin.html

Name: com/hxtt/sql/access/
Specification-Title: HXTT Access JDBC 3.0 Package
Implementation-Title: com.hxtt.sql.access
Specification-Version: 1.1.032 on May 08, 2006
Specification-Vendor: Hongxin Technology & Trade Ltd.
Comment: JDBC 3.0 Package for Microsoft Access
Implementation-Version: 1.1.032 on May 08, 2006
Implementation-Vendor: Hongxin Technology & Trade Ltd.
Implementation-URL: http://www.hxtt.com/access.html

Re:java.lang.VerifyError - test case attached
Andrei Postolache
2006-05-10 06:09:57.0
Forgot to mention, java version is

java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
Re:Re:java.lang.VerifyError - test case attached
HXTT Support
2006-05-10 06:22:04.0
>Specification-Version: 2.2.017 on April 07, 2006
>Specification-Version: 1.1.032 on May 08, 2006
You should use DBF 2.2.031 on May 08, 2006 too.

You can visit hxtt site, and download the latest packages: DBF 2.2.032 on May 10, 2006 an Access 1.1.033 on May 10, 2006.
Re:Re:Re:java.lang.VerifyError - test case attached
Andrei Postolache
2006-05-10 06:59:38.0
Thx a lot, that did it. It works now.

Andrei

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap