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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None

      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.

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

              Created:
              Updated:
              Resolved: