Starting Jenkins fails with "NullPointerException: Cannot invoke method toInteger() on null object"

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Minor
    • Component/s: core
    • Environment:
      Jenkins version 2.131

      Hi.

       

      My Jenkins instance worked fine until I tried to restart it today. The log files says this when I run "service jenkins restart":

      Jul 23, 2018 9:09:27 AM hudson.init.impl.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler uncaughtException
      SEVERE: A thread (Thread-6/40) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code.
      java.lang.NullPointerException: Cannot invoke method toInteger() on null object
              at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:91)
              at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48)
              at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
              at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:35)
              at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
              at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
              at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
              at tcp-slave-agent-port$_run_closure1.doCall(tcp-slave-agent-port.groovy:9)
              at tcp-slave-agent-port$_run_closure1.doCall(tcp-slave-agent-port.groovy)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
              at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
              at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
              at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
              at groovy.lang.Closure.call(Closure.java:414)
              at groovy.lang.Closure.call(Closure.java:408)
              at groovy.lang.Closure.run(Closure.java:495)
              at java.lang.Thread.run(Thread.java:748)
       

      I recently upgraded from version 2.129 (if I recall correctly) to 2.131. I believe this is not the first restart after the upgrade, but I'm not sure. environment variable

      This StackOverflow post indicates that this has something to do with a missing JENKINS_SLAVE_AGENT_PORT }}environment variable, {{}}but to the best of my knowledge I've not made any configuration changes to Jenkins or the Debian 9 server running Jenkins.{{

            Assignee:
            Unassigned
            Reporter:
            Kenneth H
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: