Could not initialize class com.sun.jna.Native

1,099 views
Skip to first unread message

Sami Tikka

unread,
Aug 22, 2012, 7:27:02 AM8/22/12
to jenkins...@googlegroups.com
I have a Jenkins that doesn't work. It runs on Debian 6 using the Sun6
JDK. I have tried several versions of Jenkins and they all have this
same problem, including the latest 1.478:

Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows.
java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
at org.jruby.ext.posix.POSIXFactory.loadLibC(POSIXFactory.java:96)
at org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:65)
at org.jruby.ext.posix.POSIXFactory.getPOSIX(POSIXFactory.java:24)
at hudson.os.PosixAPI.<clinit>(PosixAPI.java:41)
at hudson.Util.createSymlink(Util.java:1011)
at hudson.model.Run.execute(Run.java:1500)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)

This problem occurs only on builds that execute on slaves. Builds that
run on the master locally have no problem. The build on the slave does
run but hangs forever when it starts archiving artifacts.

Anyone have any ideas?

-- Sami

Richard Bywater

unread,
Aug 22, 2012, 5:31:15 PM8/22/12
to jenkins...@googlegroups.com
Found this link http://issues.tmatesoft.com/issue/SGT-461 which seems
to have a similar issue to what you are seeing. Seems that the
conclusion seemed to be that perhaps some permissions issue.

Don't know if it will help you at all but there it is :)

Richard.
Reply all
Reply to author
Forward
0 new messages