Exception from Command Line Client

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

Moderator: SourceGear

Post Reply
Guest

Exception from Command Line Client

Post by Guest » Mon Sep 20, 2004 3:58 am

I get the exception running the following command:

vault.exe checkout -user "Admin" -password "******" -host "localhost" -repository "Default Repository" -exclusive "$/BART01/AuXmlTvGrabber/version2/build.properties"

Interestingly, I only get this error if I am an administrator, as a normal user I don't get the error. Any ideas?

<vault>
<error>
Object reference not set to an instance of an object.
</error>
<exception>
System.NullReferenceException: Object reference not set to an instance of an obj
ect.
at VaultClientOperationsLib.WorkingFolder.GetHashedPathName(String path)
at VaultClientOperationsLib.WorkingFolder.HasWorkingFolderData(String diskFol
derPath, Boolean lookInWorkingFolder, TreeCache treeCache)
at VaultClientOperationsLib.ClientInstance.CreateGetFileRequests(VaultClientF
ile[] files, Boolean forceLatest, Boolean forceDisplayVersion, Boolean dontCheck
WorkingFolders, MakeWritableType makeWritable, Boolean isLabelGet, String labelS
ubItemPath, Boolean isLabelGetForSingleFile)
at VaultClientOperationsLib.ClientInstance.Get(VaultClientFile[] files, Boole
an forceLatest, MakeWritableType makeWritable, SetFileTimeType setFileTime, Merg
eType merge, OverwritePrompt PromptData)
at VaultClientOperationsLib.ClientInstance.Get(VaultClientFile file, Boolean
forceLatest, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeTy
pe merge, OverwritePrompt PromptData)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandCheckout(ArrayList str
ItemArray)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
</exception>
<result success="no" />
</vault>

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Mon Sep 20, 2004 7:15 am

If a different user on the same machine can do the command succesfully, then there might be something in the user cache files that is not right.

One way to fix this would be to delete the cache files (located in %APPDATA%\SourceGear\Vault_1\Client). This will cause the Admin user to lose all their working folder associations and baseline files (and cause all files to go to status Unknown), but will hopefully address the problem by recreating all the cache data.

Guest

Post by Guest » Wed Sep 22, 2004 7:46 pm

I still get the same error after doing this...

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Thu Sep 23, 2004 7:17 am

Login to the GUI client and do the same operation, and see if you get the same error.

Guest

Post by Guest » Thu Sep 23, 2004 11:04 pm

When I logged in to the GUI the file was marked as checked out to admin but when I right-clicked it I got a Check Out option not an Undo Check Out option. However, the file was listed in the Pending Change Set. When I right-clicked it in the pending change set and chose Undo Check Out I got the "Object not set to an instance" error so I tried choosing the Check Out option from the file list. This worked, I was then able to check the file back in and everything seems to be working OK.

It looks as if something got out of sync.

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Fri Sep 24, 2004 7:13 am

Thanks for the update.

Can you do me a favor and send me the output of Help->Technical Support from the GUI client on that machine? We've been trying to track down an issue with checkout lists but have not been able to reproduce it in-house. We want to correlate the configuations of people who have experienced it.

Guest

Post by Guest » Mon Sep 27, 2004 3:57 am

Client Information
Vault Client Version: 2.0.6.2219
Operating System: Microsoft Windows XP Professional
Service Pack: 2.0
OS Version: 5.1.2600
Total Physical Memory: 1022.79 MB
Time Zone: (GMT+10:00) Brisbane

Server Information
Vault Server Version: 2.0.6.2219
Operating System: Microsoft Windows XP Professional
Service Pack: 2.0
OS Version: 5.1.2600
Timezone: (GMT+10:00) Brisbane
SQL Version: Microsoft SQL Server 2000 - 8.00.818 (Intel X86)
May 31 2003 16:08:15
Copyright (c) 1988-2003 Microsoft Corporation
Desktop Engine on Windows NT 5.1 (Build 2600: Service Pack 2)

License Information

Post Reply