- changed status to open
Unable to check out code from TFS server using TFS Repository
Unable to check out code from TFS server using TFS Repository
error 03-Dec-2019 23:32:15 Error occurred while running Task 'Checkout Release Meta Data(6)' of type com.atlassian.********.plugins.vcs:task.vcs.checkout.
error 03-Dec-2019 23:32:15 java.lang.RuntimeException: com.atlassian.********.repository.RepositoryException: java.lang.NullPointerException: webService must not be null
error 03-Dec-2019 23:32:15 at com.atlassian.********.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:122)
error 03-Dec-2019 23:32:15 at com.atlassian.********.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:79)
error 03-Dec-2019 23:32:15 at com.atlassian.********.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:175)
error 03-Dec-2019 23:32:15 at com.atlassian.********.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:161)
error 03-Dec-2019 23:32:15 at com.atlassian.********.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:121)
error 03-Dec-2019 23:32:15 at com.atlassian.********.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:284)
error 03-Dec-2019 23:32:15 at com.atlassian.********.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:223)
error 03-Dec-2019 23:32:15 at com.atlassian.********.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:284)
error 03-Dec-2019 23:32:15 at com.atlassian.********.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:91)
error 03-Dec-2019 23:32:15 at com.atlassian.********.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:74)
error 03-Dec-2019 23:32:15 at com.atlassian.********.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:185)
error 03-Dec-2019 23:32:15 at com.atlassian.********.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:122)
error 03-Dec-2019 23:32:15 at com.atlassian.********.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:115)
error 03-Dec-2019 23:32:15 at com.atlassian.********.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)
error 03-Dec-2019 23:32:15 at com.atlassian.********.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:115)
error 03-Dec-2019 23:32:15 at com.atlassian.********.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:126)
error 03-Dec-2019 23:32:15 at com.atlassian.********.utils.BambooRunnables$1.run(BambooRunnables.java:47)
error 03-Dec-2019 23:32:15 at com.atlassian.********.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
error 03-Dec-2019 23:32:15 at com.atlassian.********.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
error 03-Dec-2019 23:32:15 at com.atlassian.********.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
error 03-Dec-2019 23:32:15 at java.lang.Thread.run(Unknown Source)
error 03-Dec-2019 23:32:15 Caused by: com.atlassian.********.repository.RepositoryException: java.lang.NullPointerException: webService must not be null
error 03-Dec-2019 23:32:15 at com.stellarity.********.repository.TfsRepository.retrieveSourceCode(TfsRepository.java:501)
error 03-Dec-2019 23:32:15 at com.atlassian.********.vcs.configuration.legacy.LegacyWorkingCopyManager.retrieveSourceCode(LegacyWorkingCopyManager.java:116)
error 03-Dec-2019 23:32:15 at com.atlassian.********.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:204)
error 03-Dec-2019 23:32:15 at com.atlassian.********.plugins.vcs.task.VcsCheckoutTask.access$000(VcsCheckoutTask.java:54)
error 03-Dec-2019 23:32:15 at com.atlassian.********.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:124)
error 03-Dec-2019 23:32:15 at com.atlassian.********.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:121)
error 03-Dec-2019 23:32:15 at com.atlassian.********.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:93)
error 03-Dec-2019 23:32:15 ... 20 more
error 03-Dec-2019 23:32:15 Caused by: java.lang.NullPointerException: webService must not be null
error 03-Dec-2019 23:32:15 at com.microsoft.tfs.util.Check.throwForNull(Check.java:135)
error 03-Dec-2019 23:32:15 at com.microsoft.tfs.util.Check.notNull(Check.java:28)
error 03-Dec-2019 23:32:15 at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.<init>(VersionControlClient.java:438)
error 03-Dec-2019 23:32:15 at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.<init>(VersionControlClient.java:520)
error 03-Dec-2019 23:32:15 at com.microsoft.tfs.core.config.client.DefaultClientFactory$7.newClient(DefaultClientFactory.java:238)
error 03-Dec-2019 23:32:15 at com.microsoft.tfs.core.config.client.DefaultClientFactory.newClient(DefaultClientFactory.java:91)
error 03-Dec-2019 23:32:15 at com.microsoft.tfs.core.TFSConnection.getClient(TFSConnection.java:1470)
error 03-Dec-2019 23:32:15 at com.microsoft.tfs.core.TFSTeamProjectCollection.getVersionControlClient(TFSTeamProjectCollection.java:359)
error 03-Dec-2019 23:32:15 at com.stellarity.********.repository.TfsRepository.tryToRetrieveSourceCode(TfsRepository.java:891)
error 03-Dec-2019 23:32:15 at com.stellarity.********.repository.TfsRepository.retrieveSourceCode(TfsRepository.java:479)
error 03-Dec-2019 23:32:15 ... 26 more
Comments (10)
-
-
Hi Amrish,
Please refer to #61 to see how to fix this. It’s probably caused by using tf.exe command line tool and bamboo build at the same time.
Could you tell us what did you do before that happened? We are willing to add automatic cache folder cleanup in case of this error but we need steps to reproduce.
-
Account Deactivated reporter Hello Sergey Podobry,
I already did this activity but still getting the same issue. Kindly help me with the priority to fix this issue. This is a blocker for us.
Thanks
Amrish
-
Could you describe your setup: bamboo version, how many agents, tfs version, os version? Also a few points to consider:
- you need to clear cache on the machine where a bamboo agent is running
- %localappdata% is user specific, so make sure that you use the same user as running bamboo
- did you restart the bamboo?
-
-
assigned issue to
-
assigned issue to
-
Account Deactivated reporter I already did the following:
- Cleared the cache on Bamboo server and agent.
- Bamboo Server is running on Linux machine with version 6.0.2 and the remote Bamboo agent is running on Windows 2012 server.
- I restarted the Bamboo Server and agent.
- We are running the build on one dedicated agent.
- TFS version is 2010.
-
What about user? For which user did you clear the cache?
-
Account Deactivated reporter Bamboo was running as a service and after clearing the cache from C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Team Foundation\4.0 it worked.
-
Account Deactivated reporter - changed status to resolved
-
Good! By the way, can you help us about steps to reproduce the issue? Maybe any clues?
- Log in to comment