System.NullReferenceException: Object reference not set to a

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
icnocop
Posts: 46
Joined: Wed Aug 18, 2004 12:41 pm

System.NullReferenceException: Object reference not set to a

Post by icnocop » Wed Jul 30, 2008 6:00 pm

Hi.

I am experiencing weird behavior with SourceGear Vault v4.1.2 on windows xp x64 sp2.

I have been receiving the error "Object reference not set to an instance of an object." in the VaultGUIClient.exe ever since I tried to set saveSession="true" in Nant.VaultTasks with different credentials.

Any ideas?

Thank you.

Here are the contents of VaultGUIClient.txt:

7/30/2008 4:54:21 PM <generic>: [GUIClientWorkerThread:7072] [System.NullReferenceException: Object reference not set to an instance of an object.
at VaultClientOperationsLib.ChangeSetItemNamespaceChange.CheckForRepositoryNamespaceIssues(TreeCache treeCache, Boolean undo)
at VaultClientOperationsLib.ChangeSetItem_Move.CheckForRepositoryNamespaceIssues(TreeCache treeCache, Boolean undo)
at VaultClientOperationsLib.TreeCache.UpdateRepositoryWithPendingChange(ChangeSetItemPerformPending csiPP, Boolean updateWorkingFolder, Boolean undo, Boolean isRefresh, ChangeSetItemColl csisToRemove)
at VaultClientOperationsLib.TreeCache.UpdateRepositoryWithPendingChanges(ChangeSetItemColl items, Boolean updateWorkingFolder, Boolean undo, Boolean isRefresh)
at VaultClientOperationsLib.TreeCache.UpdateRepositoryWithInternalChangeSet(ChangeSetItemColl itemsToIgnore, Boolean isRefresh)
at VaultClientOperationsLib.TreeCache.Load()
at VaultClientOperationsLib.ClientInstance.SetActiveRepositoryID(Int32 id, String username, String uniqueRepositoryID, Boolean doRefresh, Boolean updateKnownChangesAll)
at VaultClientPresentationLib.GUIClientInstance.ChooseRepository(Boolean forceDialogShow, String inProfile)
at VaultClientPresentationLib.GUIClientThread.ProcessCommand(GUIClientThreadCommand command, GUIClientThreadCommandResult& outputResult)]Object reference not set to an instance of an object.
at VaultClientOperationsLib.ChangeSetItemNamespaceChange.CheckForRepositoryNamespaceIssues(TreeCache treeCache, Boolean undo)
at VaultClientOperationsLib.ChangeSetItem_Move.CheckForRepositoryNamespaceIssues(TreeCache treeCache, Boolean undo)
at VaultClientOperationsLib.TreeCache.UpdateRepositoryWithPendingChange(ChangeSetItemPerformPending csiPP, Boolean updateWorkingFolder, Boolean undo, Boolean isRefresh, ChangeSetItemColl csisToRemove)
at VaultClientOperationsLib.TreeCache.UpdateRepositoryWithPendingChanges(ChangeSetItemColl items, Boolean updateWorkingFolder, Boolean undo, Boolean isRefresh)
at VaultClientOperationsLib.TreeCache.UpdateRepositoryWithInternalChangeSet(ChangeSetItemColl itemsToIgnore, Boolean isRefresh)
at VaultClientOperationsLib.TreeCache.Load()
at VaultClientOperationsLib.ClientInstance.SetActiveRepositoryID(Int32 id, String username, String uniqueRepositoryID, Boolean doRefresh, Boolean updateKnownChangesAll)
at VaultClientPresentationLib.GUIClientInstance.ChooseRepository(Boolean forceDialogShow, String inProfile)
at VaultClientPresentationLib.GUIClientThread.ProcessCommand(GUIClientThreadCommand command, GUIClientThreadCommandResult& outputResult)

Stack Trace:
at VaultClientPresentationLib.GUIClientInstance.ShowCommandException(Exception e, IWin32Window dialogOwner)
at VaultClientPresentationLib.GUIClientThread.ProcessCommand(GUIClientThreadCommand command, GUIClientThreadCommandResult& outputResult)
at VaultClientPresentationLib.GUIClientThread.Start()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Here are the relevant contents of the sgvault.log on the server:
----7/30/2008 11:01:43 AM --()-- An error occurred during the deletion of ypxb5u45fck0qybaxz2ah3zb. Please check that the session was removed from the database.\tObject reference not set to an instance of an object.
----7/30/2008 11:01:43 AM --()-- An error occurred deleting the session, ypxb5u45fck0qybaxz2ah3zb. Trying again - attempt 10.
----7/30/2008 11:01:44 AM --()-- An error occurred during the deletion of session, ypxb5u45fck0qybaxz2ah3zb. Please check that the session was removed from sgvault.dbo.tblsession in the database. Error: FailDBDelete

icnocop
Posts: 46
Joined: Wed Aug 18, 2004 12:41 pm

Re: System.NullReferenceException: Object reference not set to a

Post by icnocop » Wed Jul 30, 2008 7:09 pm

I was able to retrieve the repository structure successfully again but only after deleting the cache from the file system.
(Ex. C:\Documents and Settings\Username\Application Data\SourceGear\Vault_1\Client\12345678-1234-1234-1234-123456789012\Username)

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: System.NullReferenceException: Object reference not set to a

Post by lbauer » Thu Aug 07, 2008 8:00 am

Deleting the cache can fix a lot of problems -- but if you find yourself doing this frequently, let us know.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply