Type:
Exception
Priority:
Critical Critical  
State:
Fixed
Subsystem:
Agent - .NET
Reporter:
Gunnlaugur Thor Briem (gthb) Send Email
Assignee:
Mikhail Pilin (ww) Send Email
Affects:
Agra EAP (3654)
Fixed in:
TeamCity 2.0 Agra (4111)
Created:
21 months ago (01 Feb 2007 18:50)
Updated:
21 months ago (12 Feb 2007 15:56)
Votes:
0
Resolved:
JIRA source:
TW-1601
Build:
3654

Trying out TeamCity for the first time, latest EAP version, working against TFS server, my builds fail in checking out the source from VCS, with this message in the log:


System.InvalidOperationException: Unexpected change type

at TfsNativeAccessor.Command_BuildPatch.Do(XmlTextWriter writer, String server, String username, String password, String serverItem, String from, String current, String localItem)
at TfsNativeAccessor.Program.Main(String[] args)


jetbrains.buildServer.vcs.VcsException: TFS execution error:

System.InvalidOperationException: Unexpected change type

at TfsNativeAccessor.Command_BuildPatch.Do(XmlTextWriter writer, String server, String username, String password, String serverItem, String from, String current, String localItem)
at TfsNativeAccessor.Program.Main(String[] args)


at jetbrains.buildServer.buildTriggers.vcs.tfs.TfsNativeExeRunner.start(TfsNativeExeRunner.java:23)
at jetbrains.buildServer.buildTriggers.vcs.tfs.TfsSupport.buildPatch(TfsSupport.java:54)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:167)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:19)
at jetbrains.buildServer.serverSide.impl.BuildStarter$3.run(BuildStarter.java:26)
at java.lang.Thread.run(Thread.java:619)


I have seven VCS roots in the project, all on the same TFS server, but initially I just had one and configured it wrong, so nothing was fetched (I selected "Do not checkout files automatically", because in TFS terminology, "checkout" means checkout for edit, not just fetching the latest version to the local workspace, so I misunderstood the option).


I do not know how to troubleshoot this "unexpected change type" ... and the exception type (InvalidOperationException) suggests that this is an error on your side, not mine :)


All of these are checked:


X Clean all files before build
X Run one build at a time
X Fail build if at least one test failed
X Enable execution timeout: 22 minutes


Full build output is attached.


Environment: Windows XP SP2, downloaded TeamCity as ZIP file with Tomcat installed, have VS2005 SP1 installed, am running against TFS on port 8080 on another machine.


Issue wasresolved

  • Gunnlaugur Thor Briem (gthb) Send Email
    21 months ago (01 Feb 2007 20:31)

I tried creating a new project and build config from scratch with all the VCS roots set up right, and still got the same problem on the first build. So the problem is not related to my initial wrong config in the first project.

  • Mikhail Pilin (ww) Send Email
    21 months ago (09 Feb 2007 13:09)

For Gunnlaugur Thor Briem:


I need History in following format for your changeset #9300-#9310:


Changeset #C

 name #0, change
 name #1, change

...
 name #F, change

Old New
Gunnlaugur Thor Briem (gthb) - 21 months ago (12 Feb 2007 15:56)

JetBrains Tracker revision #2008 [13-Nov-2008 11:56] (version #56) Copyright 2007-2008 JetBrains s.r.o.