-
Notifications
You must be signed in to change notification settings - Fork 819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
42.4.1 JDK18 GSS compat getCurrentSubject WrongMethodTypeException #2588
Comments
do you happen to have the rest of the stacktrace ? |
what is CRDB ? |
Sadly due to work policies I cannot share direct
CockroachDB so pgwire 3.0 I think? |
Well I'd like to know which method is causing the problem |
Reflective call to this method |
ah, yes, so we can change invokeExact to invoke to remove the reference. |
OK, removed direct reference. Can you test one more time, if it works I will merge and release ASAP |
Latest works! Thanks for the quick turnaround, would have contributed code personally but hands tied by work policies |
I've released 42.4.2
Thanks for your help.
Dave Cramer
…On Tue, 16 Aug 2022 at 09:48, Robert Wilson ***@***.***> wrote:
Latest works!
Thanks for the quick turnaround, would have contributed code personally
but hands tied by work policies
—
Reply to this email directly, view it on GitHub
<#2588 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADDH5V5Z2DS4H47PBJZJA3VZOL2BANCNFSM56MCKTCQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Tested release, works wonderfully :) Closing Issue |
Again, thanks so much for your assistance in this matter. GSS is one of the harder things to automate tests for |
Please read https://stackoverflow.com/help/minimal-reproducible-example
Describe the issue
New compatibility reflection released as part of 42.4.1 breaks for pre JDK18 versions due to a casting error #2535
MakeGSS.java line 104-106
Driver Version?
42.4.1
Java Version?
11
OS Version?
Windows Server 2016
PostgreSQL Version?
CRDB 21.1.13
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
Should connect to DB using GSSAPI Auth
Throws exception
org.postgresql.util.PSQLException :GSS Authentication failed
at org.postgresql.gss.MakeGSS.authenticate (MakeGSS.java:173
Caused by: java.lang.invoke.WrongMethodTypeException: expected ()Access control context but found ()Object
The text was updated successfully, but these errors were encountered: