CCnet中的System.FormatException

时间:2012-06-07 18:04:38

标签: build cruisecontrol.net formatexception

当我尝试通过Cruise Control构建我的项目时,我得到了一个错误的错误:

BUILD EXCEPTION
Error Message:  System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number,               NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseUInt64(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Convert.ToUInt64(String value)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModificationsWithLogging(ISourceControl sc, IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl sourceControl, IIntegrationResult lastBuild, IIntegrationResult thisBuild)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)
Project:    TRPMonitor 5.2.0 10G 11G
Date of build:  2012-06-07 13:53:26
Running time:   00:00:03
Integration Request:    Build (ForceBuild) triggered from COREBUILDER

我将TortoiseSvn的版本从1.6更改为1.7,并将svn命令行从1.6更新为1.7。如何让我的项目再次构建?

谢谢!

P.S。我去了这里:http://jira.public.thoughtworks.org/browse/CCNET-634 在这里:http://comments.gmane.org/gmane.comp.windows.dotnet.ccnet.user/6126 但它并没有解决我的问题。

  • 编辑 -

在CCnet.log中我找到了这个(在将我的所有文件更新为svn 1.7之后):

2012-06-07 15:16:45,579 [72:INFO] Project: 'TRPMonitor 5.2.0 10G 11G' is added to queue: 'TRPMonitor 5.2.0 10G 11G' in position 0. Requestsource : COREBUILDER ()
2012-06-07 15:16:45,594 [TRPMonitor 5.2.0 10G 11G:INFO] Queue: 'TRPMonitor 5.2.0 10G 11G' is attempting to be in-use, trying to lock related queues
2012-06-07 15:16:45,594 [TRPMonitor 5.2.0 10G 11G:INFO] Project: 'TRPMonitor 5.2.0 10G 11G' is first in queue: 'TRPMonitor 5.2.0 10G 11G' and shall start integration.
2012-06-07 15:16:45,594 [TRPMonitor 5.2.0 10G 11G:DEBUG] Checking if C:\REP\TRUNKS_5.2.0\TRPMonitor\trunks_5.01.1 is a svn working folder
2012-06-07 15:16:45,594 [TRPMonitor 5.2.0 10G 11G:DEBUG] Starting process [C:\Program Files\svn-win32-1.7.5\svn.exe] in working directory [C:\REP\TRUNKS_5.2.0\TRPMonitor\trunks_5.01.1] with arguments [info http://xx.xx.xxx.xx/svn/svn-payments-core/ --username XXXXXXXX --password ******** --no-auth-cache --non-interactive --xml]
594 [TRPMonitor 5.2.0 10G 11G:DEBUG] Not setting PriorityClass on [C:\Program Files\svn-win32-1.7.5\svn.exe] to default Normal
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <?xml version="1.0" encoding="UTF-8"?>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <info>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <entry
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe]    path="svn-payments-core"
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe]    revision="75905"
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe]    kind="dir">
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <url>http://xx.xx.xxx.xx/svn/svn-payments-core</url>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <repository>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <root>http://xx.xx.xxx.xx/svn/svn-payments-core</root>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <uuid>12d69269-45e3-204f-b74b-a9c2047a3d92</uuid>
2012-06-07 15:16:45,844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] </repository>
2012-06-07 15:16:45,844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <commit
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe]    revision="75905">
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <author>XXXXXX</author>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <date>2012-06-07T19:15:34.949697Z</date>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] </commit>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] </entry>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] </info>
954 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] standard-error stream closed -- null received in event
954 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] standard-output stream closed -- null received in event
969 [72:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] process exited event received
985 [TRPMonitor 5.2.0 10G 11G:WARN] Source control failure (GetModifications): Input string was not in a correct format.

似乎错误来自SVN命令行......

1 个答案:

答案 0 :(得分:2)

查看svn 1.7的release notes,看起来存在元数据存储方式的变化(而不是多个.svn文件夹,现在只有一个。)尝试删除所有源代码构建框,让ccnet重新拉动所有内容。