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.

  • TFS Plugin 4.0.0 gives and error while querying for the changeset. I get the same error for all projects built from this machine. Verified that TFS SDK for Java is installed with the plugin and also TEE CLC, though its marked as not required for the 4.0 version. The project is developed in XCode and stored in TFS using the git-tf plugin for Mac OSX. {code:java} created by Team Build Querying for remote changeset at '$/xxxxx/_git/xxxx' as of 'D2016-03-02T18:51:31Z'... Query returned no result! FATAL: null java.lang.NullPointerException at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:194) at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:189) at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:205) at hudson.plugins.tfs.TeamFoundationServerScm.recordWorkspaceChangesetVersion(TeamFoundationServerScm.java:262) at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:211) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.matrix.MatrixBuild.run(MatrixBuild.java:306) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE {code}
    via by Mahitha Chalasani,
  • TFS Plugin 4.0.0 gives and error while querying for the changeset. I get the same error for all projects built from this machine. Verified that TFS SDK for Java is installed with the plugin and also TEE CLC, though its marked as not required for the 4.0 version. The project is developed in XCode and stored in TFS using the git-tf plugin for Mac OSX. {code:java} created by Team Build Querying for remote changeset at '$/xxxxx/_git/xxxx' as of 'D2016-03-02T18:51:31Z'... Query returned no result! FATAL: null java.lang.NullPointerException at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:194) at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:189) at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:205) at hudson.plugins.tfs.TeamFoundationServerScm.recordWorkspaceChangesetVersion(TeamFoundationServerScm.java:262) at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:211) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.matrix.MatrixBuild.run(MatrixBuild.java:306) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE {code}
    via by Mahitha Chalasani,
  • I'm trying to add a new project to Jenkins after upgrading the TFS plugin from 3.2 to 5.0 - actually it's 5.1. Some projects work, but one specifically doesn't. I'm getting the following error: Started by user TC Building in workspace E:\Jenkins\jobs\[jobName]\workspace Querying for remote changeset at '$/[tfspath]/WIP/WebService' as of 'D2016-08-31T12:59:01Z'... Query returned no result! FATAL: null java.lang.NullPointerException at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:273) at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:268) at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:284) at hudson.plugins.tfs.TeamFoundationServerScm.recordWorkspaceChangesetVersion(TeamFoundationServerScm.java:359) at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:308) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Sending e-mails to: joseph.hoppe@example.com Finished: FAILURE I've tried adding DefaultCollection to the TFS URL. The polling log reports: Started on Aug 31, 2016 8:04:00 AM Done. Took 5.4 sec No changes I looked at JENKINS-33280, and manually put together the URL as the issue suggests. The URL to the TFS server works, so it seems like the job's TFS settings are correct. Please let me know if I can provide any more information.
    via by Joseph Hoppe,
    • java.lang.NullPointerException at hudson.plugins.tfs.util.BuildWorkspaceConfigurationRetriever.getLatestForNode(BuildWorkspaceConfigurationRetriever.java:25) at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:155) at hudson.model.AbstractProject.checkout(AbstractProject.java:1104) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411) at hudson.model.Run.run(Run.java:1280) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:139)
    No Bugmate found.