java.lang.UnsatisfiedLinkError: Unable to load library 'pam': libpam.so: cannot open shared object file: No such file or directory

Jenkins JIRA | Dominik Drzewiecki | 6 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

    Cannot authenticate anymore using Unix security realm after upgrading to Ubuntu from Maverick to Natty. This one's probably due to JNA 3.2.4 incompatibility with Natty. Has already been reported : http://java.net/jira/browse/JNA-184 SEVERE: Servlet.service() for servlet Stapler threw exception java.lang.UnsatisfiedLinkError: Unable to load library 'pam': libpam.so: cannot open shared object file: No such file or directory at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:164) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:237) at com.sun.jna.Library$Handler.<init>(Library.java:140) at com.sun.jna.Native.loadLibrary(Native.java:374) at com.sun.jna.Native.loadLibrary(Native.java:359) at org.jvnet.libpam.impl.PAMLibrary.<clinit>(PAMLibrary.java:132) at sun.misc.Unsafe.ensureClassInitialized(Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:140) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:936) at java.lang.reflect.Field.getFieldAccessor(Field.java:917) at java.lang.reflect.Field.get(Field.java:376) at com.sun.jna.Native.loadLibraryInstance(Native.java:398) at com.sun.jna.Native.getStructureAlignment(Native.java:507) at com.sun.jna.Structure.setAlignType(Structure.java:191) at com.sun.jna.Structure.<init>(Structure.java:149) at com.sun.jna.Structure.<init>(Structure.java:145) at com.sun.jna.Structure.<init>(Structure.java:141) at com.sun.jna.Structure.<init>(Structure.java:132) at org.jvnet.libpam.impl.PAMLibrary$pam_conv.<init>(PAMLibrary.java:107) at org.jvnet.libpam.PAM.<init>(PAM.java:73) at hudson.security.PAMSecurityRealm$PAMAuthenticationProvider.authenticate(PAMSecurityRealm.java:91) at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:195) at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:45) at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:71) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:427) at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:384) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584) at java.lang.Thread.run(Thread.java:679)

    Jenkins JIRA | 6 years ago | Dominik Drzewiecki
    java.lang.UnsatisfiedLinkError: Unable to load library 'pam': libpam.so: cannot open shared object file: No such file or directory
  2. 0

    Cannot authenticate anymore using Unix security realm after upgrading to Ubuntu from Maverick to Natty. This one's probably due to JNA 3.2.4 incompatibility with Natty. Has already been reported : http://java.net/jira/browse/JNA-184 SEVERE: Servlet.service() for servlet Stapler threw exception java.lang.UnsatisfiedLinkError: Unable to load library 'pam': libpam.so: cannot open shared object file: No such file or directory at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:164) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:237) at com.sun.jna.Library$Handler.<init>(Library.java:140) at com.sun.jna.Native.loadLibrary(Native.java:374) at com.sun.jna.Native.loadLibrary(Native.java:359) at org.jvnet.libpam.impl.PAMLibrary.<clinit>(PAMLibrary.java:132) at sun.misc.Unsafe.ensureClassInitialized(Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:140) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:936) at java.lang.reflect.Field.getFieldAccessor(Field.java:917) at java.lang.reflect.Field.get(Field.java:376) at com.sun.jna.Native.loadLibraryInstance(Native.java:398) at com.sun.jna.Native.getStructureAlignment(Native.java:507) at com.sun.jna.Structure.setAlignType(Structure.java:191) at com.sun.jna.Structure.<init>(Structure.java:149) at com.sun.jna.Structure.<init>(Structure.java:145) at com.sun.jna.Structure.<init>(Structure.java:141) at com.sun.jna.Structure.<init>(Structure.java:132) at org.jvnet.libpam.impl.PAMLibrary$pam_conv.<init>(PAMLibrary.java:107) at org.jvnet.libpam.PAM.<init>(PAM.java:73) at hudson.security.PAMSecurityRealm$PAMAuthenticationProvider.authenticate(PAMSecurityRealm.java:91) at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:195) at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:45) at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:71) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:427) at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:384) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584) at java.lang.Thread.run(Thread.java:679)

    Jenkins JIRA | 6 years ago | Dominik Drzewiecki
    java.lang.UnsatisfiedLinkError: Unable to load library 'pam': libpam.so: cannot open shared object file: No such file or directory
  3. 0

    Converting a PDF to text using Tesseract OCR

    Stack Overflow | 2 years ago | Animesh Pandey
    java.lang.UnsatisfiedLinkError: Unable to load library 'tesseract': Native library (linux-x86-64/libtesseract.so) not found in resource path (....)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    UnsatisfiedLinkError: Add exception message with cause hint

    GitHub | 3 years ago | 4F2E4A2E
    java.lang.UnsatisfiedLinkError: Das angegebene Modul wurde nicht gefunden.
  6. 0

    Tesseract - The specified module could not be found

    Stack Overflow | 2 years ago | Ethyl Casin
    java.lang.UnsatisfiedLinkError: The specified module could not be found.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsatisfiedLinkError

    Unable to load library 'pam': libpam.so: cannot open shared object file: No such file or directory

    at com.sun.jna.NativeLibrary.loadLibrary()
  2. Java Native Access
    Native.loadLibrary
    1. com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:164)
    2. com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:237)
    3. com.sun.jna.Library$Handler.<init>(Library.java:140)
    4. com.sun.jna.Native.loadLibrary(Native.java:374)
    5. com.sun.jna.Native.loadLibrary(Native.java:359)
    5 frames
  3. Java binding for libpam.so
    PAMLibrary.<clinit>
    1. org.jvnet.libpam.impl.PAMLibrary.<clinit>(PAMLibrary.java:132)
    1 frame
  4. Java RT
    Field.get
    1. sun.misc.Unsafe.ensureClassInitialized(Native Method)
    2. sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
    3. sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:140)
    4. java.lang.reflect.Field.acquireFieldAccessor(Field.java:936)
    5. java.lang.reflect.Field.getFieldAccessor(Field.java:917)
    6. java.lang.reflect.Field.get(Field.java:376)
    6 frames
  5. Java Native Access
    Structure.<init>
    1. com.sun.jna.Native.loadLibraryInstance(Native.java:398)
    2. com.sun.jna.Native.getStructureAlignment(Native.java:507)
    3. com.sun.jna.Structure.setAlignType(Structure.java:191)
    4. com.sun.jna.Structure.<init>(Structure.java:149)
    5. com.sun.jna.Structure.<init>(Structure.java:145)
    6. com.sun.jna.Structure.<init>(Structure.java:141)
    7. com.sun.jna.Structure.<init>(Structure.java:132)
    7 frames
  6. Java binding for libpam.so
    PAM.<init>
    1. org.jvnet.libpam.impl.PAMLibrary$pam_conv.<init>(PAMLibrary.java:107)
    2. org.jvnet.libpam.PAM.<init>(PAM.java:73)
    2 frames
  7. Hudson
    PAMSecurityRealm$PAMAuthenticationProvider.authenticate
    1. hudson.security.PAMSecurityRealm$PAMAuthenticationProvider.authenticate(PAMSecurityRealm.java:91)
    1 frame
  8. Acegi Security Core
    AbstractProcessingFilter.doFilter
    1. org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:195)
    2. org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:45)
    3. org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:71)
    4. org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252)
    4 frames
  9. Hudson
    ChainedServletFilter$1.doFilter
    1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    1 frame
  10. Acegi Security Core
    BasicProcessingFilter.doFilter
    1. org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
    1 frame
  11. Hudson
    ChainedServletFilter$1.doFilter
    1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    1 frame
  12. Acegi Security Core
    HttpSessionContextIntegrationFilter.doFilter
    1. org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
    1 frame
  13. Hudson
    HudsonFilter.doFilter
    1. hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
    2. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    3. hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
    4. hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
    4 frames
  14. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  15. Hudson
    CharacterEncodingFilter.doFilter
    1. hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
    1 frame
  16. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    9 frames
  17. org.apache.coyote
    AjpAprProtocol$AjpConnectionHandler.process
    1. org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:427)
    2. org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:384)
    2 frames
  18. Grizzly HTTP
    AprEndpoint$Worker.run
    1. org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
    1 frame
  19. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:679)
    1 frame