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

Exceptions with pubsub spamming log spam

    Details

    • Sprint:
      Blue Ocean 1.2-beta3, Blue Ocean 1.2-beta4
    • Similar Issues:

      Description

      The following stack trace is filling our logs with errors and we don't know if this is an issue or how to resolve it.

       

      Jul 17, 2017 5:00:24 PM org.jenkinsci.plugins.pubsub.listeners.SyncRunListener onFinalized
      WARNING: Error publishing Run end event.
      org.jenkinsci.plugins.pubsub.MessageException: Event enrichment failure due to unexpected exception in io.jenkins.blueocean.events.BlueMessageEnricher.
          at org.jenkinsci.plugins.pubsub.PubsubBus.publish(PubsubBus.java:135)
          at org.jenkinsci.plugins.pubsub.listeners.SyncRunListener.onFinalized(SyncRunListener.java:68)
          at hudson.model.listeners.RunListener.fireFinalized(RunListener.java:257)
          at hudson.model.Run.onEndBuilding(Run.java:1903)
          at hudson.model.Run.execute(Run.java:1797)
          at hudson.model.Run.run(Run.java:1687)
          at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:290)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:405)
      Caused by: java.lang.NullPointerException
          at io.jenkins.blueocean.rest.factory.BluePipelineFactory.resolve(BluePipelineFactory.java:64)
          at io.jenkins.blueocean.service.embedded.LinkResolverImpl.resolveJob(LinkResolverImpl.java:50)
          at io.jenkins.blueocean.service.embedded.LinkResolverImpl.resolve(LinkResolverImpl.java:30)
          at io.jenkins.blueocean.rest.hal.LinkResolver.resolveLink(LinkResolver.java:32)
          at io.jenkins.blueocean.events.BlueMessageEnricher.enrich(BlueMessageEnricher.java:74)
          at org.jenkinsci.plugins.pubsub.PubsubBus.publish(PubsubBus.java:133)
          ... 8 more
      
      Jul 17, 2017 5:00:24 PM org.jenkinsci.plugins.pubsub.listeners.SyncQueueListener publish
      WARNING: Error publishing Run queued event.
      org.jenkinsci.plugins.pubsub.MessageException: Event enrichment failure due to unexpected exception in io.jenkins.blueocean.events.BlueMessageEnricher.
          at org.jenkinsci.plugins.pubsub.PubsubBus.publish(PubsubBus.java:135)
          at org.jenkinsci.plugins.pubsub.listeners.SyncQueueListener.publish(SyncQueueListener.java:178)
          at org.jenkinsci.plugins.pubsub.listeners.SyncQueueListener.access$300(SyncQueueListener.java:57)
          at org.jenkinsci.plugins.pubsub.listeners.SyncQueueListener$1.run(SyncQueueListener.java:106)
      Caused by: java.lang.NullPointerException
          at io.jenkins.blueocean.rest.factory.BluePipelineFactory.resolve(BluePipelineFactory.java:64)
          at io.jenkins.blueocean.service.embedded.LinkResolverImpl.resolveJob(LinkResolverImpl.java:50)
          at io.jenkins.blueocean.service.embedded.LinkResolverImpl.resolve(LinkResolverImpl.java:30)
          at io.jenkins.blueocean.rest.hal.LinkResolver.resolveLink(LinkResolver.java:32)
          at io.jenkins.blueocean.events.BlueMessageEnricher.enrich(BlueMessageEnricher.java:74)
          at org.jenkinsci.plugins.pubsub.PubsubBus.publish(PubsubBus.java:133)
          ... 3 more
      

        Attachments

          Issue Links

            Activity

            Hide
            euphxenos Andrew Lawrence added a comment -

            I have a machine running Jenkins 2.60.3 (current LTS) with Blue Ocean 1.2.0, and we're still seeing this.  Most of the exceptions that show up in the logs are now Run queued events instead of Run end events, but we still get both.

            Show
            euphxenos Andrew Lawrence added a comment - I have a machine running Jenkins 2.60.3 (current LTS) with Blue Ocean 1.2.0, and we're still seeing this.  Most of the exceptions that show up in the logs are now Run queued events instead of Run end events, but we still get both.
            Hide
            michaelneale Michael Neale added a comment -

            has anyone had a chance to try this with a 1.3 beta? as it should be resolved (not in 1.2.1 yet though). 

            Show
            michaelneale Michael Neale added a comment - has anyone had a chance to try this with a 1.3 beta? as it should be resolved (not in 1.2.1 yet though). 
            Hide
            michaelneale Michael Neale added a comment -

            will be in 1.3 

            Show
            michaelneale Michael Neale added a comment - will be in 1.3 
            Hide
            mmitche Matthew Mitchell added a comment -

            It actually appears to be that the Queue item is null.  The queue id is not found in the jenkins queue.  This may simply be a race between scheduling and this code.  I have a fix in https://github.com/jenkinsci/blueocean-plugin/pull/1433

            Show
            mmitche Matthew Mitchell added a comment - It actually appears to be that the Queue item is null.  The queue id is not found in the jenkins queue.  This may simply be a race between scheduling and this code.  I have a fix in  https://github.com/jenkinsci/blueocean-plugin/pull/1433
            Hide
            bahdad Sasha Miroshnychenko added a comment -

            Jenn Briden any notes on how it was fixed and/or what version has a fix?

            Show
            bahdad Sasha Miroshnychenko added a comment - Jenn Briden any notes on how it was fixed and/or what version has a fix?

              People

              • Assignee:
                mmitche Matthew Mitchell
                Reporter:
                mzampetti Marc Zampetti
              • Votes:
                2 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: