Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13341

Upgrading to 1.458 with Jenkins on Ubuntu with OpenJDK cause Maven build to fail

    XMLWordPrintable

Details

    Description

      After upgrading Ubuntu packaged Jenkins to 1.458 (using OpenJDK as installed by apt-get) I receive the following failures:

      ....

      Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows.
      13:19:30 java.lang.UnsatisfiedLinkError: Unable to load library 'libc.so.6': com.sun.jna.Native.open(Ljava/lang/String;)J
      13:19:30 at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166)
      13:19:30 at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239)
      13:19:30 at com.sun.jna.Library$Handler.<init>(Library.java:140)
      13:19:30 at com.sun.jna.Native.loadLibrary(Native.java:366)
      13:19:30 at org.jruby.ext.posix.POSIXFactory.loadLibC(POSIXFactory.java:96)
      13:19:30 at org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:65)
      13:19:30 at org.jruby.ext.posix.POSIXFactory.getPOSIX(POSIXFactory.java:24)
      13:19:30 at hudson.os.PosixAPI.<clinit>(PosixAPI.java:40)
      13:19:30 at hudson.Util.resolveSymlink(Util.java:1067)
      13:19:30 at hudson.Util.resolveSymlink(Util.java:1030)
      13:19:30 at hudson.util.DirScanner$Glob.scan(DirScanner.java:107)
      13:19:30 at hudson.FilePath.writeToTar(FilePath.java:1781)
      13:19:30 at hudson.FilePath.copyRecursiveTo(FilePath.java:1708)
      13:19:30 at hudson.FilePath.copyRecursiveTo(FilePath.java:1637)
      13:19:30 at hudson.maven.reporters.AbstractMavenJavadocArchiver.postExecute(AbstractMavenJavadocArchiver.java:98)
      13:19:30 at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoSucceeded(Maven3Builder.java:478)
      13:19:30 at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:459)
      13:19:30 at org.jfrog.build.extractor.maven.BuildInfoRecorder.mojoSucceeded(BuildInfoRecorder.java:241)
      13:19:30 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87)
      13:19:30 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      13:19:30 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228)
      13:19:30 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      13:19:30 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      13:19:30 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      13:19:30 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      13:19:30 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      13:19:30 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      13:19:30 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      13:19:30 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      13:19:30 at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      13:19:30 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      13:19:30 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      13:19:30 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      13:19:30 at java.lang.reflect.Method.invoke(Method.java:616)
      13:19:30 at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      13:19:30 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      13:19:30 at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
      13:19:30 at hudson.maven.Maven3Builder.call(Maven3Builder.java:104)
      13:19:30 at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
      13:19:30 at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      13:19:30 at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      13:19:30 at hudson.remoting.Request$2.run(Request.java:287)
      13:19:30 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      13:19:30 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      13:19:30 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      13:19:30 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      13:19:30 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      13:19:30 at java.lang.Thread.run(Thread.java:636)
      .....

      mavenExecutionResult exceptions not empty
      13:19:31 message : Internal error: java.lang.UnsupportedOperationException
      13:19:31 cause : null
      13:19:31 Stack trace :
      13:19:31 org.apache.maven.InternalErrorException: Internal error: java.lang.UnsupportedOperationException
      13:19:31 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128)
      13:19:31 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95)
      13:19:31 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      13:19:31 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      13:19:31 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      13:19:31 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      13:19:31 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      13:19:31 at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      13:19:31 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      13:19:31 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      13:19:31 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      13:19:31 at java.lang.reflect.Method.invoke(Method.java:616)
      13:19:31 at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      13:19:31 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      13:19:31 at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
      13:19:31 at hudson.maven.Maven3Builder.call(Maven3Builder.java:104)
      13:19:31 at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
      13:19:31 at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      13:19:31 at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      13:19:31 at hudson.remoting.Request$2.run(Request.java:287)
      13:19:31 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      13:19:31 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      13:19:31 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      13:19:31 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      13:19:31 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      13:19:31 at java.lang.Thread.run(Thread.java:636)
      13:19:31 Caused by: java.lang.UnsupportedOperationException
      13:19:31 at hudson.os.PosixAPI$1.getCurrentWorkingDirectory(PosixAPI.java:59)
      13:19:31 at org.jruby.ext.posix.util.ExecIt.run(ExecIt.java:59)
      13:19:31 at org.jruby.ext.posix.util.ExecIt.runAndWait(ExecIt.java:51)
      13:19:31 at org.jruby.ext.posix.JavaLibCHelper.readlink(JavaLibCHelper.java:196)
      13:19:31 at org.jruby.ext.posix.JavaPOSIX.readlink(JavaPOSIX.java:160)
      13:19:31 at hudson.Util.resolveSymlink(Util.java:1067)
      13:19:31 at hudson.Util.resolveSymlink(Util.java:1030)
      13:19:31 at hudson.util.DirScanner$Glob.scan(DirScanner.java:107)
      13:19:31 at hudson.FilePath.writeToTar(FilePath.java:1781)
      13:19:31 at hudson.FilePath.copyRecursiveTo(FilePath.java:1708)
      13:19:31 at hudson.FilePath.copyRecursiveTo(FilePath.java:1637)
      13:19:31 at hudson.maven.reporters.AbstractMavenJavadocArchiver.postExecute(AbstractMavenJavadocArchiver.java:98)
      13:19:31 at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoSucceeded(Maven3Builder.java:478)
      13:19:31 at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:459)
      13:19:31 at org.jfrog.build.extractor.maven.BuildInfoRecorder.mojoSucceeded(BuildInfoRecorder.java:241)
      13:19:31 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87)
      13:19:31 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      13:19:31 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228)
      13:19:31 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      13:19:31 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      13:19:31 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      13:19:31 ... 24 more

      causing build to fail.

      Attachments

        Issue Links

          Activity

            timp Tim Pizey added a comment -

            Problem still present in 1.488.
            I tried updating to jna-posix-1.0.3.jar
            ie replacing jna-posix-1.0.1.jar in war/WEB-INF/lib/
            but to no effect.

            Ubuntu 12.0.4
            The code is at
            http://grepcode.com/file/repo1.maven.org/maven2/org.jvnet.hudson.main/hudson-core/1.396/hudson/os/PosixAPI.java
            jna-posix details here:
            http://mvnrepository.com/artifact/org.jruby.ext.posix/jna-posix/1.0.3

            This occurs during maven site build

            timp Tim Pizey added a comment - Problem still present in 1.488. I tried updating to jna-posix-1.0.3.jar ie replacing jna-posix-1.0.1.jar in war/WEB-INF/lib/ but to no effect. Ubuntu 12.0.4 The code is at http://grepcode.com/file/repo1.maven.org/maven2/org.jvnet.hudson.main/hudson-core/1.396/hudson/os/PosixAPI.java jna-posix details here: http://mvnrepository.com/artifact/org.jruby.ext.posix/jna-posix/1.0.3 This occurs during maven site build
            dabrahams Dave Abrahams added a comment -

            I don't think this is really related to Maven. See what I got?

            INFO: Poked subconvert
            Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows.
            java.lang.UnsatisfiedLinkError: Unable to load library 'libc.so.6': com.sun.jna.Native.open(Ljava/lang/String;)J
            at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166)
            at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239)
            at com.sun.jna.Library$Handler.<init>(Library.java:140)
            at com.sun.jna.Native.loadLibrary(Native.java:366)
            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)

            dabrahams Dave Abrahams added a comment - I don't think this is really related to Maven. See what I got? INFO: Poked subconvert Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows. java.lang.UnsatisfiedLinkError: Unable to load library 'libc.so.6': com.sun.jna.Native.open(Ljava/lang/String;)J at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239) at com.sun.jna.Library$Handler.<init>(Library.java:140) at com.sun.jna.Native.loadLibrary(Native.java:366) 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)
            davehunt Dave Hunt added a comment -

            We had a similar issue to this that was resolved by switching to Oracle's JDK.

            davehunt Dave Hunt added a comment - We had a similar issue to this that was resolved by switching to Oracle's JDK.

            Just had an identical issue and switching to Oracle's JDK (1.7) indeed fixed it.

            jakub Jakub Czaplicki added a comment - Just had an identical issue and switching to Oracle's JDK (1.7) indeed fixed it.
            rodrigc Craig Rodrigues added a comment - - edited

            Jenkins has been updated to use JNA 4.1: JENKINS-24521
            Please try again, since this fixes many native library issues.
            The fix will be in Jenkins 1.586 and higher.

            rodrigc Craig Rodrigues added a comment - - edited Jenkins has been updated to use JNA 4.1: JENKINS-24521 Please try again, since this fixes many native library issues. The fix will be in Jenkins 1.586 and higher.

            People

              Unassigned Unassigned
              ravn ravn
              Votes:
              8 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: