Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.253
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol 5.0.252
  HXTT DBF 7.1.253
  HXTT Excel 6.1.256
  HXTT Json 1.0.224
  HXTT Paradox 7.1.252
  HXTT PDF 2.0.252
  HXTT Text(CSV) 7.1.252
  HXTT Word 1.1.252
  HXTT XML 4.0.253
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 ACCESS
VerifyError when using hxtt acess and dbf together on some JVMs
Andrei Postolache
2006-03-29 22:53:25
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
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
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
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
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
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
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
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
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
Passted all tests with JDK1.5.0_03-b07 on Win xp sp2 too.
Figured it out
Andrei
2006-04-18 03:56:51
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
 

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