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

Docker Build Step Plugin: Unable to correctly install

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Unable to successfully install the docker buildstep plugin - apparent API mismatch.
      Plugin install log:
      java.io.IOException: Failed to dynamically deploy this plugin
      at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1322)
      at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1121)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
      at java.lang.Thread.run(Thread.java:679)
      Caused by: java.io.IOException: Failed to initialize docker-build-step plugin
      at hudson.PluginManager.dynamicLoad(PluginManager.java:488)
      at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1318)
      ... 6 more
      Caused by: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
      at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
      at jenkins.InitReactorRunner.run(InitReactorRunner.java:44)
      at hudson.PluginManager.dynamicLoad(PluginManager.java:486)
      ... 7 more
      Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException
      at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110)
      at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:176)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      ... 1 more
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:106)
      ... 7 more
      Caused by: java.lang.UnsupportedClassVersionError: com/github/dockerjava/api/model/ExposedPort : Unsupported major.minor version 51.0
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
      at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1138)
      at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:799)
      at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1309)
      at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1365)
      at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325)
      at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
      at org.jenkinsci.plugins.dockerbuildstep.PluginImpl.addXStreamAliases(PluginImpl.java:19)
      ... 12 more

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          It looks like the Docker-Java library requires Java 7 to run.

          Show
          danielbeck Daniel Beck added a comment - It looks like the Docker-Java library requires Java 7 to run.
          Hide
          vjuranek vjuranek added a comment -

          yes, docker-java library is built for JDK7. I released 1.22 with docker-java rebuilt with JDK6, but as it's a 3rd party dependency, I'm not going to fix and rebuilt it every time (and hardly to push it into docker-java upstream as JDK6 is 2 year EOL), so this is probably the only release with JDK6 support.

          Show
          vjuranek vjuranek added a comment - yes, docker-java library is built for JDK7. I released 1.22 with docker-java rebuilt with JDK6, but as it's a 3rd party dependency, I'm not going to fix and rebuilt it every time (and hardly to push it into docker-java upstream as JDK6 is 2 year EOL), so this is probably the only release with JDK6 support.
          Hide
          jmellor John Mellor added a comment -

          Recommended solution to move from JDK-6 to JDK-7 works and seems reasonable.

          Show
          jmellor John Mellor added a comment - Recommended solution to move from JDK-6 to JDK-7 works and seems reasonable.

            People

            • Assignee:
              vjuranek vjuranek
              Reporter:
              jmellor John Mellor
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: