Quantcast

Could not initialize class com.sun.jna.Native

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Could not initialize class com.sun.jna.Native

Sami Tikka
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Could not initialize class com.sun.jna.Native

Richard Bywater-2
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.

On Wed, Aug 22, 2012 at 11:27 PM, Sami Tikka <[hidden email]> wrote:

> 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
Loading...