java.lang.UnsupportedOperationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Jan Seidel,
  • 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.
    via by Jan Seidel,
  • Issues installing plugins on XP
    via by Iain Walsh,
  • 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
    via by Thomas Fields,
  • Sometimes mstest start making build errors. Only restart jenkins-slave service restore normal working. [ANALYSIS-COLLECTOR] Computing warning deltas based on reference build #332 Archiving artifacts Processing tests results in file(s) TestResults/* TestResults\Rus.user.buildmaster_RUSBUILDER-IMS 2012-12-12 18_02_03.trx ERROR: Publisher hudson.plugins.mstest.MSTestPublisher aborted due to exception hudson.util.IOException2: remote file operation failed: d:/Perforce/NC_v01/temporary-junit-reports at hudson.remoting.Channel@1504e7b:rusbuilder-ims at hudson.FilePath.act(FilePath.java:848) at hudson.FilePath.act(FilePath.java:825) at hudson.FilePath.deleteRecursive(FilePath.java:981) at hudson.plugins.mstest.MSTestPublisher.perform(MSTestPublisher.java:78) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1543) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: java.io.IOException: Remote call on rusbuilder-ims failed at hudson.remoting.Channel.call(Channel.java:674) at hudson.FilePath.act(FilePath.java:841) ... 12 more Caused by: java.lang.NoClassDefFoundError: Could not initialize class hudson.util.jna.Kernel32 at hudson.util.jna.Kernel32Utils.getWin32FileAttributes(Kernel32Utils.java:76) at hudson.util.jna.Kernel32Utils.isJunctionOrSymlink(Kernel32Utils.java:80) at hudson.Util.isSymlink(Util.java:322) at hudson.Util.deleteRecursive(Util.java:283) at hudson.FilePath$11.invoke(FilePath.java:983) at hudson.FilePath$11.invoke(FilePath.java:981) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2309) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Unknown Source) Finished: FAILURE
    via by Alexey Larsky,
  • 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
    via by Rob Starkey,
  • 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
    via by Thomas Fields,
    • java.lang.UnsupportedOperationException: Failed to link the library: interface hudson.util.jna.Kernel32 at hudson.util.jna.InitializationErrorInvocationHandler.invoke(InitializationErrorInvocationHandler.java:28) at $Proxy7.GetFileAttributesW(Unknown Source) at hudson.util.jna.Kernel32Utils.getWin32FileAttributes(Kernel32Utils.java:76) at hudson.util.jna.Kernel32Utils.isJunctionOrSymlink(Kernel32Utils.java:80) at hudson.Util.isSymlink(Util.java:322) at hudson.Util.deleteRecursive(Util.java:283) at hudson.Util.deleteContentsRecursive(Util.java:204) at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:75) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:144) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:799) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:780) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:763) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2309) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native at hudson.util.jna.Kernel32Utils.load(Kernel32Utils.java:85) at hudson.util.jna.Kernel32.<clinit>(Kernel32.java:37) at hudson.util.jna.Kernel32Utils.getWin32FileAttributes(Kernel32Utils.java:76) at hudson.util.jna.Kernel32Utils.isJunctionOrSymlink(Kernel32Utils.java:80) at hudson.Util.isSymlink(Util.java:322) at hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.getFileSize(DiskUsageThread.java:168) at hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.call(DiskUsageThread.java:162) at hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.call(DiskUsageThread.java:149) ... 9 more
    No Bugmate found.