com.perforce.p4java.exception.NullPointerError: Null client name passed to IServer.getClient()

Jenkins JIRA | Ryan Hummer | 2 years ago
  1. 0

    I am seeing this from our SCM Polling: {quote}Started on Aug 11, 2014 10:48:48 AM Polling SCM changes on rsmsnbuild114 P4: Polling with client: null ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@3b1c0865[job] com.perforce.p4java.exception.NullPointerError: Null client name passed to IServer.getClient() at com.perforce.p4java.impl.mapbased.server.Server.getClient(Server.java:2384) at org.jenkinsci.plugins.p4.client.ClientHelper.clientLogin(ClientHelper.java:57) at org.jenkinsci.plugins.p4.client.ClientHelper.<init>(ClientHelper.java:45) at org.jenkinsci.plugins.p4.PerforceScm.compareRemoteRevisionWith(PerforceScm.java:160) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1603) at hudson.model.AbstractProject._poll(AbstractProject.java:1573) at hudson.model.AbstractProject.poll(AbstractProject.java:1491) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source){quote} I first noticed it when looking at the polling log while a Job was in-flight. I am now seeing it with no Job running.

    Jenkins JIRA | 2 years ago | Ryan Hummer
    com.perforce.p4java.exception.NullPointerError: Null client name passed to IServer.getClient()
  2. 0

    I am seeing this from our SCM Polling: {quote}Started on Aug 11, 2014 10:48:48 AM Polling SCM changes on rsmsnbuild114 P4: Polling with client: null ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@3b1c0865[job] com.perforce.p4java.exception.NullPointerError: Null client name passed to IServer.getClient() at com.perforce.p4java.impl.mapbased.server.Server.getClient(Server.java:2384) at org.jenkinsci.plugins.p4.client.ClientHelper.clientLogin(ClientHelper.java:57) at org.jenkinsci.plugins.p4.client.ClientHelper.<init>(ClientHelper.java:45) at org.jenkinsci.plugins.p4.PerforceScm.compareRemoteRevisionWith(PerforceScm.java:160) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1603) at hudson.model.AbstractProject._poll(AbstractProject.java:1573) at hudson.model.AbstractProject.poll(AbstractProject.java:1491) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source){quote} I first noticed it when looking at the polling log while a Job was in-flight. I am now seeing it with no Job running.

    Jenkins JIRA | 2 years ago | Ryan Hummer
    com.perforce.p4java.exception.NullPointerError: Null client name passed to IServer.getClient()

    Root Cause Analysis

    1. com.perforce.p4java.exception.NullPointerError

      Null client name passed to IServer.getClient()

      at com.perforce.p4java.impl.mapbased.server.Server.getClient()
    2. com.perforce.p4java
      Server.getClient
      1. com.perforce.p4java.impl.mapbased.server.Server.getClient(Server.java:2384)
      1 frame
    3. org.jenkinsci.plugins
      PerforceScm.compareRemoteRevisionWith
      1. org.jenkinsci.plugins.p4.client.ClientHelper.clientLogin(ClientHelper.java:57)
      2. org.jenkinsci.plugins.p4.client.ClientHelper.<init>(ClientHelper.java:45)
      3. org.jenkinsci.plugins.p4.PerforceScm.compareRemoteRevisionWith(PerforceScm.java:160)
      3 frames
    4. Hudson
      SequentialExecutionQueue$QueueEntry.run
      1. hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
      2. hudson.scm.SCM.poll(SCM.java:373)
      3. hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1603)
      4. hudson.model.AbstractProject._poll(AbstractProject.java:1573)
      5. hudson.model.AbstractProject.poll(AbstractProject.java:1491)
      6. hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439)
      7. hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468)
      8. hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      8 frames
    5. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      4 frames