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

WARNING: RunListener failed java.lang.IllegalStateException:

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • CentOS Linux release 7.2.1511 (Core)

      Hi,

      I have installed jenkin 2.7.4 in my rackspace instance. Now while building one of my very first jenkin job, the build is failing and I can see below exception in jenkins.log.

      Can someone please tell me what is this related for and how I can I fix this. Thanks in advance.

      Nov 19, 2016 12:00:36 AM hudson.model.listeners.RunListener report
      WARNING: RunListener failed
      java.lang.IllegalStateException: Already completed
      	at org.jenkinsci.plugins.workflow.cps.CpsStepContext.onFailure(CpsStepContext.java:310)
      	at org.jenkinsci.plugins.workflow.support.steps.build.BuildTriggerListener.onDeleted(BuildTriggerListener.java:33)
      	at hudson.model.listeners.RunListener.fireDeleted(RunListener.java:247)
      	at hudson.model.Run.delete(Run.java:1486)
      	at hudson.tasks.LogRotator.perform(LogRotator.java:131)
      	at hudson.model.Job.logRotate(Job.java:471)
      	at hudson.model.Run.execute(Run.java:1805)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Caused by: java.lang.Exception: broken since this build
      	... 9 more
      
      Nov 19, 2016 12:00:36 AM hudson.model.listeners.RunListener report
      WARNING: RunListener failed
      java.lang.IllegalStateException: Already completed
      	at org.jenkinsci.plugins.workflow.cps.CpsStepContext.onFailure(CpsStepContext.java:310)
      	at org.jenkinsci.plugins.workflow.support.steps.build.BuildTriggerListener.onDeleted(BuildTriggerListener.java:33)
      	at hudson.model.listeners.RunListener.fireDeleted(RunListener.java:247)
      	at hudson.model.Run.delete(Run.java:1486)
      	at hudson.tasks.LogRotator.perform(LogRotator.java:131)
      	at hudson.model.Job.logRotate(Job.java:471)
      	at hudson.model.Run.execute(Run.java:1805)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Caused by: java.lang.Exception: broken since this build
      	... 9 more
      
      Nov 19, 2016 12:00:36 AM org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      INFO: oo-all-oss #10 completed: FAILURE
      

          [JENKINS-39875] WARNING: RunListener failed java.lang.IllegalStateException:

          Oleg Nenashev added a comment -

          Fixed the component. Maybe jglick has already fixed it

          Oleg Nenashev added a comment - Fixed the component. Maybe jglick has already fixed it

          Imaad Ghouri added a comment -

          oleg_nenashev

          I have stopped the jenkins server and installed the jenkins.war again. Downloading jenkins war: http://mirror.xmission.com/jenkins/war-stable/2.7.4/jenkins.war
          But i am still seeing the same issue when in jenkins.log after I start the job. Can you please check again? Thanks

          Imaad Ghouri added a comment - oleg_nenashev I have stopped the jenkins server and installed the jenkins.war again. Downloading jenkins war: http://mirror.xmission.com/jenkins/war-stable/2.7.4/jenkins.war But i am still seeing the same issue when in jenkins.log after I start the job. Can you please check again? Thanks

          Jesse Glick added a comment -

          Any known steps to reproduce from scratch?

          I think you are using a rather old version of workflow-cps. Current code does not throw up an IllegalStateException. Recheck using latest plugin updates.

          Jesse Glick added a comment - Any known steps to reproduce from scratch? I think you are using a rather old version of workflow-cps . Current code does not throw up an IllegalStateException . Recheck using latest plugin updates.

          Maybe this old issue should/can be resolved in favour of JENKINS-64412?

          Reinhold Füreder added a comment - Maybe this old issue should/can be resolved in favour of JENKINS-64412 ?

          Jesse Glick added a comment -

          No, different root cause.

          Jesse Glick added a comment - No, different root cause.

            Unassigned Unassigned
            ighouri Imaad Ghouri
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: