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

"java.lang.NullPointerException" in "support-core-plugin"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • support-core-plugin
    • None
    • Jenkins version: 2.346.3
      support-core-plugin Version 1204.v7ee88742a_53f

      Shortly after startup we see the following SEVERE error with stacktrace:

      2022-08-22 12:09:22.860+0000 [id=41]    SEVERE  hudson.triggers.SafeTimerTask#run: Timer task com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker@78a8ebac failed
      java.lang.NullPointerException
              at java.base/java.util.regex.Matcher.getTextLength(Matcher.java:1770)
              at java.base/java.util.regex.Matcher.reset(Matcher.java:416)
              at java.base/java.util.regex.Matcher.<init>(Matcher.java:253)
              at java.base/java.util.regex.Pattern.matcher(Pattern.java:1133)
              at com.cloudbees.jenkins.support.filter.InetAddressContentFilter.filter(InetAddressContentFilter.java:67)
              at com.cloudbees.jenkins.support.filter.AllContentFilters.filter(AllContentFilters.java:43)
              at com.cloudbees.jenkins.support.slowrequest.InflightRequest.lambda$writeHeader$1(InflightRequest.java:80)
              at java.base/java.util.Optional.map(Optional.java:265)
              at com.cloudbees.jenkins.support.slowrequest.InflightRequest.writeHeader(InflightRequest.java:80)
              at com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker.doRun(SlowRequestChecker.java:104)
              at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:92)
              at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67)
              at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
              at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
              at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at java.base/java.lang.Thread.run(Thread.java:829)

      Looks like a 'null' field somewhere in a 'InflightRequest' used in 'SlowRequestFilter'?

            allan_burdajewicz Allan BURDAJEWICZ
            lmarthorburn Lavina
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: