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

CredentialsProvider throws java.lang.UnsupportedOperationException on iterator remove

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • credentials-plugin
    • Java: 1.8.0_202
      Jenkins: 2.292
      credentials-plugin: 2.4.1

      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

          [JENKINS-65623] CredentialsProvider throws java.lang.UnsupportedOperationException on iterator remove

          Brent created issue -
          Brent made changes -
          Description Original: 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
          New: 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]
          Brent made changes -
          Description Original: 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]
          New: 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]
          Brent made changes -
          Description Original: 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]
          New: 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]
          Raihaan Shouhell made changes -
          Link New: This issue blocks JENKINS-65611 [ JENKINS-65611 ]
          Raihaan Shouhell made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Raihaan Shouhell made changes -
          Link Original: This issue blocks JENKINS-65611 [ JENKINS-65611 ]
          Raihaan Shouhell made changes -
          Link New: This issue duplicates JENKINS-65611 [ JENKINS-65611 ]

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

              Created:
              Updated:
              Resolved: