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

NullPointerException - getDefaultParameterValue: [ EMPTY_JOB_NAME ] Unexpected error!

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-parameter-plugin
    • OS: CentOS 7
      Jenkins ver: 2.186
      Plugins ver:
      git 4.0.0-rc
      git-client 3.0.0-rc
      git-parameter 0.9.11
      git-server 1.7

      Hello, 

      I receive the following error every hour (12:05:00, 13:05:00 etc.) in jenkins.log:

      --------jenkins.log--------

      2019-07-18 13:05:00.949+0000 [id=161] SEVERE n.u.l.h.p.g.GitParameterDefinition#getDefaultParameterValue: [ EMPTY_JOB_NAME ] Unexpected error!
      java.lang.NullPointerException
      at net.uaznia.lukanus.hudson.plugins.gitparameter.jobs.JobWrapperFactory.createJobWrapper(JobWrapperFactory.java:15)
      at net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition$DescriptorImpl.doFillValueItems(GitParameterDefinition.java:603)
      at net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition.getDefaultParameterValue(GitParameterDefinition.java:151)
      at hudson.plugins.git.util.GitUtils.addEnvironmentContributingActionsValues(GitUtils.java:329)
      at hudson.plugins.git.util.GitUtils.getPollEnvironment(GitUtils.java:306)
      at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:693)
      at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:668)
      at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:400)
      at hudson.scm.SCM.poll(SCM.java:417)
      at hudson.model.AbstractProject._poll(AbstractProject.java:1390)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1293)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:603)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:649)
      at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      2019-07-18 13:05:00.950+0000 [id=161] SEVERE n.u.l.h.p.g.GitParameterDefinition#getDefaultParameterValue: [ EMPTY_JOB_NAME ] Unexpected error!
      java.lang.NullPointerException
      at net.uaznia.lukanus.hudson.plugins.gitparameter.jobs.JobWrapperFactory.createJobWrapper(JobWrapperFactory.java:15)
      at net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition$DescriptorImpl.doFillValueItems(GitParameterDefinition.java:603)
      at net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition.getDefaultParameterValue(GitParameterDefinition.java:151)
      at hudson.plugins.git.util.GitUtils.addEnvironmentContributingActionsValues(GitUtils.java:329)
      at hudson.plugins.git.util.GitUtils.getPollEnvironment(GitUtils.java:306)
      at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:699)
      at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:668)
      at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:400)
      at hudson.scm.SCM.poll(SCM.java:417)
      at hudson.model.AbstractProject._poll(AbstractProject.java:1390)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1293)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:603)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:649)
      at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)

      --------jenkins.log--------

      I am trying to understand what causes it. I can't find an issue with any of my jobs. I listed all job names and I couldn't find any of it to be empty or looking suspicious. 

      I set via the UI > log extended logging (ALL) for following loggers:

      hudson

      net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition

      java

      Then I checked the related log from the UI, but I could not find any additional hints. 

      In the log there is nothing related right before and right after the exception, that could point me to the root cause. 

      I was able to find only issue "JENKINS-46216" which looks similar to mine, but it doesn't help me to understand my issue. 

      Would anyone knows what could be causing this exception or how to further investigate it?

      Thanks! 

       

            klimas7 Boguslaw Klimas
            dilyan_angelov Dilyan Angelov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: