Hi,
I use HXTT Access v5.2.160 (Access_JDBC30.jar) and when I try do a simple query I got a password error :
Exception in thread "main" java.sql.SQLException: The password is error!
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.sql.access.m.a(Unknown Source)
My code is :
Class.forName("com.hxtt.sql.access.AccessDriver");
Connection con = DriverManager.getConnection("jdbc:Access:/C:/test.mdb", "", "");
Statement stm = con.createStatement();
ResultSet rs = stm.executeQuery("SELECT COUNT(*) FROM PPERSON");
rs.next();
System.out.println(rs.getInt(1));
stm.close();
rs.close();
con.close();
Please note that this code is working with HXTT Access v5.2.050 !
Thank you.
|
Your test.mdb has a password? If not, please provide us your mdb sample.
|
None of our databases has a password.
Here there is a "test.mdb" where the problem occurs :
https://penelope827-my.sharepoint.com/personal/p_gervaise_penelope_fr/_layouts/15/guestaccess.aspx?guestaccesstoken=lpw9qUOwgO88Nx2VPE5jtbmxf3bCFy%2fWJJcz5oDF8Rw%3d&docid=046de274b93e640f8bcdb2bead70049c2&rev=1&expiration=2017-08-27T21%3a46%3a42.000Z
|
Thanks. Supported. Please download the latest package.
|
It works for the test database but for our real one (production database) it doesn't works !
I still got that Exception :
Exception in thread "main" java.sql.SQLException: The password is error!
at com.hxtt.b.ak.a(Unknown Source)
at com.hxtt.sql.access.m.a(Unknown Source)
Again we never use any password.
Please not again that your library version 5.2.050 is working as expected
with our production database. I don't know what you did in the last release (5.2.161) but there is again bad cases left.
I can't provide our production database for tests. Also I wan't to be sure that the error can't reappear in the futur with another database.
I don't know if it minds but if I compact our production database then your library is able to reach it (until when ?). Anyway we can't compact our production database because of heavy use. An when trying to PACK with HXTT it write that it fails.
|
I got a test case for the problem : we have that problem for 9 databases after testing 20 databases.
So the database :
https://penelope827-my.sharepoint.com/personal/p_gervaise_penelope_fr/_layouts/15/guestaccess.aspx?guestaccesstoken=WaEfssqyTQR7AEF%2b1gul8Hox23XWr2AG1UZ4M%2blAfZ0%3d&docid=01c0e27aaafe9461bb1038c12e3db3056&rev=1&expiration=2017-08-28T22%3a59%3a25.000Z
Tested with that code :
DriverManager.getConnection("jdbc:access:///d:/data/access/datapen2000_test_password_error.mdb").createStatement().executeQuery("SELECT COUNT(*) FROM employee");
And got :
Exception in thread "main" java.sql.SQLException: The password is error!
at com.hxtt.b.ak.a(Unknown Source)
[...]
|
Sorry. Supported now. Please download it.
|
It works.
Thank you for your prompt reply.
|