java.lang.UnsatisfiedLinkError: com.sun.jna.Native.malloc(J)J

Jenkins JIRA | Andres Kalle | 5 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

    Steps I took: 1. Downloaded jenkins.war 1.440 2. Created folder E:\java\jenkins 3. Executed java -DJENKINS_HOME=E:\java\jenkins -jar jenkins.war 4. Browsed to http://localhost:8080/, Jenkins was up and running 5. Manage Jenkins -> Install as Windows Service 6. Kept the installation directory as E:\java\jenkins and pressed Install This gave me the following error: java.lang.UnsatisfiedLinkError: com.sun.jna.Native.malloc(J)J at com.sun.jna.Native.malloc(Native Method) at com.sun.jna.Memory.malloc(Memory.java:690) at com.sun.jna.Memory.<init>(Memory.java:79) at com.sun.jna.ptr.ByReference.<init>(ByReference.java:33) at com.sun.jna.ptr.IntByReference.<init>(IntByReference.java:22) at com.sun.jna.ptr.IntByReference.<init>(IntByReference.java:18) at hudson.util.jna.RegistryKey.open(RegistryKey.java:210) at hudson.util.jna.RegistryKey.openReadonly(RegistryKey.java:206) at hudson.util.jna.DotNet.isInstalled(DotNet.java:50) at hudson.lifecycle.WindowsInstallerLink.doDoInstall(WindowsInstallerLink.java:104) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:104) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:377) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477) at org.kohsuke.stapler.Stapler.service(Stapler.java:159) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Unknown Source) PS. A note about bug reporting itself - the Component/s field is required, but the valid values don't make much sense, at least to someone not familiar with the internals of Jenkins. I used "core" for this report as it was the most generic one I could find, but it was by far the most confusing part about the bug reporting process.

    Jenkins JIRA | 5 years ago | Andres Kalle
    java.lang.UnsatisfiedLinkError: com.sun.jna.Native.malloc(J)J
  2. 0

    Steps I took: 1. Downloaded jenkins.war 1.440 2. Created folder E:\java\jenkins 3. Executed java -DJENKINS_HOME=E:\java\jenkins -jar jenkins.war 4. Browsed to http://localhost:8080/, Jenkins was up and running 5. Manage Jenkins -> Install as Windows Service 6. Kept the installation directory as E:\java\jenkins and pressed Install This gave me the following error: java.lang.UnsatisfiedLinkError: com.sun.jna.Native.malloc(J)J at com.sun.jna.Native.malloc(Native Method) at com.sun.jna.Memory.malloc(Memory.java:690) at com.sun.jna.Memory.<init>(Memory.java:79) at com.sun.jna.ptr.ByReference.<init>(ByReference.java:33) at com.sun.jna.ptr.IntByReference.<init>(IntByReference.java:22) at com.sun.jna.ptr.IntByReference.<init>(IntByReference.java:18) at hudson.util.jna.RegistryKey.open(RegistryKey.java:210) at hudson.util.jna.RegistryKey.openReadonly(RegistryKey.java:206) at hudson.util.jna.DotNet.isInstalled(DotNet.java:50) at hudson.lifecycle.WindowsInstallerLink.doDoInstall(WindowsInstallerLink.java:104) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:104) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:377) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477) at org.kohsuke.stapler.Stapler.service(Stapler.java:159) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Unknown Source) PS. A note about bug reporting itself - the Component/s field is required, but the valid values don't make much sense, at least to someone not familiar with the internals of Jenkins. I used "core" for this report as it was the most generic one I could find, but it was by far the most confusing part about the bug reporting process.

    Jenkins JIRA | 5 years ago | Andres Kalle
    java.lang.UnsatisfiedLinkError: com.sun.jna.Native.malloc(J)J
  3. 0

    "Windowsのサービスとしてインストール" 時 Exception: java.lang.UnsatisfiedLinkError: com.sun.jna.Native.malloc(J)J

    Google Groups | 4 years ago | Takayuki Kondou
    javax.servlet.ServletException: java.lang.UnsatisfiedLinkError: com.sun.jna.Native.malloc(J)J
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't obtain updateLastError method for class com.sun.jna.Native

    GitHub | 1 year ago | miguelpiza93
    java.lang.UnsatisfiedLinkError: Can't obtain updateLastError method for class com.sun.jna.Native
  6. 0

    JNA 4.2.2 not working on android-arm

    GitHub | 2 months ago | LordOfDragons
    java.lang.UnsatisfiedLinkError: Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native

    Root Cause Analysis

    1. java.lang.UnsatisfiedLinkError

      com.sun.jna.Native.malloc(J)J

      at com.sun.jna.Native.malloc()
    2. Java Native Access
      IntByReference.<init>
      1. com.sun.jna.Native.malloc(Native Method)
      2. com.sun.jna.Memory.malloc(Memory.java:690)
      3. com.sun.jna.Memory.<init>(Memory.java:79)
      4. com.sun.jna.ptr.ByReference.<init>(ByReference.java:33)
      5. com.sun.jna.ptr.IntByReference.<init>(IntByReference.java:22)
      6. com.sun.jna.ptr.IntByReference.<init>(IntByReference.java:18)
      6 frames
    3. hudson.util.jna
      DotNet.isInstalled
      1. hudson.util.jna.RegistryKey.open(RegistryKey.java:210)
      2. hudson.util.jna.RegistryKey.openReadonly(RegistryKey.java:206)
      3. hudson.util.jna.DotNet.isInstalled(DotNet.java:50)
      3 frames
    4. Hudson
      WindowsInstallerLink.doDoInstall
      1. hudson.lifecycle.WindowsInstallerLink.doDoInstall(WindowsInstallerLink.java:104)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    6. Stapler
      Stapler.service
      1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
      2. org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
      3. org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
      4. org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:104)
      5. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      6. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      7. org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      8. org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:377)
      9. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      10. org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      11. org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
      12. org.kohsuke.stapler.Stapler.service(Stapler.java:159)
      12 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      1 frame
    8. winstone
      RequestDispatcher.doFilter
      1. winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      2. winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      3. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      3 frames
    9. Hudson
      PluginServletFilter.doFilter
      1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      2. hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      2 frames
    10. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      2 frames
    11. Hudson
      CrumbFilter.doFilter
      1. hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      1 frame
    12. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      2 frames
    13. Hudson
      HudsonFilter.doFilter
      1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      2. hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      3. hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      3 frames
    14. winstone
      RequestDispatcher.doFilter
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      2 frames
    15. Hudson
      CharacterEncodingFilter.doFilter
      1. hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      1 frame
    16. winstone
      RequestHandlerThread.run
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      3. winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      4. winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      5. winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      5 frames
    17. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame