| From: | Brian Ye <brian(dot)y(dot)ye(at)gmail(dot)com> |
|---|---|
| To: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Are these bugs? |
| Date: | 2021-08-06 18:54:25 |
| Message-ID: | CALJefFczQOu+cWbuPxEdAG4fJry_ChKtLZD+9R8WP5v5KYooKA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Dear Sirs,
I was trying to use postgresql jdbc. The downloaded version did not work
for me so I tried to build the project myself using Eclipse (the suggested
gradle build method gave me errors).
I have encountered several problems:
1) Download the source from jdbc.posgresql.org, this source does not have
the SSPIClient implementation (it only has the ISSPIClient interface).
2) Downloaded the source from github. This version does not have the souce
code for org.postgresql.util.DriverInfo.java. I copied it from the
downloaded file from step 1) above.
3) After adding all the missing external libraries (such as jna, waffle,
osgi...) it compiled successfully.
4) There are run time errors after testing the built library with a small
test program:
(4.1) If jna and jna-platform are of version 5.0.0 or newer, the
following line causes errors because no such a constructor exists:
SecBufferDesc continueToken = new SecBufferDesc(Sspi.SECBUFFER_TOKEN,
receivedToken);
Note: Verson 5.0.0 (or newer) has only one constructor SecBufferDesc().
(4.2) If jna and jna-platform are of older version (4.5.2),
SecBufferDesc does provide 3 different constructor, but the following code
causes errors:
Class.forName("waffle.windows.auth.impl.WindowsSecurityContextImpl");
This class references SspiUtil$ManagedSecBufferDesc, which is only
available from version 5.0.0 of jna-platform (or newer).
So basically the implementation of SSPIClient uses different JNA APIs from
incompatible versions.
Would you please take a look?
Thanks,
Brian Ye
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alan Stange | 2021-08-06 20:31:22 | question about sql comments |
| Previous Message | Klika David | 2021-08-06 17:07:13 | defaultRowFetchSize and no known snapshots error |