java.util.NoSuchElementException: No reference build found for project_name » Project Name #14

Jenkins JIRA | Bruno L | 6 years ago
  1. 0

    The server has access to multiple slave nodes to build the job (slave agent launched on Unix machines through SSH). When a maven2 job that uses PMD Analysis report in its configuration lands on a slave where it did not ran the time before we get the following error right at the start of the compilation. PMDSuccessfully parsed file /slave1/workspace/project_name/target/pmd.xml of module Project Name with 0 warnings. [PMD] File encoding has not been set in pom.xml, using platform encoding UTF-8, i.e. build is platform dependent (see <a href="http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding">Maven FAQ</a>). [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] No reference build found for project_name » Project Name #14 [INFO] ------------------------------------------------------------------------ [INFO] Trace java.util.NoSuchElementException: No reference build found for project_name » Project Name #14 at hudson.plugins.analysis.core.BuildHistory.getReferenceBuild(BuildHistory.java:93) at hudson.plugins.analysis.core.BuildHistory.hasReferenceBuild(BuildHistory.java:105) at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:284) at hudson.plugins.analysis.core.BuildResult.<init>(BuildResult.java:218) at hudson.plugins.pmd.PmdResult.<init>(PmdResult.java:34) at hudson.plugins.pmd.PmdReporterResult.<init>(PmdReporterResult.java:28) at hudson.plugins.pmd.PmdReporter.createResult(PmdReporter.java:122) at hudson.plugins.pmd.PmdReporter.createResult(PmdReporter.java:27) at hudson.plugins.analysis.core.HealthAwareReporter$1.call(HealthAwareReporter.java:250) at hudson.plugins.analysis.core.HealthAwareReporter$1.call(HealthAwareReporter.java:248) at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:396) at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:469) at sun.reflect.GeneratedMethodAccessor365.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at hudson.model.Executor$1.call(Executor.java:429) at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23) at $Proxy31.execute(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)

    Jenkins JIRA | 6 years ago | Bruno L
    java.util.NoSuchElementException: No reference build found for project_name » Project Name #14
  2. 0

    The server has access to multiple slave nodes to build the job (slave agent launched on Unix machines through SSH). When a maven2 job that uses PMD Analysis report in its configuration lands on a slave where it did not ran the time before we get the following error right at the start of the compilation. PMDSuccessfully parsed file /slave1/workspace/project_name/target/pmd.xml of module Project Name with 0 warnings. [PMD] File encoding has not been set in pom.xml, using platform encoding UTF-8, i.e. build is platform dependent (see <a href="http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding">Maven FAQ</a>). [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] No reference build found for project_name » Project Name #14 [INFO] ------------------------------------------------------------------------ [INFO] Trace java.util.NoSuchElementException: No reference build found for project_name » Project Name #14 at hudson.plugins.analysis.core.BuildHistory.getReferenceBuild(BuildHistory.java:93) at hudson.plugins.analysis.core.BuildHistory.hasReferenceBuild(BuildHistory.java:105) at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:284) at hudson.plugins.analysis.core.BuildResult.<init>(BuildResult.java:218) at hudson.plugins.pmd.PmdResult.<init>(PmdResult.java:34) at hudson.plugins.pmd.PmdReporterResult.<init>(PmdReporterResult.java:28) at hudson.plugins.pmd.PmdReporter.createResult(PmdReporter.java:122) at hudson.plugins.pmd.PmdReporter.createResult(PmdReporter.java:27) at hudson.plugins.analysis.core.HealthAwareReporter$1.call(HealthAwareReporter.java:250) at hudson.plugins.analysis.core.HealthAwareReporter$1.call(HealthAwareReporter.java:248) at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:396) at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:469) at sun.reflect.GeneratedMethodAccessor365.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at hudson.model.Executor$1.call(Executor.java:429) at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23) at $Proxy31.execute(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)

    Jenkins JIRA | 6 years ago | Bruno L
    java.util.NoSuchElementException: No reference build found for project_name » Project Name #14
  3. 0

    Warnings Plugin - Jenkins - Jenkins Wiki

    jenkins-ci.org | 3 days ago
    java.util.NoSuchElementException: No reference build found for MY_Earlysail_Webservice #8
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Git Dependencies

    GitHub | 2 years ago | rafael
    java.util.NoSuchElementException: key not found: git-project-name
  6. 0

    java.util.NoSuchElementException: No line found

    qnundrum.com | 11 months ago
    java.util.NoSuchElementException: No line found name : Kevin score : 55

    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 reference build found for project_name » Project Name #14

      at hudson.plugins.analysis.core.BuildHistory.getReferenceBuild()
    2. Static Analysis Utilities
      BuildResult.<init>
      1. hudson.plugins.analysis.core.BuildHistory.getReferenceBuild(BuildHistory.java:93)
      2. hudson.plugins.analysis.core.BuildHistory.hasReferenceBuild(BuildHistory.java:105)
      3. hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:284)
      4. hudson.plugins.analysis.core.BuildResult.<init>(BuildResult.java:218)
      4 frames
    3. PMD Plug-in
      PmdReporter.createResult
      1. hudson.plugins.pmd.PmdResult.<init>(PmdResult.java:34)
      2. hudson.plugins.pmd.PmdReporterResult.<init>(PmdReporterResult.java:28)
      3. hudson.plugins.pmd.PmdReporter.createResult(PmdReporter.java:122)
      4. hudson.plugins.pmd.PmdReporter.createResult(PmdReporter.java:27)
      4 frames
    4. Static Analysis Utilities
      HealthAwareReporter$1.call
      1. hudson.plugins.analysis.core.HealthAwareReporter$1.call(HealthAwareReporter.java:250)
      2. hudson.plugins.analysis.core.HealthAwareReporter$1.call(HealthAwareReporter.java:248)
      2 frames
    5. Hudson Maven Embedder
      MavenBuild$ProxyImpl2.execute
      1. hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:396)
      2. hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:469)
      2 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor365.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    7. Hudson
      InterceptingProxy$1.invoke
      1. hudson.model.Executor$1.call(Executor.java:429)
      2. hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
      2 frames
    8. Unknown
      $Proxy31.execute
      1. $Proxy31.execute(Unknown Source)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    10. Hudson :: Remoting Layer
      Request$2.run
      1. hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
      2. hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
      3. hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
      4. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      5. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      6. hudson.remoting.Request$2.run(Request.java:270)
      6 frames
    11. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      6. java.lang.Thread.run(Thread.java:619)
      6 frames