Forum Discussion

Lee_M's avatar
Lee_M
Community Hero
4 years ago

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