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

CredentialsProvider throws java.lang.UnsupportedOperationException on iterator remove

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: credentials-plugin
    • Labels:
    • Environment:
      Java: 1.8.0_202
      Jenkins: 2.292
      credentials-plugin: 2.4.1
    • Similar Issues:

      Description

      Get the following error executing a pipeline build:

      java.lang.UnsupportedOperationException: remove
      at java.util.Iterator.remove(Iterator.java:93)
      at com.cloudbees.plugins.credentials.CredentialsProvider.trackAll(CredentialsProvider.java:1636)
      at com.cloudbees.plugins.credentials.CredentialsProvider.track(CredentialsProvider.java:1583)
      at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:329)
      at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:197)
      at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:173)
      at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:114)
      at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:68)
      at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:309)
      at hudson.model.ResourceController.execute(ResourceController.java:100)
      at hudson.model.Executor.run(Executor.java:433)
      Finished: FAILURE
       

      In my short time sleuthing, it appears that remove is called on an iterator that in part is from an unmodifiable list. See: https://github.com/jenkinsci/jenkins/commit/ccaabe5adc94cdc1324b517cde36b8d9b4af0d15#diff-7b908d0c2f51f25650d27284a4b204aaa6911004d77ec06f57d750298749317a

        Attachments

          Issue Links

            Activity

            Hide
            bchiodo Brent added a comment -

            A workaround for this issue is to set:

            com.cloudbees.plugins.credentials.CredentialsProvider.FINGERPRINT_ENABLED=false

            Show
            bchiodo Brent added a comment - A workaround for this issue is to set: com.cloudbees.plugins.credentials.CredentialsProvider.FINGERPRINT_ENABLED=false

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              bchiodo Brent
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: