java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I noticed this when investigating issue 4325 (NullPointerException when polling). The page project/scmPollLog displays only: ---------------------------------------------------------------------- Last Team Foundation Server Polling Log Started on 2009-aug-28 08:40:18 ---------------------------------------------------------------------- but in the console output (running through mvn hpi:run) i got this exception: ---------------------------------------------------------------------- 2009-aug-28 08:40:18 hudson.triggers.SCMTrigger$Runner runPolling ALLVARLIG: Failed to record SCM polling java.lang.NullPointerException at hudson.plugins.tfs.TfTool.execute(TfTool.java:99) at hudson.plugins.tfs.model.Server.execute(Server.java:47) at hudson.plugins.tfs.model.Project.getDetailedHistory(Project.java:41) at hudson.plugins.tfs.TeamFoundationServerScm.pollChanges(TeamFoundationServerScm.java:187) at hudson.model.AbstractProject.pollSCMChanges(AbstractProject.java:965) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:312) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:339) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:114) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) ---------------------------------------------------------------------- The exception or an error message should be displayed in the SCM Poll page, so the user can easily see that something went bad when polling. Right now it looks like the polling is still going.
    via by redsolo,
  • I noticed this when investigating issue 4325 (NullPointerException when polling). The page project/scmPollLog displays only: ---------------------------------------------------------------------- Last Team Foundation Server Polling Log Started on 2009-aug-28 08:40:18 ---------------------------------------------------------------------- but in the console output (running through mvn hpi:run) i got this exception: ---------------------------------------------------------------------- 2009-aug-28 08:40:18 hudson.triggers.SCMTrigger$Runner runPolling ALLVARLIG: Failed to record SCM polling java.lang.NullPointerException at hudson.plugins.tfs.TfTool.execute(TfTool.java:99) at hudson.plugins.tfs.model.Server.execute(Server.java:47) at hudson.plugins.tfs.model.Project.getDetailedHistory(Project.java:41) at hudson.plugins.tfs.TeamFoundationServerScm.pollChanges(TeamFoundationServerScm.java:187) at hudson.model.AbstractProject.pollSCMChanges(AbstractProject.java:965) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:312) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:339) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:114) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) ---------------------------------------------------------------------- The exception or an error message should be displayed in the SCM Poll page, so the user can easily see that something went bad when polling. Right now it looks like the polling is still going.
    via by redsolo,
  • I get a failure when I use the tfs plugin of Jenkins. The Source Code management tool what I use is Team Foundation Server 2010,when I manage the poll SCM in Jenkins,and want to trigger a build automatic when it detected a change between TFS server and Personal workspace , a failure hanppened ,which information is "failed to record scm polling".the major information are as follows. Three months ago ,the version of tfs plugin is 1.17,I encount the failure ,and now the problem isn't resolved. I have been searched a method for a long time ,but not get it . I don't know what the reason is ,so please to I want to wish you can help me to fix the problem.Thank you very much! ERROR: Failed to record SCM polling java.lang.NullPointerException at hudson.plugins.tfs.commands.DetailedHistoryCommand.parseChangeSetString(DetailedHistoryCommand.java:151) at hudson.plugins.tfs.commands.DetailedHistoryCommand.parse(DetailedHistoryCommand.java:112) at hudson.plugins.tfs.model.Project.getDetailedHistory(Project.java:43) at hudson.plugins.tfs.TeamFoundationServerScm.pollChanges(TeamFoundationServerScm.java:207) at hudson.scm.SCM.poll(SCM.java:375) at hudson.model.AbstractProject.poll(AbstractProject.java:1310) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)
    via by jlin sai,
  • I get a failure when I use the tfs plugin of Jenkins. The Source Code management tool what I use is Team Foundation Server 2010,when I manage the poll SCM in Jenkins,and want to trigger a build automatic when it detected a change between TFS server and Personal workspace , a failure hanppened ,which information is "failed to record scm polling".the major information are as follows. Three months ago ,the version of tfs plugin is 1.17,I encount the failure ,and now the problem isn't resolved. I have been searched a method for a long time ,but not get it . I don't know what the reason is ,so please to I want to wish you can help me to fix the problem.Thank you very much! ERROR: Failed to record SCM polling java.lang.NullPointerException at hudson.plugins.tfs.commands.DetailedHistoryCommand.parseChangeSetString(DetailedHistoryCommand.java:151) at hudson.plugins.tfs.commands.DetailedHistoryCommand.parse(DetailedHistoryCommand.java:112) at hudson.plugins.tfs.model.Project.getDetailedHistory(Project.java:43) at hudson.plugins.tfs.TeamFoundationServerScm.pollChanges(TeamFoundationServerScm.java:207) at hudson.scm.SCM.poll(SCM.java:375) at hudson.model.AbstractProject.poll(AbstractProject.java:1310) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)
    via by jlin sai,
  • It seems that the Launcher argument in SCM.pollChanges() is null, which makes it impossible to poll as the TFS server polls through command line. I have a test project that is setup with TFS, and to be built on a node; and it will throw the below exception in the console when it is trying to poll. I have tested 1.321, 1.322-SNAPSHOT (28 aug 9:00 GMT) and both of them has this problem. If I revert to Hudson 1.317, then the issue does not occur UNLESS the node isnt started. But for 1.318+, even if the node is started and had successful builds on it, I still get launcher=null in the poll method. ----------------------------------------------------------- INFO: Starting poll project=hudson.model.FreeStyleProject@183eae7[Polling 321], launcher=null, workspace=null, listener= hudson.util.StreamTaskListener@1a7a05 2009-aug-28 10:21:11 hudson.triggers.SCMTrigger$Runner runPolling ALLVARLIG: Failed to record SCM polling java.lang.NullPointerException at hudson.plugins.tfs.TfTool.execute(TfTool.java:99) at hudson.plugins.tfs.model.Server.execute(Server.java:47) at hudson.plugins.tfs.model.Project.getDetailedHistory(Project.java:41) at hudson.plugins.tfs.TeamFoundationServerScm.pollChanges(TeamFoundationServerScm.j ava:188) at hudson.model.AbstractProject.pollSCMChanges(AbstractProject.java:975) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:312) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:339) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.jav a:114) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:8 85) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) -----------------------------------------------------------
    via by redsolo,
  • It seems that the Launcher argument in SCM.pollChanges() is null, which makes it impossible to poll as the TFS server polls through command line. I have a test project that is setup with TFS, and to be built on a node; and it will throw the below exception in the console when it is trying to poll. I have tested 1.321, 1.322-SNAPSHOT (28 aug 9:00 GMT) and both of them has this problem. If I revert to Hudson 1.317, then the issue does not occur UNLESS the node isnt started. But for 1.318+, even if the node is started and had successful builds on it, I still get launcher=null in the poll method. ----------------------------------------------------------- INFO: Starting poll project=hudson.model.FreeStyleProject@183eae7[Polling 321], launcher=null, workspace=null, listener= hudson.util.StreamTaskListener@1a7a05 2009-aug-28 10:21:11 hudson.triggers.SCMTrigger$Runner runPolling ALLVARLIG: Failed to record SCM polling java.lang.NullPointerException at hudson.plugins.tfs.TfTool.execute(TfTool.java:99) at hudson.plugins.tfs.model.Server.execute(Server.java:47) at hudson.plugins.tfs.model.Project.getDetailedHistory(Project.java:41) at hudson.plugins.tfs.TeamFoundationServerScm.pollChanges(TeamFoundationServerScm.j ava:188) at hudson.model.AbstractProject.pollSCMChanges(AbstractProject.java:975) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:312) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:339) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.jav a:114) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:8 85) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) -----------------------------------------------------------
    via by redsolo,
    • java.lang.NullPointerException at hudson.plugins.tfs.TfTool.execute(TfTool.java:99) at hudson.plugins.tfs.model.Server.execute(Server.java:47) at hudson.plugins.tfs.model.Project.getDetailedHistory(Project.java:41) at hudson.plugins.tfs.TeamFoundationServerScm.pollChanges(TeamFoundationServerScm.java:187) at hudson.model.AbstractProject.pollSCMChanges(AbstractProject.java:965) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:312) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:339) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:114) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619)
    No Bugmate found.