我在使用Hudson CI进行自动化构建执行期间遇到异常。构建脚本完成构建作业后会出现此异常,并且由于此异常,构建后任务无法执行。我尝试过使用不同的MAC系统。
FATAL: org.hudsonci.plugins.jna.JnaNativeMacSupport$NativeMacProcess$1StringArrayMemory.getSize()J
java.lang.NoSuchMethodError: org.hudsonci.plugins.jna.JnaNativeMacSupport$NativeMacProcess$1StringArrayMemory.getSize()J
at org.hudsonci.plugins.jna.JnaNativeMacSupport$NativeMacProcess$1StringArrayMemory.hasMore(JnaNativeMacSupport.java:199)
at org.hudsonci.plugins.jna.JnaNativeMacSupport$NativeMacProcess$1StringArrayMemory.readString(JnaNativeMacSupport.java:209)
at org.hudsonci.plugins.jna.JnaNativeMacSupport$NativeMacProcess.parse(JnaNativeMacSupport.java:258)
at org.hudsonci.plugins.jna.JnaNativeMacSupport$NativeMacProcess.getEnvironmentVariables(JnaNativeMacSupport.java:172)
at hudson.util.ProcessTree$Darwin$DarwinProcess.getEnvironmentVariables(ProcessTree.java:962)
at hudson.util.ProcessTree$OSProcess.hasMatchingEnvVars(ProcessTree.java:256)
at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:504)
at hudson.Launcher$LocalLauncher.kill(Launcher.java:670)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:549)
at hudson.model.Run.run(Run.java:1450)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:82)
at hudson.model.Executor.run(Executor.java:137)
JNA原生访问是否存在任何问题?
答案 0 :(得分:0)
在我看来,jna
(无论是什么)无法读取某些环境变量,因为它无法弄清楚它的大小。