java.lang.UnsupportedOperationException: Failed to link the library: interface hudson.util.jna.Kernel32

Jenkins JIRA | Jan Seidel | 4 years ago
  1. 0

    [JENKINS-15974] FATAL: Failed to link the library: interface hudson.util.jna.Kernel32 - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    java.lang.UnsupportedOperationException: Failed to link the library: interface hudson.util.jna.Kernel32
  2. 0

    I am facing an issue since 1.490 which may be related to https://issues.jenkins-ci.org/browse/JENKINS-15466. These error occurs occassionally - 1-3 time in the night when the nightly builds stress the system for 6 hours. I have this issue seen by now only when a job is triggered by cron. I tried upgrading the plugins and Jenkins to various versions from 1.490 to current with no luck. Restarting Jenkins solves the issue on short term. 00:54:28 originally caused by: 00:54:28 Started by timer 00:54:28 [EnvInject] - Loading node environment variables. 00:54:28 Building remotely on B00013_2 in workspace y:\Jenkins_slave\workspace\NB_Uppsala 00:54:28 Cleaning local Directory . 00:54:28 FATAL: Failed to link the library: interface hudson.util.jna.Kernel32 00:54:28 java.lang.UnsupportedOperationException: Failed to link the library: interface hudson.util.jna.Kernel32 00:54:28 at hudson.util.jna.InitializationErrorInvocationHandler.invoke(InitializationErrorInvocationHandler.java:28) 00:54:28 at $Proxy7.GetFileAttributesW(Unknown Source) 00:54:28 at hudson.util.jna.Kernel32Utils.getWin32FileAttributes(Kernel32Utils.java:76) 00:54:28 at hudson.util.jna.Kernel32Utils.isJunctionOrSymlink(Kernel32Utils.java:80) 00:54:28 at hudson.Util.isSymlink(Util.java:322) 00:54:28 at hudson.Util.deleteRecursive(Util.java:283) 00:54:28 at hudson.Util.deleteContentsRecursive(Util.java:204) 00:54:28 at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:75) 00:54:28 at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:144) 00:54:28 at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:799) 00:54:28 at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:780) 00:54:28 at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:763) 00:54:28 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2309) 00:54:28 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 00:54:28 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 00:54:28 at hudson.remoting.Request$2.run(Request.java:326) 00:54:28 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 00:54:28 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 00:54:28 at java.util.concurrent.FutureTask.run(Unknown Source) 00:54:28 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 00:54:28 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 00:54:28 at java.lang.Thread.run(Unknown Source) 00:54:28 Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native 00:54:28 at hudson.util.jna.Kernel32Utils.load(Kernel32Utils.java:85) 00:54:28 at hudson.util.jna.Kernel32.<clinit>(Kernel32.java:37) 00:54:28 at hudson.util.jna.Kernel32Utils.getWin32FileAttributes(Kernel32Utils.java:76) 00:54:28 at hudson.util.jna.Kernel32Utils.isJunctionOrSymlink(Kernel32Utils.java:80) 00:54:28 at hudson.Util.isSymlink(Util.java:322) 00:54:28 at hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.getFileSize(DiskUsageThread.java:168) 00:54:28 at hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.call(DiskUsageThread.java:162) 00:54:28 at hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.call(DiskUsageThread.java:149) 00:54:28 ... 9 more It seems mainly to affect one machine with several slaves on it but that is no unique setup in our cluster. The system logs tell something about issue with determining the disk space. I have been checking the machine. Itself is in a healthy state with loads of available disk space.

    Jenkins JIRA | 4 years ago | Jan Seidel
    java.lang.UnsupportedOperationException: Failed to link the library: interface hudson.util.jna.Kernel32
  3. 0

    I am facing an issue since 1.490 which may be related to https://issues.jenkins-ci.org/browse/JENKINS-15466. These error occurs occassionally - 1-3 time in the night when the nightly builds stress the system for 6 hours. I have this issue seen by now only when a job is triggered by cron. I tried upgrading the plugins and Jenkins to various versions from 1.490 to current with no luck. Restarting Jenkins solves the issue on short term. 00:54:28 originally caused by: 00:54:28 Started by timer 00:54:28 [EnvInject] - Loading node environment variables. 00:54:28 Building remotely on B00013_2 in workspace y:\Jenkins_slave\workspace\NB_Uppsala 00:54:28 Cleaning local Directory . 00:54:28 FATAL: Failed to link the library: interface hudson.util.jna.Kernel32 00:54:28 java.lang.UnsupportedOperationException: Failed to link the library: interface hudson.util.jna.Kernel32 00:54:28 at hudson.util.jna.InitializationErrorInvocationHandler.invoke(InitializationErrorInvocationHandler.java:28) 00:54:28 at $Proxy7.GetFileAttributesW(Unknown Source) 00:54:28 at hudson.util.jna.Kernel32Utils.getWin32FileAttributes(Kernel32Utils.java:76) 00:54:28 at hudson.util.jna.Kernel32Utils.isJunctionOrSymlink(Kernel32Utils.java:80) 00:54:28 at hudson.Util.isSymlink(Util.java:322) 00:54:28 at hudson.Util.deleteRecursive(Util.java:283) 00:54:28 at hudson.Util.deleteContentsRecursive(Util.java:204) 00:54:28 at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:75) 00:54:28 at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:144) 00:54:28 at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:799) 00:54:28 at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:780) 00:54:28 at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:763) 00:54:28 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2309) 00:54:28 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 00:54:28 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 00:54:28 at hudson.remoting.Request$2.run(Request.java:326) 00:54:28 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 00:54:28 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 00:54:28 at java.util.concurrent.FutureTask.run(Unknown Source) 00:54:28 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 00:54:28 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 00:54:28 at java.lang.Thread.run(Unknown Source) 00:54:28 Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native 00:54:28 at hudson.util.jna.Kernel32Utils.load(Kernel32Utils.java:85) 00:54:28 at hudson.util.jna.Kernel32.<clinit>(Kernel32.java:37) 00:54:28 at hudson.util.jna.Kernel32Utils.getWin32FileAttributes(Kernel32Utils.java:76) 00:54:28 at hudson.util.jna.Kernel32Utils.isJunctionOrSymlink(Kernel32Utils.java:80) 00:54:28 at hudson.Util.isSymlink(Util.java:322) 00:54:28 at hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.getFileSize(DiskUsageThread.java:168) 00:54:28 at hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.call(DiskUsageThread.java:162) 00:54:28 at hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.call(DiskUsageThread.java:149) 00:54:28 ... 9 more It seems mainly to affect one machine with several slaves on it but that is no unique setup in our cluster. The system logs tell something about issue with determining the disk space. I have been checking the machine. Itself is in a healthy state with loads of available disk space.

    Jenkins JIRA | 4 years ago | Jan Seidel
    java.lang.UnsupportedOperationException: Failed to link the library: interface hudson.util.jna.Kernel32
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issues installing plugins on XP

    Google Groups | 4 years ago | Iain Walsh
    java.lang.NoClassDefFoundError: Could not initialize class hudson.util.jna.Kernel32
  6. 0

    [JENKINS-15466] Fatal Error No Class Definition found for Kernel32 - Jenkins JIRA

    jenkins-ci.org | 11 months ago
    java.lang.NoClassDefFoundError: Could not initialize class hudson.util.jna.Kernel32

    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.NoClassDefFoundError

      Could not initialize class com.sun.jna.Native

      at hudson.util.jna.Kernel32Utils.load()
    2. hudson.util.jna
      Kernel32Utils.isJunctionOrSymlink
      1. hudson.util.jna.Kernel32Utils.load(Kernel32Utils.java:85)
      2. hudson.util.jna.Kernel32.<clinit>(Kernel32.java:37)
      3. hudson.util.jna.Kernel32Utils.getWin32FileAttributes(Kernel32Utils.java:76)
      4. hudson.util.jna.Kernel32Utils.isJunctionOrSymlink(Kernel32Utils.java:80)
      4 frames
    3. Hudson
      Util.isSymlink
      1. hudson.Util.isSymlink(Util.java:322)
      1 frame
    4. hudson.plugins.disk_usage
      DiskUsageThread$DiskUsageCallable.call
      1. hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.getFileSize(DiskUsageThread.java:168)
      2. hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.call(DiskUsageThread.java:162)
      3. hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.call(DiskUsageThread.java:149)
      3 frames
    5. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:326)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      5. java.lang.Thread.run(Unknown Source)
      5 frames