[JIRA] [git-plugin] (JENKINS-34165) Null pointer exception polling from git job accessing bitbucket repo

4 views
Skip to first unread message

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 12, 2016, 7:44:01 AM4/12/16
to jenkinsc...@googlegroups.com
Mark Waite created an issue
 
Jenkins / Bug JENKINS-34165
Null pointer exception polling from git job accessing bitbucket repo
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-plugin
Created: 2016/Apr/12 11:43 AM
Environment: Git plugin 2.4.4
Git client plugin 1.19.6
Jenkins 1.642.4
Ubuntu 14.04 master with various slaves
Priority: Minor Minor
Reporter: Mark Waite

A stack trace was reported to /var/log/jenkins/jenkins.log that shows a null pointer exception in pollnig from either the git plugin or the git client plugin.

Apr 10, 2016 4:27:00 AM hudson.triggers.SCMTrigger$Runner runPolling
SEVERE: Failed to record SCM polling for hudson.matrix.MatrixProject@4616ca95[JENKINS-22119-bitbucket-credentialed-clone-fails]
java.lang.NullPointerException
        at hudson.plugins.git.util.GitUtils.getPollEnvironment(GitUtils.java:220)
        at hudson.plugins.git.util.GitUtils.getPollEnvironment(GitUtils.java:194)
        at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:684)
        at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:571)
        at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:381)
        at hudson.scm.SCM.poll(SCM.java:398)
        at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1475)
        at hudson.model.AbstractProject._poll(AbstractProject.java:1445)
        at hudson.model.AbstractProject.poll(AbstractProject.java:1356)
        at jenkins.triggers.SCMTriggerItem$SCMTriggerItems$Bridge.poll(SCMTriggerItem.java:119)
        at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:526)
        at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:555)
        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:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

The conditions under which the null pointer exception occur are not yet clear to me. The job definition which caused that NPE has not changed in a month or more, yet this null pointer exception only appeared once and only very recently.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages