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

Error with TFS Plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • tfs-plugin
    • Jenkins Version 2.19.2
      Plugin TFS 5.2.1
      JDK 1.8
      Visual Studio Ultimate 2012

      Hi,
      From the past few day, I have started getting error with my TFS Plugin integrated with Jenkins. I have tried clearing the tfs cache but nothing helped.

      Below is the stack trace:

      FATAL: java.lang.NullPointerException: webService must not be null
      java.lang.RuntimeException: java.lang.NullPointerException: webService must not be null
      at hudson.plugins.tfs.model.Server.execute(Server.java:226)
      at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:272)
      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:1278)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      at hudson.model.Run.execute(Run.java:1720)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:404)
      Caused by: java.lang.NullPointerException: webService must not be null
      at com.microsoft.tfs.util.Check.throwForNull(Check.java:116)
      at com.microsoft.tfs.util.Check.notNull(Check.java:22)
      at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.<init>(VersionControlClient.java:439)
      at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.<init>(VersionControlClient.java:515)
      at com.microsoft.tfs.core.config.client.DefaultClientFactory$7.newClient(DefaultClientFactory.java:228)
      at com.microsoft.tfs.core.config.client.DefaultClientFactory.newClient(DefaultClientFactory.java:92)
      at com.microsoft.tfs.core.TFSConnection.getClient(TFSConnection.java:1459)
      at com.microsoft.tfs.core.TFSTeamProjectCollection.getVersionControlClient(TFSTeamProjectCollection.java:376)
      at hudson.plugins.tfs.model.Server.getVersionControlClient(Server.java:207)
      at hudson.plugins.tfs.commands.RemoteChangesetVersionCommand.call(RemoteChangesetVersionCommand.java:56)
      at hudson.plugins.tfs.commands.RemoteChangesetVersionCommand.call(RemoteChangesetVersionCommand.java:33)
      at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
      at hudson.plugins.tfs.model.Server.execute(Server.java:222)
      ... 13 more
      Finished: FAILURE

            000panther Paul Weber
            sipandey Siddharth Pandey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: