java.lang.NoClassDefFoundError: com/jcraft/jzlib/ZStream

Atlassian JIRA | Deric Lee | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    h3. Summary SSH checkout does not work in Bamboo 5.9.9 h3. Steps to Reproduce # Add a _Git_ repository with SSH clone URL # Use ssh private key for authentication (or use user/password authentication) # Create a plan and use the created repository # Start the plan h3. Expected Results The plan should complete successfully with the SSH checkout passing h3. Actual Results The below exception is thrown in the atlassian-bamboo.log file: {noformat} 2016-01-21 04:18:36,233 INFO [10-BAM::PlanExec:pool-17-thread-2] [DefaultErrorHandler] Recording an error: Unable to detect changes : TP-TP : com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/local/bin/git ls-remote ssh://1e9360ab-6bd0-48bf-95b5-b7f9f2accb1d@127.0.0.1:47121/foo/bar.git failed with code 128. Working directory was [.]., stderr: Authenticating remote session failed stdout: [Warning: Permanently added '[127.0.0.1]:47121' (RSA) to the list of known hosts., BAMBOO-SSH-PROXY: [While connecting to [git@bitbucket.org/104.192.143.3:22]: Authenticating remote session failed: Session is closed], fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] 2016-01-21 04:18:48,140 INFO [13-BAM::Default Agent::Agent:pool-28-thread-1] [BuildAgentControllerImpl] Agent 131073 checking build queue for executables... 2016-01-21 04:18:49,353 WARN [PluginSchedulerTask-com.atlassian.bamboo.analytics.basedata.collector.CollectionJob:job] [AuthorizationLoggerListener] Credentials not found: org.acegisecurity.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext; secure object: ReflectiveMethodInvocation: public abstract java.util.List com.atlassian.bamboo.plan.PlanManager.getAllPlans(java.lang.Class); target is of class [com.atlassian.bamboo.plan.PlanManagerImpl]; configuration attributes: [ROLE_USER, ROLE_ANONYMOUS, AFTER_ACL_COLLECTION_READ] 2016-01-21 04:21:32,799 WARN [sshd-SshClient[4772488e]-nio2-thread-2] [ClientSessionImpl] Exception caught java.lang.NoClassDefFoundError: com/jcraft/jzlib/ZStream at org.apache.sshd.common.compression.CompressionZlib.init(CompressionZlib.java:67) at org.apache.sshd.common.session.AbstractSession.receiveNewKeys(AbstractSession.java:1000) at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:366) at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:295) at org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:256) at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:731) at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:277) at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54) at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:187) at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173) at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32) at java.security.AccessController.doPrivileged(Native Method) at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30) at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126) at sun.nio.ch.Invoker$2.run(Invoker.java:218) at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {noformat} h3.Workaround As a workaround, download the attached [^jzlib-1.1.3.jar] and place it in the {{<BambooInstallationDir>/atlassian-bamboo/WEB-INF/lib}} (on Linux) or {{<BambooInstallationDir>\atlassian-bamboo\WEB-INF\lib}} (on Windows) directory and restart Bamboo. Alternatively you can also upgrade to Bamboo 5.10.

    Atlassian JIRA | 1 year ago | Deric Lee [Atlassian]
    java.lang.NoClassDefFoundError: com/jcraft/jzlib/ZStream
  2. 0

    h3. Summary SSH checkout does not work in Bamboo 5.9.9 h3. Steps to Reproduce # Add a _Git_ repository with SSH clone URL # Use ssh private key for authentication (or use user/password authentication) # Create a plan and use the created repository # Start the plan h3. Expected Results The plan should complete successfully with the SSH checkout passing h3. Actual Results The below exception is thrown in the atlassian-bamboo.log file: {noformat} 2016-01-21 04:18:36,233 INFO [10-BAM::PlanExec:pool-17-thread-2] [DefaultErrorHandler] Recording an error: Unable to detect changes : TP-TP : com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/local/bin/git ls-remote ssh://1e9360ab-6bd0-48bf-95b5-b7f9f2accb1d@127.0.0.1:47121/foo/bar.git failed with code 128. Working directory was [.]., stderr: Authenticating remote session failed stdout: [Warning: Permanently added '[127.0.0.1]:47121' (RSA) to the list of known hosts., BAMBOO-SSH-PROXY: [While connecting to [git@bitbucket.org/104.192.143.3:22]: Authenticating remote session failed: Session is closed], fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] 2016-01-21 04:18:48,140 INFO [13-BAM::Default Agent::Agent:pool-28-thread-1] [BuildAgentControllerImpl] Agent 131073 checking build queue for executables... 2016-01-21 04:18:49,353 WARN [PluginSchedulerTask-com.atlassian.bamboo.analytics.basedata.collector.CollectionJob:job] [AuthorizationLoggerListener] Credentials not found: org.acegisecurity.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext; secure object: ReflectiveMethodInvocation: public abstract java.util.List com.atlassian.bamboo.plan.PlanManager.getAllPlans(java.lang.Class); target is of class [com.atlassian.bamboo.plan.PlanManagerImpl]; configuration attributes: [ROLE_USER, ROLE_ANONYMOUS, AFTER_ACL_COLLECTION_READ] 2016-01-21 04:21:32,799 WARN [sshd-SshClient[4772488e]-nio2-thread-2] [ClientSessionImpl] Exception caught java.lang.NoClassDefFoundError: com/jcraft/jzlib/ZStream at org.apache.sshd.common.compression.CompressionZlib.init(CompressionZlib.java:67) at org.apache.sshd.common.session.AbstractSession.receiveNewKeys(AbstractSession.java:1000) at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:366) at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:295) at org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:256) at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:731) at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:277) at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54) at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:187) at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173) at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32) at java.security.AccessController.doPrivileged(Native Method) at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30) at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126) at sun.nio.ch.Invoker$2.run(Invoker.java:218) at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {noformat} h3.Workaround As a workaround, download the attached [^jzlib-1.1.3.jar] and place it in the {{<BambooInstallationDir>/atlassian-bamboo/WEB-INF/lib}} (on Linux) or {{<BambooInstallationDir>\atlassian-bamboo\WEB-INF\lib}} (on Windows) directory and restart Bamboo. Alternatively you can also upgrade to Bamboo 5.10.

    Atlassian JIRA | 1 year ago | Deric Lee
    java.lang.NoClassDefFoundError: com/jcraft/jzlib/ZStream

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      com/jcraft/jzlib/ZStream

      at org.apache.sshd.common.compression.CompressionZlib.init()
    2. Apache Mina SSHD :: Core
      Nio2CompletionHandler$1.run
      1. org.apache.sshd.common.compression.CompressionZlib.init(CompressionZlib.java:67)
      2. org.apache.sshd.common.session.AbstractSession.receiveNewKeys(AbstractSession.java:1000)
      3. org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:366)
      4. org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:295)
      5. org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:256)
      6. org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:731)
      7. org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:277)
      8. org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
      9. org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:187)
      10. org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
      11. org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
      11 frames
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    4. Apache Mina SSHD :: Core
      Nio2CompletionHandler.completed
      1. org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
      1 frame
    5. Java RT
      Thread.run
      1. sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
      2. sun.nio.ch.Invoker$2.run(Invoker.java:218)
      3. sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      6. java.lang.Thread.run(Thread.java:745)
      6 frames