java.util.NoSuchElementException

Jenkins JIRA | Joan Fisbein | 10 months 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

    When I try to run my project with the plugin enabled I get this error: {code} Started by user joan [EnvInject] - Loading node environment variables. Building remotely on sonarqube01 (dpkg puppet java7 java8 puppet4 linux) in workspace /home/jenkins/workspace/jcpv2-resources-bgm > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@gitlab.xxxxx.ofi:product/jcpv2-resources-bgm.git # timeout=10 Cleaning workspace > git rev-parse --verify HEAD # timeout=10 Resetting working tree > git reset --hard # timeout=10 > git clean -fdx # timeout=10 Fetching upstream changes from git@gitlab.xxx.ofi:product/jcpv2-resources-bgm.git > git --version # timeout=10 using GIT_SSH to set credentials jenkins ssh to slaves and git > git -c core.askpass=true fetch --tags --progress git@gitlab.xxx.ofi:product/jcpv2-resources-bgm.git +refs/tags/*:refs/tags/* Seen branch in repository origin/V8 Seen branch in repository origin/master Seen 2 remote branches Checking out Revision aec06608a9427dbb7c643db7368e49260dff5c42 () > git config core.sparsecheckout # timeout=10 > git checkout -f aec06608a9427dbb7c643db7368e49260dff5c42 First time build. Skipping changelog. FATAL: null java.util.NoSuchElementException at java.util.ArrayList$Itr.next(ArrayList.java:834) at org.jenkinsci.plugins.gittagmessage.GitTagMessageExtension.onCheckoutCompleted(GitTagMessageExtension.java:44) at hudson.plugins.git.extensions.GitSCMExtension.onCheckoutCompleted(GitSCMExtension.java:161) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1152) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Archiving artifacts Finished: FAILURE {code} If I ssh to the jenkins slave a go the the project folder to check status: {code} > git branch * (no branch) {code}

    Jenkins JIRA | 10 months ago | Joan Fisbein
    java.util.NoSuchElementException
  2. 0

    When I try to run my project with the plugin enabled I get this error: {code} Started by user joan [EnvInject] - Loading node environment variables. Building remotely on sonarqube01 (dpkg puppet java7 java8 puppet4 linux) in workspace /home/jenkins/workspace/jcpv2-resources-bgm > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@gitlab.xxxxx.ofi:product/jcpv2-resources-bgm.git # timeout=10 Cleaning workspace > git rev-parse --verify HEAD # timeout=10 Resetting working tree > git reset --hard # timeout=10 > git clean -fdx # timeout=10 Fetching upstream changes from git@gitlab.xxx.ofi:product/jcpv2-resources-bgm.git > git --version # timeout=10 using GIT_SSH to set credentials jenkins ssh to slaves and git > git -c core.askpass=true fetch --tags --progress git@gitlab.xxx.ofi:product/jcpv2-resources-bgm.git +refs/tags/*:refs/tags/* Seen branch in repository origin/V8 Seen branch in repository origin/master Seen 2 remote branches Checking out Revision aec06608a9427dbb7c643db7368e49260dff5c42 () > git config core.sparsecheckout # timeout=10 > git checkout -f aec06608a9427dbb7c643db7368e49260dff5c42 First time build. Skipping changelog. FATAL: null java.util.NoSuchElementException at java.util.ArrayList$Itr.next(ArrayList.java:834) at org.jenkinsci.plugins.gittagmessage.GitTagMessageExtension.onCheckoutCompleted(GitTagMessageExtension.java:44) at hudson.plugins.git.extensions.GitSCMExtension.onCheckoutCompleted(GitSCMExtension.java:161) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1152) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Archiving artifacts Finished: FAILURE {code} If I ssh to the jenkins slave a go the the project folder to check status: {code} > git branch * (no branch) {code}

    Jenkins JIRA | 10 months ago | Joan Fisbein
    java.util.NoSuchElementException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.NoSuchElementException

    No message provided

    at java.util.ArrayList$Itr.next()
  2. Java RT
    ArrayList$Itr.next
    1. java.util.ArrayList$Itr.next(ArrayList.java:834)
    1 frame
  3. org.jenkinsci.plugins
    GitTagMessageExtension.onCheckoutCompleted
    1. org.jenkinsci.plugins.gittagmessage.GitTagMessageExtension.onCheckoutCompleted(GitTagMessageExtension.java:44)
    1 frame
  4. hudson.plugins.git
    GitSCMExtension.onCheckoutCompleted
    1. hudson.plugins.git.extensions.GitSCMExtension.onCheckoutCompleted(GitSCMExtension.java:161)
    1 frame
  5. Hudson GIT plugin
    GitSCM.checkout
    1. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1152)
    1 frame
  6. Hudson
    AbstractBuild$AbstractBuildExecution.defaultCheckout
    1. hudson.scm.SCM.checkout(SCM.java:485)
    2. hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
    3 frames
  7. jenkins.scm
    SCMCheckoutStrategy.checkout
    1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
    1 frame
  8. Hudson
    Executor.run
    1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
    2. hudson.model.Run.execute(Run.java:1738)
    3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    4. hudson.model.ResourceController.execute(ResourceController.java:98)
    5. hudson.model.Executor.run(Executor.java:410)
    5 frames