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

Getting "java.lang.ClassNotFoundException: com.jcraft.jsch.Buffer" error

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • Ubuntu 12.04.2 LTS
      Jenkins ver. 1.633
      Gerrit Trigger 2.14.0 (same error with 2.16.0)
      GIT client plugin 1.19.0
      GIT plugin 2.4.0
      java version "1.7.0_51"

      After updating our Jenkins server and all plugins I get the "java.lang.ClassNotFoundException: com.jcraft.jsch.Buffer" exception when using the Gerrit Trigger plugin - e.g. Clicking on the "Query and Trigger Gerrit Patches" menu entry

          [JENKINS-30890] Getting "java.lang.ClassNotFoundException: com.jcraft.jsch.Buffer" error

          After downgrading our Jenkins server from 1.633 to 1.624 the Gerrit trigger plugin works again (also with Gerrit Trigger version 2.16.0).

          Christian Rataj-Weinreben added a comment - After downgrading our Jenkins server from 1.633 to 1.624 the Gerrit trigger plugin works again (also with Gerrit Trigger version 2.16.0).

          Orgad Shaneh added a comment -

          I confirm this happens to me too. Regression from 1.632 -> 1.633.

          Orgad Shaneh added a comment - I confirm this happens to me too. Regression from 1.632 -> 1.633.

          After Orgad Shaneh comment I have updated Jenkins. I can also confirm that the Gerrit Trigger version 2.16.0 still works with Jenkins 1.632 .

          Christian Rataj-Weinreben added a comment - After Orgad Shaneh comment I have updated Jenkins. I can also confirm that the Gerrit Trigger version 2.16.0 still works with Jenkins 1.632 .

          Tim College added a comment -

          Confirmed here, too. Now to Google "how to downgrade Jenkins"

          Tim College added a comment - Confirmed here, too. Now to Google "how to downgrade Jenkins"

          Sorry, forgot to post the temporary solution (if you have a Debian/Ubuntu) setup:

          Christian Rataj-Weinreben added a comment - Sorry, forgot to post the temporary solution (if you have a Debian/Ubuntu) setup: from http://pkg.jenkins-ci.org/debian/ download the http://pkg.jenkins-ci.org/debian/binary/jenkins_1.632_all.deb using wget wget http://pkg.jenkins-ci.org/debian/binary/jenkins_1.632_all.deb Install the downloaded package sudo dpkg -i jenkins_1.632_all.deb

          Tim College added a comment - - edited

          Thanks. I'm on redhat, and the solution there is:

          yum downgrade jenkins
          

          Followed by disabling the repo for now.

          Downgrading fixes the issue for me, as well.

          Tim College added a comment - - edited Thanks. I'm on redhat, and the solution there is: yum downgrade jenkins Followed by disabling the repo for now. Downgrading fixes the issue for me, as well.

          Daniel Beck added a comment -

          This issue duplicates JENKINS-30820. While this one has more watchers, the proposed fix(es) reference the other issue, so any progress should be tracked there.

          Daniel Beck added a comment - This issue duplicates JENKINS-30820 . While this one has more watchers, the proposed fix(es) reference the other issue, so any progress should be tracked there.

          As workaround I copied the jsch-0.1.53.jar to the lib folder of my tomcat. It seems to work...

          Christian Zerzuben added a comment - As workaround I copied the jsch-0.1.53.jar to the lib folder of my tomcat. It seems to work...

            Unassigned Unassigned
            cweinreben Christian Rataj-Weinreben
            Votes:
            12 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: