Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v2.1
  HXTT DBF v5.2
  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 ACCESS
VerifyError when using hxtt acess and dbf together on some JVMs
Andrei Postolache
2006-03-29 22:53:25.0
Hi,
I have a sample application that contains one class with the main method that has these lines of code inside, nothing more:


Class.forName("com.hxtt.sql.access.AccessDriver");
DriverManager.getConnection("jdbc:access:/e:/work/projects/files/db1.mdb");

On some environments, for example on win xp sp2, with Sun's jdk "Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)", when I run this application I get

Exception in thread "main" java.lang.VerifyError: (class: com/hxtt/sql/access/l, method: signature: (Lcom/hxtt/concurrent/v;Ljava/util/Properties;Lcom/hxtt/sql/common/o;)V) Incompatible argument to function
at com.hxtt.sql.access.EmbeddedDriver.connect(Unknown Source)
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 Main.getHXTTConnection(Main.java:32)
at Main.main(Main.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)



Note that this happens ONLY if I have both Access_JDBC30.jar and DBF_JDBC30.jar in the classpath. And yes, as you can see, I am not using the dbf driver, but having it in the classpath makes the access one throw this error.

Any kind of assistance would be of great help. We have the dbf driver and we are planning on getting the access one, but we need to use them together so this is a roadblock for us.

Let me know if you need more details.

Thx,
Andrei




Re:VerifyError when using hxtt acess and dbf together on some JVMs
HXTT Support
2006-03-29 22:57:38.0
1st solution: Download and update DBF package and Access package at the same time.
2nd solution: Download and update Common Package, DBF Core package, and Access Core package at the same time.

Re:Re:VerifyError when using hxtt acess and dbf together on some JVMs
Andrei Postolache
2006-03-29 23:07:30.0
Unfortunately that only changes the error to

Exception in thread "main" java.lang.NoSuchMethodError: com.hxtt.sql.cv.a(ILjava/lang/String;Ljava/util/Properties;)Lcom/hxtt/concurrent/v;
at com.hxtt.sql.access.EmbeddedDriver.connect(Unknown Source)
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 Main.getHXTTConnection(Main.java:32)
at Main.main(Main.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)


Thx,
Andrei
Re:Re:Re:VerifyError when using hxtt acess and dbf together on some JVMs
HXTT Supports
2006-03-29 23:19:09.0
Please check and make sure all of your package files have the same date. Maybe one of your package is an older package.
Re:Re:Re:Re:VerifyError when using hxtt acess and dbf together on some JVMs
Andrei Postolache
2006-03-29 23:37:46.0
They have the same date, 2006-03-29. The files names are DBF_JDBC30.jar Access_JDBC30.jar.

Thx,
Andrei

Re:Re:Re:Re:Re:VerifyError when using hxtt acess and dbf together on some JVMs
Hxtt Support
2006-03-30 00:14:20.0
Passed all tests with java version "1.5.0_05":

/jdk1.5.0/bin/java -version
/jdk1.5.0/bin/java -cp DBF_JDBC30.jar;Access_JDBC30.jar;./ testAccess

/jdk1.5.0/bin/java -cp Access_JDBC30.jar;DBF_JDBC30.jar;./ testAccess


/jdk1.5.0/bin/java -cp HXTT_Common_JDBC30.jar;Access_Core_JDBC30.jar;DBF_Core_JDBC30.jar;./ testAccess

/jdk1.5.0/bin/java -cp Access_Core_JDBC30.jar;HXTT_Common_JDBC30.jar;DBF_Core_JDBC30.jar;./ testAccess

/jdk1.5.0/bin/java -cp DBF_Core_JDBC30.jar;Access_Core_JDBC30.jar;HXTT_Common_JDBC30.jar;./ testAccess

Re:Re:Re:Re:Re:Re:VerifyError when using hxtt acess and dbf together on some JVMs
Hxtt Support
2006-03-30 00:56:21.0
Passed all tests with JDK1.5.0_03-b07 on Windows 2000 too. Please check your settings.
Re:Re:Re:Re:Re:Re:Re:VerifyError when using hxtt acess and dbf together on some JVMs
Andrei Postolache
2006-03-30 01:04:29.0
There aren't many settings I can look at :(

Btw, I can duplicate this on a number of machines, though not all of them. I haven't yet identified the rule by which to make this happen, except that it happens only when I have both the dbf and the access jar in the classpath.

Thx,
Andrei
Re:Re:Re:Re:Re:Re:Re:Re:VerifyError when using hxtt acess and dbf together on some JVMs
HXTT Support
2006-03-30 01:11:33.0
Please paste your command. I'm still thinking that maybe you're using an older dbf or access package although you have just download the latest package.
Re:Re:Re:Re:Re:Re:Re:Re:VerifyError when using hxtt acess and dbf together on some JVMs
HXTT Support
2006-03-30 02:21:36.0
Passted all tests with JDK1.5.0_03-b07 on Win xp sp2 too.
Figured it out
Andrei
2006-04-18 03:56:51.0
It was our (silly silly) mistake. We had more versions of the access driver in our classpath.

Thank you very much for the outstanding support you've offered.


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