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

Subversion plugin introduces java 6 dependency.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: subversion-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.401
      master CentOs 5.3 x64
      Solaris 10 x64 slave
    • Similar Issues:

      Description

      in order to fix the memory leaks in the bundled subversion plugin we have upgraded the subversion plugin to 1.24.

      However this causes all subversion builds on the solaris machine to fail (the default jdk for the solaris 10 box is java 5 which is what hudson uses to launch the slave agent.)

      Started by user xxx
      Building remotely on jenkins-slave-sol101
      hudson.util.IOException2: remote file operation failed: /path/to/workspace/job_commit at hudson.remoting.Channel@1b523bd4:jenkins-slave-sol10
      	at hudson.FilePath.act(FilePath.java:753)
      	at hudson.FilePath.act(FilePath.java:739)
      	at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:683)
      	at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:632)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1182)
      	at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:521)
      	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      	at hudson.model.Run.run(Run.java:1362)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:441)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:145)
      Caused by: java.io.IOException: Remote call on jenkins-slave-sol10 failed
      	at hudson.remoting.Channel.call(Channel.java:639)
      	at hudson.FilePath.act(FilePath.java:746)
      	... 10 more
      Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
      	at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:151)
      	at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:131)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      	at java.lang.Class.getDeclaredFields0(Native Method)
      	at java.lang.Class.privateGetDeclaredFields(Class.java:2259)
      	at java.lang.Class.getDeclaredField(Class.java:1852)
      	at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1582)
      	at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
      	at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:400)
      	at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
      	at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
      	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
      	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
      	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
      	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
      	at hudson.remoting.UserRequest.deserialize(UserRequest.java:178)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:98)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:270)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
      	at java.lang.Thread.run(Thread.java:595)
      Sending e-mails to: xxx@xxx.xx
      Finished: FAILURE
      

      As jenkins has no dependency on java 6 - the subversion plugin shouldn't either - or it should say so in a nice way and make it clear.

        Attachments

          Activity

          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Fixed in 1.25.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Fixed in 1.25.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: kohsuke
          Path:
          pom.xml
          http://jenkins-ci.org/commit/subversion-plugin/404cb69b465b3af31d0badfb043b33e8ec0a3df4
          Log:
          [FIXED JENKINS-9222] integrating a new jar that has the right class file format

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: kohsuke Path: pom.xml http://jenkins-ci.org/commit/subversion-plugin/404cb69b465b3af31d0badfb043b33e8ec0a3df4 Log: [FIXED JENKINS-9222] integrating a new jar that has the right class file format

            People

            • Assignee:
              kohsuke Kohsuke Kawaguchi
              Reporter:
              teilo James Nord
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: