System.NullReferenceException

If you are having a problem using Vault, post a message here.
Post Reply
JeffM
Posts: 12
Joined: Wed Feb 27, 2008 2:59 pm

System.NullReferenceException

Post by JeffM » Mon Apr 11, 2011 8:09 am

Occassionally (about once every 2-3 days) we get the following error immediately after one of our CruiseControl.Net projects starts. The project fails while trying to get the source code from Vault Pro. We are using the CruiseControl.net plugin provided by SourceGear. I have found that restarting the CruiseControl.Net service will resolve the problem, but this is not a practical solution for us.

Code: Select all

System.NullReferenceException: Object reference not set to an instance of an object.
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultProClient.GetVaultClientFolder(String repositoryFolderPath, VaultClientFolder& vcf)
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultProClient.GetVersion(String repositoryFolderPath, String workingDir, Int64 folderVersion, Boolean useWorkingDir, Boolean deleteItemsThatAreNotInTheRepository)
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultProVaultSourceControl.GetSource(IIntegrationResult result)
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.MultiSourceControl.GetSource(IIntegrationResult result)
   at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Build(IIntegrationResult result)
   at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)
Is there any reason for this? I do not see anything in the vault log relating to this error. We are going to set up a scheduled task to restart the service on a nightly basis to see if that prevents the problem from affecting us, but I was hoping for a better solution (or at least help finding the underlying problem).

Thanks,

Jeff

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: System.NullReferenceException

Post by Beth » Mon Apr 11, 2011 8:13 am

What version of Vault are you using?

Do you have many projects checking and building at the same time?

Do you have queues set up in CC.NET?
Beth Kieler
SourceGear Technical Support

JeffM
Posts: 12
Joined: Wed Feb 27, 2008 2:59 pm

Re: System.NullReferenceException

Post by JeffM » Mon Apr 11, 2011 8:25 am

Beth wrote:What version of Vault are you using?
This goes for our workstations and our build server
Version Check: This Vault Professional client is version 5.1.1.19216
Version Check: Your server is version 5.1.1.19216
Beth wrote:Do you have many projects checking and building at the same time?
We have 21 projects in all, but typically only 1 builds at a time and some are only used very very rarely
Beth wrote:Do you have queues set up in CC.NET?
Yes. We use CruiseControl to automate our builds and deployments. Due to limitations of our code we can only launch one build project at a time so we added them all to the same queue. Our deploy projects are capable of running simultaneously so they are not a part of any queue.




It is also worth mentioning that the error happens even if no other project is running. Also, other projects will continue to work just fine. Once a project fails for the NullReferenceException, the only thing that resolves the problem is restarting the service.

Thanks,

Jeff

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: System.NullReferenceException

Post by Beth » Mon Apr 11, 2011 8:43 am

Can you either post your Vault Server Log here or send it in an email to support at sourcegear.com (attn: Beth) with a link to this forum thread? The server log is found at %windir%\temp\sgvault\sgvault.log.
Beth Kieler
SourceGear Technical Support

Post Reply