VCS problem (SourceGear Vault)

Hi there,

We have a build template which has our VCS root in it.  All of a sudden, every project is getting errors, and hanging on "checking for changes" when I try to do a build.  Up until about an hour ago, things were working fine.  The error is:

Error collecting changes for VCS repository '"NMS VCS Root" {instance id=5, parent internal id=4, parent id=NmsVcsRoot, description: "vault: http://ourservername/VaultService"}'
String index out of range: -1


Partial stack trace:

jetbrains.buildServer.vcs.VcsRootVcsException: Error collecting changes for VCS repository '"NMS VCS Root" {instance id=5, parent internal id=4, parent id=NmsVcsRoot, description: "vault: http://ourservername/VaultService"}'
String index out of range: -1
at jetbrains.buildServer.buildTriggers.vcs.ConnectionStateReporter.reportConnectionFailed(ConnectionStateReporter.java:11)
at jetbrains.buildServer.buildTriggers.vcs.ConnectionStateReporter.reportConnectionFailed(ConnectionStateReporter.java:16)
at jetbrains.buildServer.buildTriggers.vcs.VcsRootChangesLoader$1.run(VcsRootChangesLoader.java:36)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory

3 comments
Comment actions Permalink

Hi, Chris,

Unfortunately the attached stacktrace doesn't show the place where the exception occurrs.
Could you please attach the whole exception stacktrace (including "Caused by" part).

0
Comment actions Permalink


Error collecting changes for VCS repository '"NMS VCS Root" {instance id=5, parent internal id=4, parent id=NmsVcsRoot, description: "vault: http://xyz/VaultService"}'
String index out of range: -1                            
Hide stacktrace

jetbrains.buildServer.vcs.VcsRootVcsException: Error collecting changes for VCS repository '"NMS VCS Root" {instance id=5, parent internal id=4, parent id=NmsVcsRoot, description: "vault: http://xyz/VaultService"}'
String index out of range: -1
at jetbrains.buildServer.buildTriggers.vcs.ConnectionStateReporter.reportConnectionFailed(ConnectionStateReporter.java:11)
at jetbrains.buildServer.buildTriggers.vcs.ConnectionStateReporter.reportConnectionFailed(ConnectionStateReporter.java:16)
at jetbrains.buildServer.buildTriggers.vcs.VcsRootChangesLoader$1.run(VcsRootChangesLoader.java:36)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:103)
at jetbrains.buildServer.buildTriggers.vcs.VcsRootChangesLoader.loadChanges(VcsRootChangesLoader.java:36)
at jetbrains.buildServer.buildTriggers.vcs.VcsRootChangesLoader.loadChanges(VcsRootChangesLoader.java:42)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl$2.run(VcsChangesLoaderImpl.java:1)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl$3.call(VcsChangesLoaderImpl.java:1)
at jetbrains.buildServer.serverSide.impl.ImmediateFuture.get(ImmediateFuture.java:7)
at jetbrains.buildServer.serverSide.impl.ImmediateFuture.get(ImmediateFuture.java:5)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.waitForTasksToComplete(VcsChangesLoaderImpl.java:281)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.tryLoadChanges(VcsChangesLoaderImpl.java:263)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1$1.run(VcsModificationChecker.java:2)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:103)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:3)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: jetbrains.buildServer.vcs.VcsException: String index out of range: -1
... 20 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultChangeCollector.collectChange(VaultChangeCollector.java:144)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultChangeCollector.collectModifications(VaultChangeCollector.java:114)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultChangeCollector.collectChanges(VaultChangeCollector.java:77)
at jetbrains.buildServer.vcs.utils.VcsPluginUtil.collectBuildChanges(VcsPluginUtil.java:43)
at jetbrains.vcs.api.services.collectChanges.CollectRepositoryChangesByIncludeRulesAdapter.collectChanges(CollectRepositoryChangesByIncludeRulesAdapter.java:2)
at jetbrains.vcs.api.services.collectChanges.CollectChangesServiceImpl$CollectChangesInSingleRepository.perform(CollectChangesServiceImpl.java:4)
at jetbrains.vcs.api.services.collectChanges.CollectChangesServiceImpl.runAttempts(CollectChangesServiceImpl.java:11)
at jetbrains.vcs.api.services.collectChanges.CollectChangesServiceImpl.collectChanges(CollectChangesServiceImpl.java:1)
at jetbrains.vcs.api.services.collectChanges.CollectChangesServiceProvider$1.collectChanges(CollectChangesServiceProvider.java:4)
at jetbrains.buildServer.buildTriggers.vcs.LoadChanges.collectChangesForCheckoutRules(LoadChanges.java:25)
at jetbrains.buildServer.buildTriggers.vcs.LoadChanges.collectChanges(LoadChanges.java:56)
at jetbrains.buildServer.buildTriggers.vcs.LoadChanges.run(LoadChanges.java:51)
at jetbrains.buildServer.buildTriggers.vcs.VcsRootChangesLoader$1.run(VcsRootChangesLoader.java:35)
... 18 more
jetbrains.buildServer.vcs.VcsException: String index out of range: -1
at jetbrains.buildServer.buildTriggers.vcs.ConnectionStateReporter.reportConnectionFailed(ConnectionStateReporter.java:16)
at jetbrains.buildServer.buildTriggers.vcs.VcsRootChangesLoader$1.run(VcsRootChangesLoader.java:36)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:103)
at jetbrains.buildServer.buildTriggers.vcs.VcsRootChangesLoader.loadChanges(VcsRootChangesLoader.java:36)
at jetbrains.buildServer.buildTriggers.vcs.VcsRootChangesLoader.loadChanges(VcsRootChangesLoader.java:42)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl$2.run(VcsChangesLoaderImpl.java:1)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl$3.call(VcsChangesLoaderImpl.java:1)
at jetbrains.buildServer.serverSide.impl.ImmediateFuture.get(ImmediateFuture.java:7)
at jetbrains.buildServer.serverSide.impl.ImmediateFuture.get(ImmediateFuture.java:5)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.waitForTasksToComplete(VcsChangesLoaderImpl.java:281)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.tryLoadChanges(VcsChangesLoaderImpl.java:263)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1$1.run(VcsModificationChecker.java:2)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:103)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:3)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultChangeCollector.collectChange(VaultChangeCollector.java:144)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultChangeCollector.collectModifications(VaultChangeCollector.java:114)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultChangeCollector.collectChanges(VaultChangeCollector.java:77)
at jetbrains.buildServer.vcs.utils.VcsPluginUtil.collectBuildChanges(VcsPluginUtil.java:43)
at jetbrains.vcs.api.services.collectChanges.CollectRepositoryChangesByIncludeRulesAdapter.collectChanges(CollectRepositoryChangesByIncludeRulesAdapter.java:2)
at jetbrains.vcs.api.services.collectChanges.CollectChangesServiceImpl$CollectChangesInSingleRepository.perform(CollectChangesServiceImpl.java:4)
at jetbrains.vcs.api.services.collectChanges.CollectChangesServiceImpl.runAttempts(CollectChangesServiceImpl.java:11)
at jetbrains.vcs.api.services.collectChanges.CollectChangesServiceImpl.collectChanges(CollectChangesServiceImpl.java:1)
at jetbrains.vcs.api.services.collectChanges.CollectChangesServiceProvider$1.collectChanges(CollectChangesServiceProvider.java:4)
at jetbrains.buildServer.buildTriggers.vcs.LoadChanges.collectChangesForCheckoutRules(LoadChanges.java:25)
at jetbrains.buildServer.buildTriggers.vcs.LoadChanges.collectChanges(LoadChanges.java:56)
at jetbrains.buildServer.buildTriggers.vcs.LoadChanges.run(LoadChanges.java:51)
at jetbrains.buildServer.buildTriggers.vcs.VcsRootChangesLoader$1.run(VcsRootChangesLoader.java:35)
... 18 more
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultChangeCollector.collectChange(VaultChangeCollector.java:144)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultChangeCollector.collectModifications(VaultChangeCollector.java:114)
at jetbrains.buildServer.buildTriggers.vcs.vault.VaultChangeCollector.collectChanges(VaultChangeCollector.java:77)
at jetbrains.buildServer.vcs.utils.VcsPluginUtil.collectBuildChanges(VcsPluginUtil.java:43)
at jetbrains.vcs.api.services.collectChanges.CollectRepositoryChangesByIncludeRulesAdapter.collectChanges(CollectRepositoryChangesByIncludeRulesAdapter.java:2)
at jetbrains.vcs.api.services.collectChanges.CollectChangesServiceImpl$CollectChangesInSingleRepository.perform(CollectChangesServiceImpl.java:4)
at jetbrains.vcs.api.services.collectChanges.CollectChangesServiceImpl.runAttempts(CollectChangesServiceImpl.java:11)
at jetbrains.vcs.api.services.collectChanges.CollectChangesServiceImpl.collectChanges(CollectChangesServiceImpl.java:1)
at jetbrains.vcs.api.services.collectChanges.CollectChangesServiceProvider$1.collectChanges(CollectChangesServiceProvider.java:4)
at jetbrains.buildServer.buildTriggers.vcs.LoadChanges.collectChangesForCheckoutRules(LoadChanges.java:25)
at jetbrains.buildServer.buildTriggers.vcs.LoadChanges.collectChanges(LoadChanges.java:56)
at jetbrains.buildServer.buildTriggers.vcs.LoadChanges.run(LoadChanges.java:51)
at jetbrains.buildServer.buildTriggers.vcs.VcsRootChangesLoader$1.run(VcsRootChangesLoader.java:35)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:103)
at jetbrains.buildServer.buildTriggers.vcs.VcsRootChangesLoader.loadChanges(VcsRootChangesLoader.java:36)
at jetbrains.buildServer.buildTriggers.vcs.VcsRootChangesLoader.loadChanges(VcsRootChangesLoader.java:42)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl$2.run(VcsChangesLoaderImpl.java:1)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl$3.call(VcsChangesLoaderImpl.java:1)
at jetbrains.buildServer.serverSide.impl.ImmediateFuture.get(ImmediateFuture.java:7)
at jetbrains.buildServer.serverSide.impl.ImmediateFuture.get(ImmediateFuture.java:5)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.waitForTasksToComplete(VcsChangesLoaderImpl.java:281)
at jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.tryLoadChanges(VcsChangesLoaderImpl.java:263)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1$1.run(VcsModificationChecker.java:2)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:103)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:3)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
0
Comment actions Permalink

Chris,
Thank you for details!
What TeamCity version are you evaluating?
What are you Vault VCS root settings and checkout rules?
As far as I see, you are using not very fresh plugin version, I recommend you to try the latest one (put attached vault-vcs.zip to .BuildServer/plugins and restart TeamCity server).
The issue may be no longer present, but still, please, provide the above asked info.



Attachment(s):
vault-vcs.zip
0

Please sign in to leave a comment.