Lee_M
4 years agoCommunity Hero
Jenkins FATAL: Could not initialize class com.sun.jna.Native java.lang.NoClassDefFoundError:
Hi,
I am running a test
runs successfully in TC and TE but Jenkins throw an issue
Java is installed and running on my local
Jenkins is running as a local app and user an active user session
Started by user Lee Running as SYSTEM Building in workspace C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\Manual Execution\run 201 [TestComplete] The test execution started (WebStore_Sample_Project_Suite/201+301 tests). FATAL: Could not initialize class com.sun.jna.Native java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native at com.sun.jna.Memory.malloc(Memory.java:722) at com.sun.jna.Memory.<init>(Memory.java:114) at com.sun.jna.ptr.ByReference.<init>(ByReference.java:42) at com.sun.jna.ptr.IntByReference.<init>(IntByReference.java:33) at com.sun.jna.ptr.IntByReference.<init>(IntByReference.java:29) at hudson.util.jna.RegistryKey.open(RegistryKey.java:214) at com.smartbear.jenkins.plugins.testcomplete.TcInstallationsScanner$ScannerCallable.scanForInstallations(TcInstallationsScanner.java:83) at com.smartbear.jenkins.plugins.testcomplete.TcInstallationsScanner$ScannerCallable.call(TcInstallationsScanner.java:69) at com.smartbear.jenkins.plugins.testcomplete.TcInstallationsScanner$ScannerCallable.call(TcInstallationsScanner.java:58) at hudson.remoting.LocalChannel.call(LocalChannel.java:46) at com.smartbear.jenkins.plugins.testcomplete.TcInstallationsScanner.getInstallations(TcInstallationsScanner.java:143) at com.smartbear.jenkins.plugins.testcomplete.TcTestBuilder.performInternal(TcTestBuilder.java:587) at com.smartbear.jenkins.plugins.testcomplete.TcTestBuilder.perform(TcTestBuilder.java:521) at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.Build$BuildExecution.build(Build.java:197) at hudson.model.Build$BuildExecution.doRun(Build.java:163) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:514) at hudson.model.Run.execute(Run.java:1907) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Finished: FAILURE
Hi Lee_M !It looks like this is an internal Jenkins exception. It is not related to TestComplete, and we cannot fix it. This should be done on Jenkins' side.
I searched on the Internet, and it looks like it could be related to the lack of permissions:
https://issues.jenkins.io/browse/JENKINS-30211
https://issues.tmatesoft.com/issue/SGT-461
https://community.atlassian.com/t5/Fisheye-Crucible-questions/Could-not-initialize-class-com-sun-jna-Native/qaq-p/339525 (edited)
not the answer I wanted but thanks for pointing me in the right direction