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

java.lang.NoSuchMethodError: 'boolean org.apache.commons.lang.StringUtils.endsWithAny(java.lang.String, java.lang.String[])'

      We have a bunch of jenkins jobs. Most of them work, but  some fail with a strange error:

      jenkins 2.308 or 2.309 wirh maven integration 3.10 or 3.12

      Modules changed, recalculating dependency graph
      Established TCP socket on 34409
      maven35-agent.jar already up to date
      maven35-interceptor.jar already up to date
      maven3-interceptor-commons.jar already up to date
      [puzzle-app2] $ java -cp /data/jenkins/maven35-agent.jar:/data/jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.6.2/boot/plexus-classworlds-2.6.0.jar:/data/jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.6.2/conf/logging jenkins.maven3.agent.Maven35Main /data/jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.6.2 /data/jenkins/remoting.jar /data/jenkins/maven35-interceptor.jar /data/jenkins/maven3-interceptor-commons.jar 34409
      <===[JENKINS REMOTING CAPACITY]===>channel started
      Sep 02, 2021 10:08:15 AM hudson.remoting.UserRequest perform
      WARNING: LinkageError while performing UserRequest:hudson.maven.Maven3Builder@65c10514
      java.lang.NoSuchMethodError: 'boolean org.apache.commons.lang.StringUtils.endsWithAny(java.lang.String, java.lang.String[])'
      	at org.jenkins.ui.icon.Icon.toNormalizedIconName(Icon.java:221)
      	at hudson.model.BallColor.<init>(BallColor.java:82)
      	at hudson.model.BallColor.<clinit>(BallColor.java:57)
      	at hudson.model.Result.<clinit>(Result.java:58)
      	at java.base/java.lang.Class.forName0(Native Method)
      	at java.base/java.lang.Class.forName(Class.java:315)
      	at com.sun.proxy.$Proxy6.<clinit>(Unknown Source)
      	at jdk.internal.reflect.GeneratedSerializationConstructorAccessor49.newInstance(Unknown Source)
      	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
      	at java.base/java.io.ObjectStreamClass.newInstance(ObjectStreamClass.java:1092)
      	at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2180)
      	at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679)
      	at java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2464)
      	at java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2358)
      	at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196)
      	at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679)
      	at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:493)
      	at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:451)
      	at java.base/java.util.HashMap.readObject(HashMap.java:1460)
      	at java.base/jdk.internal.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at java.base/java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1175)
      	at java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2325)
      	at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196)
      	at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679)
      	at java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2464)
      	at java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2358)
      	at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196)
      	at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679)
      	at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:493)
      	at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:451)
      	at hudson.remoting.UserRequest.deserialize(UserRequest.java:289)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:189)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      	at hudson.remoting.Request$2.run(Request.java:376)
      	at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:829)
      
      channel stopped
      ERROR: Failed to parse POMs
      java.io.IOException: Remote call on Channel to Maven [java, -cp, /data/jenkins/maven35-agent.jar:/data/jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.6.2/boot/plexus-classworlds-2.6.0.jar:/data/jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.6.2/conf/logging, jenkins.maven3.agent.Maven35Main, /data/jenkins/tools/hudson.tasks.Maven_MavenInstallation/apache-maven-3.6.2, /data/jenkins/remoting.jar, /data/jenkins/maven35-interceptor.jar, /data/jenkins/maven3-interceptor-commons.jar, 34409] failed
      	at hudson.remoting.Channel.call(Channel.java:1005)
      	at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:161)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:877)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:516)
      	at hudson.model.Run.execute(Run.java:1889)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      	at hudson.model.ResourceController.execute(ResourceController.java:100)
      	at hudson.model.Executor.run(Executor.java:433)
      Caused by: java.lang.NoSuchMethodError: 'boolean org.apache.commons.lang.StringUtils.endsWithAny(java.lang.String, java.lang.String[])'
      	at org.jenkins.ui.icon.Icon.toNormalizedIconName(Icon.java:221)
      	at hudson.model.BallColor.<init>(BallColor.java:82)
      	at hudson.model.BallColor.<clinit>(BallColor.java:57)
      	at hudson.model.Result.<clinit>(Result.java:58)
      	at java.base/java.lang.Class.forName0(Native Method)
      	at java.base/java.lang.Class.forName(Class.java:315)
      	at com.sun.proxy.$Proxy6.<clinit>(Unknown Source)
      	at jdk.internal.reflect.GeneratedSerializationConstructorAccessor49.newInstance(Unknown Source)
      	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
      	at java.base/java.io.ObjectStreamClass.newInstance(ObjectStreamClass.java:1092)
      	at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2180)
      	at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679)
      	at java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2464)
      	at java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2358)
      	at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196)
      	at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679)
      	at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:493)
      	at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:451)
      	at java.base/java.util.HashMap.readObject(HashMap.java:1460)
      	at java.base/jdk.internal.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at java.base/java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1175)
      	at java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2325)
      	at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196)
      	at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679)
      	at java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2464)
      	at java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2358)
      	at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196)
      	at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679)
      	at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:493)
      	at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:451)
      	at hudson.remoting.UserRequest.deserialize(UserRequest.java:289)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:189)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      	at hudson.remoting.Request$2.run(Request.java:376)
      	at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:829)
      
      

          [JENKINS-66522] java.lang.NoSuchMethodError: 'boolean org.apache.commons.lang.StringUtils.endsWithAny(java.lang.String, java.lang.String[])'

          Tim Jacomb added a comment - - edited

          Please provide the required info: https://www.jenkins.io/participate/report-issue/#Howtoreportanissue-WhatinformationtoprovideforEnvironmentandDescription

          This API has been present since commons-lang 2.6

          Tim Jacomb added a comment - - edited Please provide the required info: https://www.jenkins.io/participate/report-issue/#Howtoreportanissue-WhatinformationtoprovideforEnvironmentandDescription This API has been present since commons-lang 2.6

          Norbert Weiß added a comment - - edited
          Jenkins: 2.308
          OS: Linux - 4.4.0-210-generic
          ---
          plugin-util-api:2.4.0
          h2-api:1.4.199
          subversion:2.14.4
          plain-credentials:1.7
          workflow-aggregator:2.6
          git-parameter:0.9.13
          ssh-credentials:1.19
          jjwt-api:0.11.2-9.c8b45b8bb173
          resource-disposer:0.16
          github:1.34.0
          pipeline-stage-step:2.5
          pubsub-light:1.16
          workflow-multibranch:2.26
          caffeine-api:2.9.2-29.v717aac953ff3
          seleniumhq:0.4
          credentials:2.5
          jackson2-api:2.12.4
          jenkins-design-language:1.24.8
          blueocean-web:1.24.8
          blueocean-pipeline-api-impl:1.24.8
          pipeline-model-definition:1.9.1
          gradle:1.37.1
          jira:3.5
          blueocean-pipeline-scm-api:1.24.8
          pipeline-stage-view:2.19
          workflow-basic-steps:2.24
          blueocean-rest-impl:1.24.8
          pipeline-graph-analysis:1.11
          workflow-support:3.8
          extensible-choice-parameter:1.8.0
          bootstrap5-api:5.1.0-3
          external-monitor-job:1.7
          ruby-runtime:0.13
          snakeyaml-api:1.29.1
          workflow-step-api:2.24
          ssh-slaves:1.33.0
          sonar:2.13.1
          blueocean-events:1.24.8
          bouncycastle-api:2.24
          pipeline-milestone-step:1.3.2
          docker-workflow:1.26
          bootstrap4-api:4.6.0-3
          pipeline-npm:0.9.2
          ivy:2.1
          docker-commons:1.17
          maven-info:0.3.0
          gitlab-plugin:1.5.20
          seleniumhtmlreport:1.1
          nodejs:1.4.0
          script-security:1.78
          credentials-binding:1.27
          sse-gateway:1.24
          authentication-tokens:1.4
          rebuild:1.32
          blueocean-display-url:2.4.1
          forensics-api:1.3.0
          console-column-plugin:1.5
          run-condition:1.5
          warnings-ng:9.5.0
          git-server:1.10
          blueocean-jira:1.24.8
          mattermost:3.1.1
          blueocean-commons:1.24.8
          blueocean-pipeline-editor:1.24.8
          ws-cleanup:0.39
          popper2-api:2.9.3-1
          sshd:3.1.0
          favorite:2.3.3
          uno-choice:2.5.6
          git:4.8.2
          pipeline-build-step:2.15
          workflow-durable-task-step:2.39
          metrics:4.0.2.8
          support-core:2.75
          matrix-auth:2.6.8
          jquery-detached:1.2.1
          disk-usage:0.28
          command-launcher:1.6
          trilead-api:1.0.13
          htmlpublisher:1.25
          checks-api:1.7.2
          jquery3-api:3.6.0-2
          handy-uri-templates-2-api:2.1.8-1.0
          blueocean-i18n:1.24.8
          nexus-artifact-uploader:2.13
          workflow-api:2.46
          pipeline-input-step:2.12
          pipeline-model-api:1.9.1
          plot:2.1.9
          blueocean-core-js:1.24.8
          blueocean-autofavorite:1.2.4
          ant:1.11
          structs:1.23
          handlebars:3.0.8
          blueocean-personalization:1.24.8
          variant:1.4
          apache-httpcomponents-client-4-api:4.5.13-1.0
          font-awesome-api:5.15.4-1
          active-directory:2.24
          ssh-agent:1.23
          jdk-tool:1.5
          translation:1.16
          workflow-job:2.41
          windows-slaves:1.8
          jobConfigHistory:2.28.1
          workflow-cps:2.93
          cloudbees-folder:6.16
          jaxb:2.3.0.1
          popper-api:1.16.1-2
          blueocean-jwt:1.24.8
          blueocean-git-pipeline:1.24.8
          durable-task:1.39
          workflow-cps-global-lib:2.21
          jsch:0.1.55.2
          artifactory:3.13.0
          mapdb-api:1.0.9.0
          antisamy-markup-formatter:2.1
          gitlab-hook:1.4.2
          plugin-usage-plugin:1.2
          pam-auth:1.6
          token-macro:266.v44a80cf277fd
          workflow-scm-step:2.13
          cloudbees-bitbucket-branch-source:2.9.11
          blueocean-github-pipeline:1.24.8
          mailer:1.34
          analysis-model-api:10.3.0
          okhttp-api:3.14.9
          docker-build-publish:1.3.3
          github-api:1.123
          git-client:3.9.0
          greenballs:1.15.1
          copyartifact:1.46.1
          pipeline-stage-tags-metadata:1.9.1
          m2release:0.16.2
          blueocean-rest:1.24.8
          jquery:1.12.4-1
          systemloadaverage-monitor:1.2
          pipeline-model-extensions:1.9.1
          matrix-project:1.19
          pipeline-maven:3.10.0
          javadoc:1.6
          maven-plugin:3.10
          config-file-provider:3.8.1
          github-branch-source:2.11.2
          data-tables-api:1.10.25-3
          lockable-resources:2.11
          blueocean-config:1.24.8
          echarts-api:5.1.2-11
          ldap:2.7
          branch-api:2.6.5
          ace-editor:1.1
          blueocean-bitbucket-pipeline:1.24.8
          pipeline-rest-api:2.19
          repo:1.14.0
          display-url-api:2.3.5
          momentjs:1.1.1
          nexus-jenkins-plugin:3.11.20210827-120909.86ad130
          blueocean:1.24.8
          junit:1.52
          scm-api:2.6.5
          blueocean-dashboard:1.24.8
          metadata:1.1.0b
          

          Norbert Weiß added a comment - - edited Jenkins: 2.308 OS: Linux - 4.4.0-210- generic --- plugin-util-api:2.4.0 h2-api:1.4.199 subversion:2.14.4 plain-credentials:1.7 workflow-aggregator:2.6 git-parameter:0.9.13 ssh-credentials:1.19 jjwt-api:0.11.2-9.c8b45b8bb173 resource-disposer:0.16 github:1.34.0 pipeline-stage-step:2.5 pubsub-light:1.16 workflow-multibranch:2.26 caffeine-api:2.9.2-29.v717aac953ff3 seleniumhq:0.4 credentials:2.5 jackson2-api:2.12.4 jenkins-design-language:1.24.8 blueocean-web:1.24.8 blueocean-pipeline-api-impl:1.24.8 pipeline-model-definition:1.9.1 gradle:1.37.1 jira:3.5 blueocean-pipeline-scm-api:1.24.8 pipeline-stage-view:2.19 workflow-basic-steps:2.24 blueocean- rest -impl:1.24.8 pipeline-graph-analysis:1.11 workflow-support:3.8 extensible-choice-parameter:1.8.0 bootstrap5-api:5.1.0-3 external-monitor-job:1.7 ruby-runtime:0.13 snakeyaml-api:1.29.1 workflow-step-api:2.24 ssh-slaves:1.33.0 sonar:2.13.1 blueocean-events:1.24.8 bouncycastle-api:2.24 pipeline-milestone-step:1.3.2 docker-workflow:1.26 bootstrap4-api:4.6.0-3 pipeline-npm:0.9.2 ivy:2.1 docker-commons:1.17 maven-info:0.3.0 gitlab-plugin:1.5.20 seleniumhtmlreport:1.1 nodejs:1.4.0 script-security:1.78 credentials-binding:1.27 sse-gateway:1.24 authentication-tokens:1.4 rebuild:1.32 blueocean-display-url:2.4.1 forensics-api:1.3.0 console-column-plugin:1.5 run-condition:1.5 warnings-ng:9.5.0 git-server:1.10 blueocean-jira:1.24.8 mattermost:3.1.1 blueocean-commons:1.24.8 blueocean-pipeline-editor:1.24.8 ws-cleanup:0.39 popper2-api:2.9.3-1 sshd:3.1.0 favorite:2.3.3 uno-choice:2.5.6 git:4.8.2 pipeline-build-step:2.15 workflow-durable-task-step:2.39 metrics:4.0.2.8 support-core:2.75 matrix-auth:2.6.8 jquery-detached:1.2.1 disk-usage:0.28 command-launcher:1.6 trilead-api:1.0.13 htmlpublisher:1.25 checks-api:1.7.2 jquery3-api:3.6.0-2 handy-uri-templates-2-api:2.1.8-1.0 blueocean-i18n:1.24.8 nexus-artifact-uploader:2.13 workflow-api:2.46 pipeline-input-step:2.12 pipeline-model-api:1.9.1 plot:2.1.9 blueocean-core-js:1.24.8 blueocean-autofavorite:1.2.4 ant:1.11 structs:1.23 handlebars:3.0.8 blueocean-personalization:1.24.8 variant:1.4 apache-httpcomponents-client-4-api:4.5.13-1.0 font-awesome-api:5.15.4-1 active-directory:2.24 ssh-agent:1.23 jdk-tool:1.5 translation:1.16 workflow-job:2.41 windows-slaves:1.8 jobConfigHistory:2.28.1 workflow-cps:2.93 cloudbees-folder:6.16 jaxb:2.3.0.1 popper-api:1.16.1-2 blueocean-jwt:1.24.8 blueocean-git-pipeline:1.24.8 durable-task:1.39 workflow-cps-global-lib:2.21 jsch:0.1.55.2 artifactory:3.13.0 mapdb-api:1.0.9.0 antisamy-markup-formatter:2.1 gitlab-hook:1.4.2 plugin-usage-plugin:1.2 pam-auth:1.6 token-macro:266.v44a80cf277fd workflow-scm-step:2.13 cloudbees-bitbucket-branch-source:2.9.11 blueocean-github-pipeline:1.24.8 mailer:1.34 analysis-model-api:10.3.0 okhttp-api:3.14.9 docker-build-publish:1.3.3 github-api:1.123 git-client:3.9.0 greenballs:1.15.1 copyartifact:1.46.1 pipeline-stage-tags-metadata:1.9.1 m2release:0.16.2 blueocean- rest :1.24.8 jquery:1.12.4-1 systemloadaverage-monitor:1.2 pipeline-model-extensions:1.9.1 matrix-project:1.19 pipeline-maven:3.10.0 javadoc:1.6 maven-plugin:3.10 config-file-provider:3.8.1 github-branch-source:2.11.2 data-tables-api:1.10.25-3 lockable-resources:2.11 blueocean-config:1.24.8 echarts-api:5.1.2-11 ldap:2.7 branch-api:2.6.5 ace-editor:1.1 blueocean-bitbucket-pipeline:1.24.8 pipeline- rest -api:2.19 repo:1.14.0 display-url-api:2.3.5 momentjs:1.1.1 nexus-jenkins-plugin:3.11.20210827-120909.86ad130 blueocean:1.24.8 junit:1.52 scm-api:2.6.5 blueocean-dashboard:1.24.8 metadata:1.1.0b

          Daniel Beck added a comment -

          My guess what causes this: Maven 3.6.x bundles commons-io 2.5…

          Daniel Beck added a comment - My guess what causes this: Maven 3.6.x bundles commons-io 2.5…

          Tim Jacomb added a comment -

          in the jar? I checked the dependency:tree and it said commons-lang:2.6:provided

          Tim Jacomb added a comment - in the jar? I checked the dependency:tree and it said commons-lang:2.6:provided

          Tim Jacomb added a comment -

          cc olamy

          Tim Jacomb added a comment - cc olamy

          Daniel Beck added a comment -

          No, actual Maven. This is happening in the Maven process, because Maven Plugin is insane and should never be used by anyone for anything.

          Daniel Beck added a comment - No, actual Maven. This is happening in the Maven process, because Maven Plugin is insane and should never be used by anyone for anything.

          Olivier Lamy added a comment -

          Apache Maven do not include any commons-lang but only commons-lang 3

          nweiss you're mentioning

          We have a bunch of jenkins jobs. Most of them work, but  some fail with a strange error:

          As far I can see your job is using Apache Maven 3.6.2. the job which works what version are they using?

          Olivier Lamy added a comment - Apache Maven do not include any commons-lang but only commons-lang 3 nweiss  you're mentioning We have a bunch of jenkins jobs. Most of them work, but  some fail with a strange error: As far I can see your job is using Apache Maven 3.6.2. the job which works what version are they using?

          Norbert Weiß added a comment -

          this is weird because the other jobs use Maven 3.3.9 and some of them use Maven 3.6.0 or 3.6.2 without problems

          Norbert Weiß added a comment - this is weird because the other jobs use Maven 3.3.9 and some of them use Maven 3.6.0 or 3.6.2 without problems

          Eric added a comment -

          Having the same issue and rolling back to Jenkins 2.307 does solve the issue.

           

          It was introduced by commit 20e34cb942a85fe1b55bb193ef3378c2eeb82098 when going from

          if (string.endsWith(".png") || string.endsWith(".gif")) {

          to

          if (StringUtils.endsWithAny(string, SUPPORTED_FORMATS)) {

           

          in Icon.toNormalizedIconName(), so core Jenkins code, not plugin code.

           

          nweiss Are the jobs that work running on master node and the ones that fail running on a slave ?

          Eric added a comment - Having the same issue and rolling back to Jenkins 2.307 does solve the issue.   It was introduced by commit 20e34cb942a85fe1b55bb193ef3378c2eeb82098 when going from if (string.endsWith(".png") || string.endsWith(".gif")) { to if (StringUtils.endsWithAny(string, SUPPORTED_FORMATS)) {   in Icon.toNormalizedIconName(), so core Jenkins code, not plugin code.   nweiss  Are the jobs that work running on master node and the ones that fail running on a slave ?

          Tim Jacomb added a comment -

          We are aware of where it’s used, but not why the old version is being loaded, we’ve set a minimum version which contains that API

          Tim Jacomb added a comment - We are aware of where it’s used, but not why the old version is being loaded, we’ve set a minimum version which contains that API

          Norbert Weiß added a comment -

          The jobs that fail are running on a slave and cannot be configured to run on master.

          Norbert Weiß added a comment - The jobs that fail are running on a slave and cannot be configured to run on master.

          Guido Forthofer added a comment - - edited

          see my same problem in my description INFRA 3061. Here I use maven with version 3.8.1 and I have jobs that works and some jobs with this bug on same "master" 

          Guido Forthofer added a comment - - edited see my same problem in my description  INFRA 3061 . Here I use maven with version 3.8.1 and I have jobs that works and some jobs with this bug on same "master" 

          Kyrill added a comment -

          I can confirm that we've experienced the very same issue. Our case is even more straightforwards: some identically configured jobs run successfully on the same slave instance and some fail with this exception. The maven version, java, etc are all the same in those jobs, just different git repos to build.

          Whoever fixes this defect, would you be so kind to explain the underlying error to us? I've done some research myself. I mean I've looked at the commons-lang 2.x jars on the slave node and literally found no jar that didn't have that method defined (I decompiled that StringUtils class to see that). I've looked at the ../jenkins/jarCache dir - nothing there. Where in the world could it be picking up a wrong version of the commons-lang???

           

          Kyrill added a comment - I can confirm that we've experienced the very same issue. Our case is even more straightforwards: some identically configured jobs run successfully on the same slave instance and some fail with this exception. The maven version, java, etc are all the same in those jobs, just different git repos to build. Whoever fixes this defect, would you be so kind to explain the underlying error to us? I've done some research myself. I mean I've looked at the commons-lang 2.x jars on the slave node and literally found no jar that didn't have that method defined (I decompiled that StringUtils class to see that). I've looked at the ../jenkins/jarCache dir - nothing there. Where in the world could it be picking up a wrong version of the commons-lang???  

          I hope that this bug will be fixed soon. There is a "Multiple security vulnerabilities in Jenkins 2.314 and earlier, LTS 2.303.1 and earlier" error for this version and an update is not possible.

          Guido Forthofer added a comment - I hope that this bug will be fixed soon. There is a "Multiple security vulnerabilities in Jenkins 2.314 and earlier, LTS 2.303.1 and earlier" error for this version and an update is not possible.

          Tim Jacomb added a comment -

          If someone has a reliable way to reproduce it from scratch not on your setup it will likely be fixed, we don’t know why this is occurring

          Tim Jacomb added a comment - If someone has a reliable way to reproduce it from scratch not on your setup it will likely be fixed, we don’t know why this is occurring

          Is there any idea how I could help.

          Guido Forthofer added a comment - Is there any idea how I could help.

          Olivier Lamy added a comment -

          guido17 as said we need a project or some to how reproduce that.

          Olivier Lamy added a comment - guido17  as said we need a project or some to how reproduce that.

          I found this my Problem describes my problem. My problems are "Maven Project" jobs with Artifactory-Plugin. Maven Projects run without an Artifactory-Plugin. I'll try the workaround once.

          Guido Forthofer added a comment - I found this my Problem describes my problem. My problems are "Maven Project" jobs with Artifactory-Plugin. Maven Projects run without an Artifactory-Plugin. I'll try the workaround once.

          I found this my Problem describes my problem. My problems are "Maven Project" jobs with Artifactory-Plugin. Maven Projects run without an Artifactory-Plugin. I'll try the workaround once.

          Guido Forthofer added a comment - I found this my Problem describes my problem. My problems are "Maven Project" jobs with Artifactory-Plugin. Maven Projects run without an Artifactory-Plugin. I'll try the workaround once.

          I've tried the workaround and I can confirm that this is the problem. Artifactory-Plugin uses common-lang-2.4.jar but requires common-lang-2.6.jar.

          Guido Forthofer added a comment - I've tried the workaround and I can confirm that this is the problem. Artifactory-Plugin uses common-lang-2.4.jar but requires common-lang-2.6.jar.

          Daniel Beck added a comment -

          I think JFrog track their issues elsewhere.

          Daniel Beck added a comment - I think JFrog track their issues elsewhere.

          Jesse Glick added a comment -

          I would strongly recommend avoiding https://plugins.jenkins.io/maven-plugin/.

          Jesse Glick added a comment - I would strongly recommend avoiding https://plugins.jenkins.io/maven-plugin/ .

          The page that was linked as “my Problem” seems to be a copy of https://github.com/jfrog/jenkins-artifactory-plugin/issues/556.

          Kalle Niemitalo added a comment - The page that was linked as “my Problem” seems to be a copy of https://github.com/jfrog/jenkins-artifactory-plugin/issues/556 .

          Tim Jacomb added a comment -

          Tim Jacomb added a comment - There's a PR here: https://github.com/jfrog/jenkins-artifactory-plugin/pull/567

          Eric added a comment -

          I saw that the PR was merged to master, so I created a local build of the plugin and installed in our Jenkins, same issue.

          I saw that commons-lang 2.4 was still included in the libs folder of the plugin, creating the above class loading confusion.
          So I decided to update all dependant projects to use commons-lang3 and build all that locally and finally had a plugin that did not include any reference to commons-lang 2.x and this solved it (at least for 1 job that was constantly failing with that error).

          I did fork the required projects and submitted PRs.

          In the meantime, if you want to build locally, you can check:

          https://github.com/ebariaux/build-info

          https://github.com/ebariaux/file-specs-java

          https://github.com/ebariaux/jenkins-artifactory-plugin

           

          Eric added a comment - I saw that the PR was merged to master, so I created a local build of the plugin and installed in our Jenkins, same issue. I saw that commons-lang 2.4 was still included in the libs folder of the plugin, creating the above class loading confusion. So I decided to update all dependant projects to use commons-lang3 and build all that locally and finally had a plugin that did not include any reference to commons-lang 2.x and this solved it (at least for 1 job that was constantly failing with that error). I did fork the required projects and submitted PRs. In the meantime, if you want to build locally, you can check: https://github.com/ebariaux/build-info https://github.com/ebariaux/file-specs-java https://github.com/ebariaux/jenkins-artifactory-plugin  

          Norbert Weiß added a comment -

          ebariauxthanks for posting this. I was on the same path but haven't gotten that far yet because i had many other tasks to do.

          Norbert Weiß added a comment - ebariaux thanks for posting this. I was on the same path but haven't gotten that far yet because i had many other tasks to do.

          Eric added a comment -

          Today I had another issue, when using the Artifactory Plugin to push a docker image.

          Turns out plugin uses docker-java and this was still compiled against commons lang 2.

          So another fork https://github.com/ebariaux/docker-java (and PR: https://github.com/docker-java/docker-java/pull/1746)

          Eric added a comment - Today I had another issue, when using the Artifactory Plugin to push a docker image. Turns out plugin uses docker-java and this was still compiled against commons lang 2. So another fork https://github.com/ebariaux/docker-java  (and PR:  https://github.com/docker-java/docker-java/pull/1746 )

            Unassigned Unassigned
            nweiss Norbert Weiß
            Votes:
            3 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: