-
Notifications
You must be signed in to change notification settings - Fork 428
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
JDK 23 support - UnsupportedOperationException: getSubject is supported only if a security manager is allowed #2524
Comments
Quick follow up - it has been proposed that the workaround fix stops working already in the next version (jdk 24): |
Hi, @lpandzic we are aware of the issue and we are working on it |
workaround by adding jvm param: |
pyspark failed due to this error as well:
|
This is happening because the SecurityManager is deprecated in the later versions of JDK. As mentioned please use the param |
Not sure what to make of the comment
followed by many later with the workaround that I linked before already. Is someone working on implementing an actual long-term fix for this issue? But just to make sure everybody is aware of the other part of my original post since now it has been confirmed - the workaround WILL NOT WORK on jdk 24: Important section from the linked JEP in that mail:
Now to catch early the comments that 24 is a non LTS - there's another JEP coming to that release that has a pretty significant interest from wider community so this will likely be a much more sought after jdk release than 23 was: So it would be really great if this issue would be properly fixed before JDK 24 release which currently is planned for 18th of March, 2025. |
Thank you for prompt fix! |
Driver version
12.8.1.jre11
SQL Server version
2019
Client Operating System
Rocky Linux
JAVA/JVM version
Eclipse Temurin 23
Problem description
Provide full details of the problem.
Expected behavior
Kerberos authentication should work out of the box with JDK 23 just as it did with JDK 22 and prior versions.
Actual behavior
Application fails to start.
Error message/stack trace
Any other details that can be helpful
https://jdk.java.net/23/release-notes#JDK-8296244
While suggested "fix" fixes this issue I assume KerbAuthentication class (and others) should move away from security manager. Especially since it's documented that this fix is going away in the future:
The text was updated successfully, but these errors were encountered: