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 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
Error while using DBF_JDBC40.jar library
Frank Rothaermel
2011-11-07 07:12:38.0
Dear Sir or Madam,

I programmed a Java Desktop Applikation (JDK 1.6) which reads Data from several Databases via JDBC.
The App contains several libraries (amongst others the Paradox_JDBC40.jar).
Since I added the DBF_JDBC40.jar library to the project the following error is given after running the following code:


public static Connection getConnection ()
{
if (con == null)
{
try
{
Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();
String url = "jdbc:dbf:/C:\\Users\\CMX\\Desktop\\DoITvhsUnterland\\doit"; // Path of the DBF-Files
System.out.println("URL: " + url);
con = DriverManager.getConnection(url);
}
catch (SQLException e)
{
System.out.println("Connection failed!");
e.printStackTrace();
}
catch (Exception e)
{
System.out.println("No Connection!");
e.printStackTrace();
}
}
return con;
}


Exception in thread "main" java.lang.IllegalAccessError: tried to access class com.hxtt.sql.du from class com.hxtt.sql.dbf.EmbeddedDriver
at com.hxtt.sql.dbf.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:582)
at java.sql.DriverManager.getConnection(DriverManager.java:207)
at vhswebservice.doit.Doit.getConnection(Doit.java:249)
at vhswebservice.doit.Doit.getKurse(Doit.java:407)
at vhswebservice.doit.Doit.getDoit(Doit.java:296)
at DOITTEST.main(DOITTEST.java:36)
Java Result: 1

(DOIT is the package with the getConnection-function)

The strange thing is, when I copy the Projekt (same Settings/Libraries...) the getConnection() works fine without any error.

Can you tell me how to fix this?

Best regards,

Frank Rothaermel
Re:Error while using DBF_JDBC40.jar library
HXTT Support
2011-11-07 18:52:45.0
>Can you tell me how to fix this?
Please download all *JDBC*.jar on the same day to avoid the mixture of older and newer package.
Re:Re:Error while using DBF_JDBC40.jar library
Frank Rothaermel
2011-11-07 23:54:24.0
I've already tried DBF_JDBC20.jar to DBF_JDBC40.jar (even the evaluation versions).
After upgrading to Java 1.7 I tried the DBF_JDBC41.jar. The same error.
(Registered Email :info@cmxkonzepte.de)
Re:Re:Re:Error while using DBF_JDBC40.jar library
HXTT Support
2011-11-08 00:44:09.0
>The App contains several libraries (amongst others the Paradox_JDBC40.jar).
You should use the latest Paradox_JDBC40.jar and DBF_JDBC40.jar together. For JDK1.7, you can use the latest Paradox_JDBC41.jar and DBF_JDBC41.jar together
Re:Re:Re:Re:Error while using DBF_JDBC40.jar library
Frank Rothaermel
2011-11-08 01:02:31.0
> The strange thing is, when I copy the Projekt (same Settings/Libraries...) the getConnection() works fine without any error.

It is necessary to use the DBF-Library in the not copied project.
Can you tell me what this error means or why it appears or can you give me a fix / workaround to it? I can't understand why this error occurs in the not copied project and not in the copied project.
Re:Re:Re:Re:Re:Error while using DBF_JDBC40.jar library
HXTT Support
2011-11-08 01:06:38.0
Please check your classpath, you should make sure those files from HXTT are released on the same day, since they shares some common classes. So if you download the latest files to replace all of your old files, that issue should disappear.
Re:Re:Re:Re:Re:Re:Error while using DBF_JDBC40.jar library
Frank Rothaermel
2011-11-08 01:19:10.0
Thank you,

It works!
I have replaced the Paradox_JDBC40.jar (2010-6-29) whith the new one (2011-11-04) and the error disapperead!
Re:Re:Re:Re:Re:Re:Re:Error while using DBF_JDBC40.jar library
HXTT Support
2011-11-08 01:47:07.0
The latest version provides just Regular Expresson Functions

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