VCS Perforce checkout -- failing because it can't find com.intellij.util.ui.UIUtil
What am I missing? Sorry for my hast but it's been a long season...
This is an init case. I'm starting Teamcity 5 from scratch with a new|empty $HOME/.BuildServer directory.
After configuring VCS and Builderunner, when I try to run a build, I can't get past the Perforce checkout:
[2009-12-03 18:44:03,116] INFO - rver.agent.impl.BuildRunAction - Call stage jetbrains.buildServer.agent.impl.patch.UpdateSourcesFromServer
[2009-12-03 18:44:03,121] INFO - ch.UpdateSourcesBuildStageBase - Updating sources: server side checkout...
[2009-12-03 18:44:03,123] INFO - .patch.UpdateSourcesFromServer - Requesting patch from server, full checkout - true
[2009-12-03 18:44:03,123] INFO - .patch.UpdateSourcesFromServer - Copying patch to temp file...
[2009-12-03 18:46:48,475] WARN - ch.UpdateSourcesBuildStageBase - Exception occurred while patch applying: Could not initialize class com.intellij.util.ui.UIUtil
java.lang.NoClassDefFoundError: Could not initialize class com.intellij.util.ui.UIUtil
at com.intellij.CommonBundle.messageOrDefault(CommonBundle.java:76)
at com.intellij.CommonBundle.message(CommonBundle.java:86)
at com.intellij.CommonBundle.message(CommonBundle.java:45)
at com.intellij.openapi.util.text.StringUtil.formatFileSize(StringUtil.java:1011)
at jetbrains.buildServer.util.StringUtil.formatFileSize(StringUtil.java:672)
at jetbrains.buildServer.agent.impl.patch.PatchStreamDownloader$2.nextPortionWritten(PatchStreamDownloader.java:74)
at jetbrains.buildServer.util.TCStreamUtil.writeBinary(TCStreamUtil.java:126)
at jetbrains.buildServer.agent.impl.patch.PatchStreamDownloader.copyStreamToFileAndCloseStream(PatchStreamDownloader.java:85)
at jetbrains.buildServer.agent.impl.patch.PatchStreamDownloader.downloadPatch(PatchStreamDownloader.java:38)
at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.downloadPatch(PatchDownloaderImpl.java:141)
at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.copyPatchAndCheck(PatchDownloaderImpl.java:54)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesPatcherBase.copyPatchToTempFile(UpdateSourcesPatcherBase.java:65)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesFromServer.updateSources(UpdateSourcesFromServer.java:58)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doSourceUpdate(UpdateSourcesBuildStageBase.java:74)
at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doRecoverableStage(UpdateSourcesBuildStageBase.java:52)
at jetbrains.buildServer.agent.impl.runStages.RecoverableBuildStage.doBuildStage(RecoverableBuildStage.java:62)
at jetbrains.buildServer.agent.impl.BuildRunAction.callRunStage(BuildRunAction.java:106)
at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:80)
at jetbrains.buildServer.agent.impl.BuildRunAction.access$000(BuildRunAction.java:17)
at jetbrains.buildServer.agent.impl.BuildRunAction$1.run(BuildRunAction.java:55)
at java.lang.Thread.run(Thread.java:637)
VCS Configuration:
VCS checkout mode: Automatically on server
Checkout directory: default
Clean all files before build: ON
VCS labeling: disabled
I've validated the Perforce connection with your test option.
I've validated that TeamCity is successfully detecting change-lists in Perforce (and trying to update from Perforce).
The problem is "applying the patch.
Any help would be much appreciated,
Please sign in to leave a comment.
Could you please provide full teamcity-agent.log?
The log is attached.
I've added JAVA_OPTS=-Djava.awt.headless=true to both the buildagent properties and the teamcity server properties to alleviate the "Can't connect to window server - not enough permissions" and such.
Thanks for your time,
-Hank
Attachment(s):
teamcity-agent.log.zip
Please watch for this issue: http://youtrack.jetbrains.net/issue/TW-10524 we will try to provide fix ASAP
Confirmed. A more recent TeamCity build (#10687) solves this problem.
Thanks again.
-Hank