javax.security.auth.login.LoginException: java.lang.UnsatisfiedLinkError: Can't obtain static newInstance method for class com.sun.jna.Structure

GitHub | rdezavalia | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    unable to use pam with rundeck on debian jessie

    GitHub | 2 years ago | rdezavalia
    javax.security.auth.login.LoginException: java.lang.UnsatisfiedLinkError: Can't obtain static newInstance method for class com.sun.jna.Structure

    Root Cause Analysis

    1. javax.security.auth.login.LoginException

      java.lang.UnsatisfiedLinkError: Can't obtain static newInstance method for class com.sun.jna.Structure

      at com.sun.jna.Native.initIDs()
    2. Java Native Access
      Structure.<clinit>
      1. com.sun.jna.Native.initIDs(Native Method)
      2. com.sun.jna.Native.<clinit>(Native.java:113)
      3. com.sun.jna.Structure.<clinit>(Structure.java:110)
      3 frames
    3. Java binding for libpam.so
      PAM.<init>
      1. org.jvnet.libpam.PAM.<init>(PAM.java:73)
      1 frame
    4. org.rundeck.jaas
      AbstractSharedLoginModule.login
      1. org.rundeck.jaas.pam.AbstractPamLoginModule.authenticate(AbstractPamLoginModule.java:85)
      2. org.rundeck.jaas.AbstractSharedLoginModule.login(AbstractSharedLoginModule.java:78)
      2 frames
    5. Java RT
      LoginContext.login
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      5. javax.security.auth.login.LoginContext.invoke(LoginContext.java:762)
      6. javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)
      7. javax.security.auth.login.LoginContext$4.run(LoginContext.java:690)
      8. javax.security.auth.login.LoginContext$4.run(LoginContext.java:688)
      9. java.security.AccessController.doPrivileged(Native Method)
      10. javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:687)
      11. javax.security.auth.login.LoginContext.login(LoginContext.java:595)
      11 frames
    6. Jetty :: Aggregate :: All Server
      JAASLoginService.login
      1. org.eclipse.jetty.plus.jaas.JAASLoginService.login(JAASLoginService.java:217)
      1 frame
    7. Jetty
      AsyncHttpConnection.handle
      1. org.eclipse.jetty.security.authentication.FormAuthenticator.validateRequest(FormAuthenticator.java:183)
      2. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456)
      3. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
      4. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
      5. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
      6. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
      7. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
      8. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      9. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
      10. org.eclipse.jetty.server.Server.handle(Server.java:349)
      11. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449)
      12. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:925)
      13. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:857)
      14. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
      15. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)
      15 frames
    8. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609)
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)
      2 frames
    9. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)
      2 frames