java.lang.NoClassDefFoundError: Could not initialize class hudson.util.jna.Kernel32

Jenkins JIRA | Rob Starkey | 4 years ago
  1. 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
  2. 0

    Hi, We are periodically getting issues with the hudson.util.jna.Kernel32 class not being found when plugins are calling the isSymlink method. {code} [xUnit] [INFO] - [UnitTest-1.4 (default)] - 1 test report file(s) were found with the pattern 'tests.xml' relative to 'C:\Jenkins\jobs\NetworkTeam Test\workspace' for the testing framework 'UnitTest-1.4 (default)'. FATAL: Could not initialize class hudson.util.jna.Kernel32 java.lang.NoClassDefFoundError: Could not initialize class hudson.util.jna.Kernel32 at hudson.util.jna.Kernel32Utils.isJunctionOrSymlink(Kernel32Utils.java:62) at hudson.Util.isSymlink(Util.java:322) at hudson.Util.deleteRecursive(Util.java:283) at hudson.FilePath$11.invoke(FilePath.java:982) at hudson.FilePath$11.invoke(FilePath.java:980) at hudson.FilePath.act(FilePath.java:851) at hudson.FilePath.act(FilePath.java:824) at hudson.FilePath.deleteRecursive(FilePath.java:980) at org.jenkinsci.plugins.xunit.XUnitPublisher.processDeletion(XUnitPublisher.java:374) at org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:124) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:93) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729) at hudson.model.Run.execute(Run.java:1541) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code} The class file seems to be present and correct compared with the github versions and we are running with Admin access to the filesystem. Any help would be appreciated. Rob

    Jenkins JIRA | 4 years ago | Rob Starkey
    java.lang.NoClassDefFoundError: Could not initialize class hudson.util.jna.Kernel32
  3. 0

    Hi, We are periodically getting issues with the hudson.util.jna.Kernel32 class not being found when plugins are calling the isSymlink method. {code} [xUnit] [INFO] - [UnitTest-1.4 (default)] - 1 test report file(s) were found with the pattern 'tests.xml' relative to 'C:\Jenkins\jobs\NetworkTeam Test\workspace' for the testing framework 'UnitTest-1.4 (default)'. FATAL: Could not initialize class hudson.util.jna.Kernel32 java.lang.NoClassDefFoundError: Could not initialize class hudson.util.jna.Kernel32 at hudson.util.jna.Kernel32Utils.isJunctionOrSymlink(Kernel32Utils.java:62) at hudson.Util.isSymlink(Util.java:322) at hudson.Util.deleteRecursive(Util.java:283) at hudson.FilePath$11.invoke(FilePath.java:982) at hudson.FilePath$11.invoke(FilePath.java:980) at hudson.FilePath.act(FilePath.java:851) at hudson.FilePath.act(FilePath.java:824) at hudson.FilePath.deleteRecursive(FilePath.java:980) at org.jenkinsci.plugins.xunit.XUnitPublisher.processDeletion(XUnitPublisher.java:374) at org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:124) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:93) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729) at hudson.model.Run.execute(Run.java:1541) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code} The class file seems to be present and correct compared with the github versions and we are running with Admin access to the filesystem. Any help would be appreciated. Rob

    Jenkins JIRA | 4 years ago | Rob Starkey
    java.lang.NoClassDefFoundError: Could not initialize class 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

    Hi, Since upgrading to Jenkins 1.486 I'm getting the following when deleting the workspace: Deleting project workspace... ERROR: Publisher hudson.plugins.ws_cleanup.WsCleanup aborted due to exception 09:09:09 hudson.util.IOException2: remote file operation failed: c:\JCI\workspace\AssetProcessor-Live\CONFIG\Release\TARGET\x64Tool\VSVERSION\2010 at hudson.remoting.Channel@4bfe1934:Build2 09:09:09 at hudson.FilePath.act(FilePath.java:847) 09:09:09 at hudson.FilePath.act(FilePath.java:824) 09:09:09 at hudson.FilePath.deleteRecursive(FilePath.java:980) 09:09:09 at hudson.plugins.ws_cleanup.WsCleanup.perform(WsCleanup.java:68) 09:09:09 at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) 09:09:09 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807) 09:09:09 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782) 09:09:09 at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) 09:09:09 at hudson.model.Run.execute(Run.java:1560) 09:09:09 at hudson.matrix.MatrixRun.run(MatrixRun.java:146) 09:09:09 at hudson.model.ResourceController.execute(ResourceController.java:88) 09:09:09 at hudson.model.Executor.run(Executor.java:236) 09:09:09 Caused by: java.io.IOException: Remote call on Build2 failed 09:09:09 at hudson.remoting.Channel.call(Channel.java:673) 09:09:09 at hudson.FilePath.act(FilePath.java:840) 09:09:09 ... 11 more 09:09:09 Caused by: java.lang.NoClassDefFoundError: Could not initialize class hudson.util.jna.Kernel32 09:09:09 at hudson.util.jna.Kernel32Utils.isJunctionOrSymlink(Kernel32Utils.java:62) 09:09:09 at hudson.Util.isSymlink(Util.java:322) 09:09:09 at hudson.Util.deleteRecursive(Util.java:283) 09:09:09 at hudson.FilePath$11.invoke(FilePath.java:982) 09:09:09 at hudson.FilePath$11.invoke(FilePath.java:980) 09:09:09 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2308) 09:09:09 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 09:09:09 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 09:09:09 at hudson.remoting.Request$2.run(Request.java:326) 09:09:09 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 09:09:09 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 09:09:09 at java.util.concurrent.FutureTask.run(Unknown Source) 09:09:09 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 09:09:09 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 09:09:09 at hudson.remoting.Engine$1$1.run(Engine.java:60) 09:09:09 at java.lang.Thread.run(Unknown Source) 09:09:09 Notifying upstream projects of job completion 09:09:09 Finished: FAILURE This seems to be related to https://issues.jenkins-ci.org/browse/JENKINS-15466 Is it possible to fix as soon as possible? Thanks, Tom

    Jenkins JIRA | 4 years ago | Thomas Fields
    hudson.util.IOException2: remote file operation failed: c:\JCI\workspace\AssetProcessor-Live\CONFIG\Release\TARGET\x64Tool\VSVERSION\2010 at hudson.remoting.Channel@4bfe1934:Build2

    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 hudson.util.jna.Kernel32

      at hudson.util.jna.Kernel32Utils.isJunctionOrSymlink()
    2. hudson.util.jna
      Kernel32Utils.isJunctionOrSymlink
      1. hudson.util.jna.Kernel32Utils.isJunctionOrSymlink(Kernel32Utils.java:62)
      1 frame
    3. Hudson
      FilePath.deleteRecursive
      1. hudson.Util.isSymlink(Util.java:322)
      2. hudson.Util.deleteRecursive(Util.java:283)
      3. hudson.FilePath$11.invoke(FilePath.java:982)
      4. hudson.FilePath$11.invoke(FilePath.java:980)
      5. hudson.FilePath.act(FilePath.java:851)
      6. hudson.FilePath.act(FilePath.java:824)
      7. hudson.FilePath.deleteRecursive(FilePath.java:980)
      7 frames
    4. org.jenkinsci.plugins
      XUnitPublisher.perform
      1. org.jenkinsci.plugins.xunit.XUnitPublisher.processDeletion(XUnitPublisher.java:374)
      2. org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:124)
      3. org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:93)
      3 frames
    5. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729)
      6. hudson.model.Run.execute(Run.java:1541)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:236)
      9 frames