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

Impossible to build on Jenkins 2.414.2 - Jackson/Joda time issue on Gitlab API calls

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • aws-java-sdk-plugin
    • None
    • Jenkins 2.414.2

      When we want to build a package using Jenkins dsl (using classic scm checkout) we have an issue. There is a problem with Jackson/Joda time on Gitlab API calls.

      So this is impossible to checkout the project in Jenkins.

      I've tried to update with the latest Jenkins BOM to be sure but I still have the issue. 

      Please find the logs in attachment.

      The plugin version is the latest.

      Exception caught:org.gitlab4j.api.GitLabApiException: A MultiException has 2 exceptions. They are: 1. java.util.ServiceConfigurationError: com.fasterxml.jackson.databind.Module: Provider com.fasterxml.jackson.datatype.joda.JodaModule could not be instantiated 2. java.lang.IllegalStateException: Unable to perform operation: post construct on org.glassfish.jersey.jackson.internal.DefaultJacksonJaxbJsonProvider MultiException stack 1 of 2 java.util.ServiceConfigurationError: com.fasterxml.jackson.databind.Module: Provider com.fasterxml.jackson.datatype.joda.JodaModule could not be instantiated

          [JENKINS-72297] Impossible to build on Jenkins 2.414.2 - Jackson/Joda time issue on Gitlab API calls

          Mark Waite added a comment -

          I can't duplicate the issue as reported. Can you provide more details so that others can duplicate the issue?

          "How to report an issue" includes many suggestions of items that can help others to duplicate an issue. It is especially important to include the list of plugins and their precise versions.

          Mark Waite added a comment - I can't duplicate the issue as reported. Can you provide more details so that others can duplicate the issue? "How to report an issue" includes many suggestions of items that can help others to duplicate an issue. It is especially important to include the list of plugins and their precise versions .

          Hello,

          Please find the list of plugins.

          plugins.txt

           

          On my side, I'm trying to debug to find which plugins can be involved in this issue.

          Christophe MICHAUX added a comment - Hello, Please find the list of plugins. plugins.txt   On my side, I'm trying to debug to find which plugins can be involved in this issue.

          In fact, it seems some plugins are using other (old) versions of Joda Time.

          You are using 2.10.2 (by the usage of handy-uri-templates dependency) and aws-sdk-java Jenkins plugin is using 2.8.1

          Your plugin

          [INFO] +- org.jenkins-ci.plugins:handy-uri-templates-2-api:jar:2.1.8-22.v77d5b_75e6953:compile
          [INFO] |  - com.damnhandy:handy-uri-templates:jar:2.1.8:compile
          [INFO] |     - joda-time:joda-time:jar:2.10.2:compile

           

           

          AWS
          [INFO] +- org.jenkins-ci.plugins.aws-java-sdk:aws-java-sdk-ecr:jar:1.12.529-406.vdeff15e5817d:compile
          [INFO] |  +- org.jenkins-ci.plugins.aws-java-sdk:aws-java-sdk-minimal:jar:1.12.529-406.vdeff15e5817d:compile
          [INFO] |  |  +- com.amazonaws:aws-java-sdk-core:jar:1.12.529:compile
          [INFO] |  |  |  +- software.amazon.ion:ion-java:jar:1.0.2:compile
          [INFO] |  |  |  - joda-time:joda-time:jar:2.8.1:compile

           

           

          So it seems I'm stuck, I don't know how to handle that. That's why I've a ClassNotFoundException

           

          Christophe MICHAUX added a comment - In fact, it seems some plugins are using other (old) versions of Joda Time. You are using 2.10.2 (by the usage of handy-uri-templates dependency) and aws-sdk-java Jenkins plugin is using 2.8.1 Your plugin [INFO] +- org.jenkins-ci.plugins:handy-uri-templates-2-api:jar:2.1.8-22.v77d5b_75e6953:compile [INFO] |  - com.damnhandy:handy-uri-templates:jar:2.1.8:compile [INFO] |     - joda-time:joda-time:jar:2.10.2:compile     AWS [INFO] +- org.jenkins-ci.plugins.aws-java-sdk:aws-java-sdk-ecr:jar:1.12.529-406.vdeff15e5817d:compile [INFO] |  +- org.jenkins-ci.plugins.aws-java-sdk:aws-java-sdk-minimal:jar:1.12.529-406.vdeff15e5817d:compile [INFO] |  |  +- com.amazonaws:aws-java-sdk-core:jar:1.12.529:compile [INFO] |  |  |  +- software.amazon.ion:ion-java:jar:1.0.2:compile [INFO] |  |  |  - joda-time:joda-time:jar:2.8.1:compile     So it seems I'm stuck, I don't know how to handle that. That's why I've a ClassNotFoundException  

          Mark Waite added a comment -

          The release of the Joda API plugin and the replacement of the transitive dependency in the AWS SDK plugin with an explicit dependency on the Joda API plugin should resolve this issue.

          Mark Waite added a comment - The release of the Joda API plugin and the replacement of the transitive dependency in the AWS SDK plugin with an explicit dependency on the Joda API plugin should resolve this issue.

            baymac Parichay Barpanda
            chrismcx Christophe MICHAUX
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: