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

clear-queue causing NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • ssh-slaves-plugin
    • None

      This is Jenkins 1.509.1 (LTS) running on Debian/wheezy.

      I've got the following NPE right after doing a clear-queue via the CLI. Stack trace to be found below.

      There were several jobs executing both on the master and the slave, plus a larger number in the queue. My assumption was that I'd just get an empty queue, with currently executed jobs continuing to run. But with a terminated JVM this surely won't be the case...

      Best,
      Michael

      INFO: JVM is terminating. Shutting down Winstone
      Exception in thread "Channel reader thread: <slave name>" java.lang.NullPointerException
      at hudson.model.Computer.getNode(Computer.java:465)
      at hudson.slaves.SlaveComputer.getNode(SlaveComputer.java:176)
      at hudson.plugins.sshslaves.SSHLauncher.afterDisconnect(SSHLauncher.java:932)
      at hudson.slaves.SlaveComputer$2.onClosed(SlaveComputer.java:419)
      at hudson.remoting.Channel.terminate(Channel.java:749)
      at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69)

            ifernandezcalvo Ivan Fernandez Calvo
            tautschnig Michael Tautschnig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: