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

Subversion java.lang.NoClassDefFoundError: org/tmatesoft/svn/core/auth/ISVNAuthenticationProvider

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • subversion-plugin

      Hi, I just installed Jenkins on a new windows box. I'm having issues getting the subversion plugin to load. I'm trying to use 1.34 (tried updating to 1.37 and it didn't take). Any thoughts?
      The log is below... my system properties are below that:Jan 17, 2012 4:50:59 PM hudson.WebAppMain$2 run
      INFO: Jenkins is fully up and running
      Jan 17, 2012 4:50:48 PM hudson.TcpSlaveAgentListener <init>
      INFO: JNLP slave agent listener started on TCP port 54561
      Jan 17, 2012 4:50:48 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Completed initialization
      Jan 17, 2012 4:50:48 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Loaded all jobs
      Jan 17, 2012 4:50:46 PM hudson.ExtensionFinder$AbstractGuiceFinder$SezpozModule configure
      WARNING: Failed to load hudson.scm.listtagsparameter.ListSubversionTagsParameterDefinition$DescriptorImpl
      java.lang.NoClassDefFoundError: org/tmatesoft/svn/core/auth/ISVNAuthenticationProvider
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
      at java.lang.Class.privateGetPublicMethods(Unknown Source)
      at java.lang.Class.getMethods(Unknown Source)
      at hudson.ExtensionFinder$AbstractGuiceFinder$SezpozModule.resolve(ExtensionFinder.java:409)
      at hudson.ExtensionFinder$AbstractGuiceFinder$SezpozModule.configure(ExtensionFinder.java:430)
      at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
      at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:229)
      at com.google.inject.spi.Elements.getElements(Elements.java:103)
      at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136)
      at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
      at com.google.inject.Guice.createInjector(Guice.java:94)
      at com.google.inject.Guice.createInjector(Guice.java:71)
      at hudson.ExtensionFinder$AbstractGuiceFinder.<init>(ExtensionFinder.java:243)
      at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:186)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at java.lang.Class.newInstance0(Unknown Source)
      at java.lang.Class.newInstance(Unknown Source)
      at net.java.sezpoz.IndexItem.instance(IndexItem.java:181)
      at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:561)
      at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:536)
      at hudson.ExtensionFinder._find(ExtensionFinder.java:147)
      at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:289)
      at hudson.ExtensionList.load(ExtensionList.java:278)
      at hudson.ExtensionList.ensureLoaded(ExtensionList.java:231)
      at hudson.ExtensionList.iterator(ExtensionList.java:138)
      at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:282)
      at hudson.ExtensionList.load(ExtensionList.java:278)
      at hudson.ExtensionList.ensureLoaded(ExtensionList.java:231)
      at hudson.ExtensionList.iterator(ExtensionList.java:138)
      at hudson.model.listeners.SaveableListener.fireOnChange(SaveableListener.java:77)
      at hudson.model.UpdateCenter.save(UpdateCenter.java:435)
      at hudson.util.PersistedList.onModified(PersistedList.java:152)
      at hudson.util.PersistedList.replaceBy(PersistedList.java:79)
      at hudson.model.UpdateCenter.load(UpdateCenter.java:449)
      at hudson.model.UpdateCenter.init(UpdateCenter.java:1369)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120)
      at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      at jenkins.model.Jenkins$5.runTask(Jenkins.java:812)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ClassNotFoundException: org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 52 more
      Jan 17, 2012 4:50:46 PM hudson.ExtensionFinder$AbstractGuiceFinder$SezpozModule configure
      WARNING: Failed to load hudson.scm.SubversionSCM$DescriptorImpl
      java.lang.NoClassDefFoundError: org/tmatesoft/svn/core/SVNException
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
      at java.lang.Class.privateGetPublicMethods(Unknown Source)
      at java.lang.Class.getMethods(Unknown Source)
      at hudson.ExtensionFinder$AbstractGuiceFinder$SezpozModule.resolve(ExtensionFinder.java:409)
      at hudson.ExtensionFinder$AbstractGuiceFinder$SezpozModule.configure(ExtensionFinder.java:430)
      at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
      at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:229)
      at com.google.inject.spi.Elements.getElements(Elements.java:103)
      at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136)
      at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
      at com.google.inject.Guice.createInjector(Guice.java:94)
      at com.google.inject.Guice.createInjector(Guice.java:71)
      at hudson.ExtensionFinder$AbstractGuiceFinder.<init>(ExtensionFinder.java:243)
      at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:186)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at java.lang.Class.newInstance0(Unknown Source)
      at java.lang.Class.newInstance(Unknown Source)
      at net.java.sezpoz.IndexItem.instance(IndexItem.java:181)
      at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:561)
      at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:536)
      at hudson.ExtensionFinder._find(ExtensionFinder.java:147)
      at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:289)
      at hudson.ExtensionList.load(ExtensionList.java:278)
      at hudson.ExtensionList.ensureLoaded(ExtensionList.java:231)
      at hudson.ExtensionList.iterator(ExtensionList.java:138)
      at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:282)
      at hudson.ExtensionList.load(ExtensionList.java:278)
      at hudson.ExtensionList.ensureLoaded(ExtensionList.java:231)
      at hudson.ExtensionList.iterator(ExtensionList.java:138)
      at hudson.model.listeners.SaveableListener.fireOnChange(SaveableListener.java:77)
      at hudson.model.UpdateCenter.save(UpdateCenter.java:435)
      at hudson.util.PersistedList.onModified(PersistedList.java:152)
      at hudson.util.PersistedList.replaceBy(PersistedList.java:79)
      at hudson.model.UpdateCenter.load(UpdateCenter.java:449)
      at hudson.model.UpdateCenter.init(UpdateCenter.java:1369)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120)
      at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      at jenkins.model.Jenkins$5.runTask(Jenkins.java:812)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ClassNotFoundException: org.tmatesoft.svn.core.SVNException
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 52 more
      Jan 17, 2012 4:50:45 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Augmented all extensions
      Jan 17, 2012 4:50:45 PM hudson.ExtensionFinder$Sezpoz scout
      WARNING: Failed to scout hudson.scm.SubversionSCM$DescriptorImpl
      java.lang.NoClassDefFoundError: org/tmatesoft/svn/core/SVNException
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Unknown Source)
      at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:599)
      at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:283)
      at hudson.ExtensionList.load(ExtensionList.java:278)
      at hudson.ExtensionList.ensureLoaded(ExtensionList.java:231)
      at hudson.ExtensionList.iterator(ExtensionList.java:138)
      at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:282)
      at hudson.ExtensionList.load(ExtensionList.java:278)
      at hudson.ExtensionList.ensureLoaded(ExtensionList.java:231)
      at hudson.ExtensionList.iterator(ExtensionList.java:138)
      at hudson.model.listeners.SaveableListener.fireOnChange(SaveableListener.java:77)
      at hudson.model.UpdateCenter.save(UpdateCenter.java:435)
      at hudson.util.PersistedList.onModified(PersistedList.java:152)
      at hudson.util.PersistedList.replaceBy(PersistedList.java:79)
      at hudson.model.UpdateCenter.load(UpdateCenter.java:449)
      at hudson.model.UpdateCenter.init(UpdateCenter.java:1369)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120)
      at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      at jenkins.model.Jenkins$5.runTask(Jenkins.java:812)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ClassNotFoundException: org.tmatesoft.svn.core.SVNException
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 30 more
      Jan 17, 2012 4:50:45 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Started all plugins
      Jan 17, 2012 4:50:45 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Prepared all plugins
      Jan 17, 2012 4:50:45 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Listed all plugins
      Jan 17, 2012 4:50:45 PM hudson.PluginManager$1$3$1 isDuplicate
      INFO: Ignoring C:\Program Files (x86)\Jenkins\plugins\subversion.jpi because C:\Program Files (x86)\Jenkins\plugins\subversion.hpi is already loaded
      Jan 17, 2012 4:50:39 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Started initialization

          [JENKINS-12449] Subversion java.lang.NoClassDefFoundError: org/tmatesoft/svn/core/auth/ISVNAuthenticationProvider

          Robert Kangas created issue -

          I am also having the exact same problem. Upgraded jenkins from version 1.440 to 1.448 together with the subversion plugin. I am running jenkins on a Linux box.

          Morten Solberg added a comment - I am also having the exact same problem. Upgraded jenkins from version 1.440 to 1.448 together with the subversion plugin. I am running jenkins on a Linux box.

          I managed to fix my installation. I did this by doing the following:

          • Downgrade jenkins, restart
          • Disable subversion plugin, restart
          • Upgrade jenkins, restart
          • Enable subversion plugin, restart
          • Edit each build configuration, enable subversion, save.
            Doing this fixed all my builds.

          Morten Solberg added a comment - I managed to fix my installation. I did this by doing the following: Downgrade jenkins, restart Disable subversion plugin, restart Upgrade jenkins, restart Enable subversion plugin, restart Edit each build configuration, enable subversion, save. Doing this fixed all my builds.
          karianna made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]

          karianna added a comment -

          Same occurs with Mac installation, haven't tried manual fix steps ala Morten

          karianna added a comment - Same occurs with Mac installation, haven't tried manual fix steps ala Morten

          Just a thought :

          in the logs you have the following message

          Jan 17, 2012 4:50:45 PM hudson.PluginManager$1$3$1 isDuplicate
          INFO: Ignoring C:\Program Files (x86)\Jenkins\plugins\subversion.jpi because C:\Program Files (x86)\Jenkins\plugins\subversion.hpi is already loaded
          

          can you try removing the .hpi file (while still keeping a backup of it somewhere) and restart jenkins ?

          .hpi is the old naming for hudson plugins while .jpi is the newest jenkins plugin naming, might be a problem of still using an older version of the plugin while some conf have the newest classes... just a thought

          Richard Lavoie added a comment - Just a thought : in the logs you have the following message Jan 17, 2012 4:50:45 PM hudson.PluginManager$1$3$1 isDuplicate INFO: Ignoring C:\Program Files (x86)\Jenkins\plugins\subversion.jpi because C:\Program Files (x86)\Jenkins\plugins\subversion.hpi is already loaded can you try removing the .hpi file (while still keeping a backup of it somewhere) and restart jenkins ? .hpi is the old naming for hudson plugins while .jpi is the newest jenkins plugin naming, might be a problem of still using an older version of the plugin while some conf have the newest classes... just a thought

          I tried removing the subversion.hpi file, but Jenkins seemed to keep resurrecting it. Finally I found that renaming subversion.jpi to subversion.hpi prevented the resurrection and Jenkins started up fine.

          Richard Eckart de Castilho added a comment - I tried removing the subversion.hpi file, but Jenkins seemed to keep resurrecting it. Finally I found that renaming subversion.jpi to subversion.hpi prevented the resurrection and Jenkins started up fine.

          Vite Falcon added a comment - - edited

          Thanks to 'Richard Eckart de Castilho', I've managed to get it installed correctly. Here are the steps I took to get it working:

          1. Goto 'Installed Plugins' and untick 'Subversion Plugin' and restart Jenkins to be safe.
          2. Select 'Subversion Plugin' and click 'Download now and install after restart'.
          3. Inside the plugins directory (${JENKINS_HOME}/plugins/ directory), backup/delete subversion.hpi and subversion.backup file.
          4. Copy and rename subversion.jpi to subversion.hpi.
          5. Restart Jenkins.
          6. Goto 'Installed Plugins' and enable 'Subversion Plugin' and restart Jenkins.

          Now when you go to manage plugins, it should say that there are no updates for 'Subversion Plugin' and when you go into installed plugins, it should say the current version installed as 1.37

          Vite Falcon added a comment - - edited Thanks to 'Richard Eckart de Castilho', I've managed to get it installed correctly. Here are the steps I took to get it working: Goto 'Installed Plugins' and untick 'Subversion Plugin' and restart Jenkins to be safe. Select 'Subversion Plugin' and click 'Download now and install after restart'. Inside the plugins directory (${JENKINS_HOME}/plugins/ directory), backup/delete subversion.hpi and subversion.backup file. Copy and rename subversion.jpi to subversion.hpi . Restart Jenkins. Goto 'Installed Plugins' and enable 'Subversion Plugin' and restart Jenkins. Now when you go to manage plugins, it should say that there are no updates for 'Subversion Plugin' and when you go into installed plugins, it should say the current version installed as 1.37

          Same problem, observed this on Windows 7 and on Linux (Debian). It seems that this problem appears when trying to upgrade from 1.447 or lower to 1.448 or higher. Probably related issue - JENKINS-12514.

          Artem Karpenko added a comment - Same problem, observed this on Windows 7 and on Linux (Debian). It seems that this problem appears when trying to upgrade from 1.447 or lower to 1.448 or higher. Probably related issue - JENKINS-12514 .
          karianna made changes -
          Link New: This issue depends on JENKINS-12514 [ JENKINS-12514 ]

            Unassigned Unassigned
            digitalsingularity Robert Kangas
            Votes:
            10 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: