StarTeam SDK 2006 Cannot get the current server time

Can anyone shed any light on this problem, I'm attempting to use the 9.1 Starteam SDK client, our Starteam Server is 8.0.172.28. When I test the connection in the VCS Root Setup I get the following message, and the test succeeds :

Client SDK version detected: 9.1
Server version reported: 8.0.172.28

ATTENTION:
Server and client SDK have different major versions.
This may (but not necessarily) cause problems during client-server interaction.

However when the project attempts to check for changes it fails, w/ a stack trace (see below). Now if I uninstall my StarTeam SDK, and install version 7.0 it works, there are no issues w/ checking out files or checking for changes. It feels like the 7.0 client is much slower, which is the reason for trying to use a newer version of the SDK.

-


stack trace -


jetbrains.buildServer.vcs.VcsException: java.lang.UnsupportedOperationException: Cannot get the current server time. This feature is not supported by StarTeam Server 2005.
at jetbrains.buildServer.buildTriggers.vcs.starteam.StarteamSupport.getCurrentVersion(StarteamSupport.java:36)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.updateCurrentVersion(VcsChangesLoader.java:39)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:62)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:243)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:273)
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:45)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:6)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.UnsupportedOperationException: Cannot get the current server time. This feature is not supported by StarTeam Server 2005.
at com.borland.starteam.impl.SupportedFeatures.throwUnsupportedException(SupportedFeatures.java:987)
at com.borland.starteam.impl.SupportedFeatures.verifyHasCurrentTime(SupportedFeatures.java:935)
at com.borland.starteam.impl.Server.getCurrentTime(Server.java:2173)
at com.starbase.starteam.Server.getCurrentTime(Server.java:1497)
at jetbrains.buildServer.buildTriggers.vcs.starteam.adapt.StarteamConnectionImpl.getCurrentServerTime(StarteamConnectionImpl.java:91)
at jetbrains.buildServer.buildTriggers.vcs.starteam.adapt.StarteamConnectionImpl.calculateServerTime(StarteamConnectionImpl.java:15)
at jetbrains.buildServer.buildTriggers.vcs.starteam.StarteamSupport.getCurrentVersion(StarteamSupport.java:162)
... 12 more
java.lang.UnsupportedOperationException: Cannot get the current server time. This feature is not supported by StarTeam Server 2005.
at com.borland.starteam.impl.SupportedFeatures.throwUnsupportedException(SupportedFeatures.java:987)
at com.borland.starteam.impl.SupportedFeatures.verifyHasCurrentTime(SupportedFeatures.java:935)
at com.borland.starteam.impl.Server.getCurrentTime(Server.java:2173)
at com.starbase.starteam.Server.getCurrentTime(Server.java:1497)
at jetbrains.buildServer.buildTriggers.vcs.starteam.adapt.StarteamConnectionImpl.getCurrentServerTime(StarteamConnectionImpl.java:91)
at jetbrains.buildServer.buildTriggers.vcs.starteam.adapt.StarteamConnectionImpl.calculateServerTime(StarteamConnectionImpl.java:15)
at jetbrains.buildServer.buildTriggers.vcs.starteam.StarteamSupport.getCurrentVersion(StarteamSupport.java:162)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.updateCurrentVersion(VcsChangesLoader.java:39)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:62)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:243)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:273)
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:45)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:6)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)

3 comments

Hello Rafal,

I've added the exception handling. This will be included into 3.1 release.
BTW, in which cases do you think your SDK 7.0 is slower than 9.1?

Can anyone shed any light on this problem, I'm attempting to use the
9.1 Starteam SDK client, our Starteam Server is 8.0.172.28. When I
test the connection in the VCS Root Setup I get the following message,
and the test succeeds :

Client SDK version detected: 9.1
Server version reported: 8.0.172.28
ATTENTION:
Server and client SDK have different major versions.
This may (but not necessarily) cause problems during client-server
interaction.
However when the project attempts to check for changes it fails, w/ a
stack trace (see below). Now if I uninstall my StarTeam SDK, and
install version 7.0 it works, there are no issues w/ checking out
files or checking for changes. It feels like the 7.0 client is much
slower, which is the reason for trying to use a newer version of the
SDK.

---- stack trace ----

jetbrains.buildServer.vcs.VcsException:
java.lang.UnsupportedOperationException: Cannot get the current server
time. This feature is not supported by StarTeam Server 2005.

at
jetbrains.buildServer.buildTriggers.vcs.starteam.StarteamSupport.getCu
rrentVersion(StarteamSupport.java:36)

at
jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.updateCurrent
Version(VcsChangesLoader.java:39)

at
jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(V
csChangesLoader.java:62)

at
jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerIm
pl.java:243)

at
jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(Vc
sManagerImpl.java:273)

at
jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForM
odifications(SecuredVcsManager.java:45)

at
jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(Vcs
ModificationChecker.java:6)

at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417
)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)

at java.util.concurrent.FutureTask.run(FutureTask.java:123)

at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
tor.java:650)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:675)

at java.lang.Thread.run(Thread.java:595)

Caused by: java.lang.UnsupportedOperationException: Cannot get the
current server time. This feature is not supported by StarTeam Server
2005.

at
com.borland.starteam.impl.SupportedFeatures.throwUnsupportedException(
SupportedFeatures.java:987)

at
com.borland.starteam.impl.SupportedFeatures.verifyHasCurrentTime(Suppo
rtedFeatures.java:935)

at com.borland.starteam.impl.Server.getCurrentTime(Server.java:2173)

at com.starbase.starteam.Server.getCurrentTime(Server.java:1497)

at
jetbrains.buildServer.buildTriggers.vcs.starteam.adapt.StarteamConnect
ionImpl.getCurrentServerTime(StarteamConnectionImpl.java:91)

at
jetbrains.buildServer.buildTriggers.vcs.starteam.adapt.StarteamConnect
ionImpl.calculateServerTime(StarteamConnectionImpl.java:15)

at
jetbrains.buildServer.buildTriggers.vcs.starteam.StarteamSupport.getCu
rrentVersion(StarteamSupport.java:162)

.. 12 more

java.lang.UnsupportedOperationException: Cannot get the current server
time. This feature is not supported by StarTeam Server 2005.

at
com.borland.starteam.impl.SupportedFeatures.throwUnsupportedException(
SupportedFeatures.java:987)

at
com.borland.starteam.impl.SupportedFeatures.verifyHasCurrentTime(Suppo
rtedFeatures.java:935)

at com.borland.starteam.impl.Server.getCurrentTime(Server.java:2173)

at com.starbase.starteam.Server.getCurrentTime(Server.java:1497)

at
jetbrains.buildServer.buildTriggers.vcs.starteam.adapt.StarteamConnect
ionImpl.getCurrentServerTime(StarteamConnectionImpl.java:91)

at
jetbrains.buildServer.buildTriggers.vcs.starteam.adapt.StarteamConnect
ionImpl.calculateServerTime(StarteamConnectionImpl.java:15)

at
jetbrains.buildServer.buildTriggers.vcs.starteam.StarteamSupport.getCu
rrentVersion(StarteamSupport.java:162)

at
jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.updateCurrent
Version(VcsChangesLoader.java:39)

at
jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(V
csChangesLoader.java:62)

at
jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerIm
pl.java:243)

at
jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(Vc
sManagerImpl.java:273)

at
jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForM
odifications(SecuredVcsManager.java:45)

at
jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(Vcs
ModificationChecker.java:6)

at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417
)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)

at java.util.concurrent.FutureTask.run(FutureTask.java:123)

at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
tor.java:650)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:675)

at java.lang.Thread.run(Thread.java:595)

--
Sergey Anchipolevsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

I don't have hard numbers, but our ant scripts do their own checkouts w/ custom starteamsyc tags which rely on the SDK. The checkouts can be considerably, we have over 4000 src files alone. StarTeam SDK 9 seems to go much faster.. however now that I think about it that might be due to the use of MPX caching agents.... hmm.

Speaking of, is TeamCity capable of detecting and using MPX caching agents to improve VCS access times? I think this feature was added in StarTeam 8.0.

Either way it would be nice if SDK 9 was supported instead of SDK 7 :) Thanks for the reply.

0

Hello Rafal,


Speaking of, is TeamCity capable of detecting and using MPX caching
agents to improve VCS access times? I think this feature was added in
StarTeam 8.0.


TeamCity curently doesn't use MPX and there are no plans so far. Maybe in
the future.


Either way it would be nice if SDK 9 was supported instead of SDK 7 :)
Thanks for the reply.


TeamCity supports SDK starting from 6.0. SDK 9.x is supported as well. :)

--
Sergey Anchipolevsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.