You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On MacOS, I experience UnsatisfiedLinkError: sun.security.krb5.SCDynamicStoreConfig.getKerberosConfig at runtime when trying to run an application that uses the Apache Kudu Java client. It attempts to do authentication with Kerberos. See here.
It seems to work fine on Linux though.
I extracted the code into a simple standalone app with just a main() method and I get the same problem on MacOS.
Java version: 21.0.2+13, vendor version: GraalVM CE 21.0.2+13.1
Graal compiler: optimization level: 2, target machine: armv8-a
C compiler: cc (apple, arm64, 15.0.0)
More details
Exception in thread "main" java.lang.UnsatisfiedLinkError: sun.security.krb5.SCDynamicStoreConfig.getKerberosConfig()Ljava/util/List; [symbol: Java_sun_security_krb5_SCDynamicStoreConfig_getKerberosConfig or Java_sun_security_krb5_SCDynamicStoreConfig_getKerberosConfig__]
at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.access.JNINativeLinkage.getOrFindEntryPoint(JNINativeLinkage.java:152)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.JNIGeneratedMethodSupport.nativeCallAddress(JNIGeneratedMethodSupport.java:54)
at [email protected]/sun.security.krb5.SCDynamicStoreConfig.getKerberosConfig(Native Method)
at [email protected]/sun.security.krb5.SCDynamicStoreConfig.getConfig(SCDynamicStoreConfig.java:70)
at [email protected]/sun.security.krb5.Config.<init>(Config.java:223)
at [email protected]/sun.security.krb5.Config.refresh(Config.java:153)
at [email protected]/com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:533)
at [email protected]/javax.security.auth.login.LoginContext.invoke(LoginContext.java:754)
at [email protected]/javax.security.auth.login.LoginContext$4.run(LoginContext.java:678)
at [email protected]/javax.security.auth.login.LoginContext$4.run(LoginContext.java:676)
at [email protected]/java.security.AccessController.executePrivileged(AccessController.java:114)
at [email protected]/java.security.AccessController.doPrivileged(AccessController.java:714)
at [email protected]/javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:676)
at [email protected]/javax.security.auth.login.LoginContext.login(LoginContext.java:587)
at org.test.Main.main(Main.java:29)
at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
The text was updated successfully, but these errors were encountered:
fniephaus
changed the title
MacOS UnsatisfiedLinkError: sun.security.krb5.SCDynamicStoreConfig.getKerberosConfig
[GR-51934] MacOS UnsatisfiedLinkError: sun.security.krb5.SCDynamicStoreConfig.getKerberosConfig
Feb 8, 2024
Describe the issue
On MacOS, I experience
UnsatisfiedLinkError: sun.security.krb5.SCDynamicStoreConfig.getKerberosConfig
at runtime when trying to run an application that uses the Apache Kudu Java client. It attempts to do authentication with Kerberos. See here.It seems to work fine on Linux though.
I extracted the code into a simple standalone app with just a
main()
method and I get the same problem on MacOS.Steps to reproduce the issue
mvn clean package
native-image -jar target/kerberos-test-1.0-SNAPSHOT.jar
./kerberos-test-1.0-SNAPSHOT
Describe GraalVM and your environment:
MacOS Sonoma 14.3 + M3 CPU.
More details
The text was updated successfully, but these errors were encountered: