Exception checking out through command line client

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

Moderator: SourceGear

Post Reply
JPrime
Posts: 18
Joined: Tue Dec 21, 2004 10:03 pm

Exception checking out through command line client

Post by JPrime » Thu Jun 23, 2005 11:23 am

I'm writing some code to check out a file in vault using the command line client and I get this exception:

Code: Select all

---------------------------

---------------------------
Exception updating hidden and working file: Object reference not set to an instance of an object.

<vault>

<!--  Checked out: $/Path/To/MyFile.cs  -->

<!--  Local file update for $/Path/To/MyFile.cs failed: System.NullReferenceException: Object reference not set to an instance of an object.

   at VaultClientOperationsLib.UpdateThread.ProcessCommand(UpdateThreadCommand command, UpdateThreadCommandResult& outputResult)  -->

<error>

Exception of type VaultClientOperationsLib.GetLatestVersionFailedException was thrown.

</error>

<exception>

VaultClientOperationsLib.GetLatestVersionFailedException: Exception of type VaultClientOperationsLib.GetLatestVersionFailedException was thrown.

   at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, String ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String currentPathToLabelItem, Int64 labelID, Boolean isRetry)

   at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, String ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String currentPathToLabelItem, Int64 labelID)

   at VaultClientOperationsLib.ClientInstance.Get(VaultClientFile[] files, Boolean forceLatest, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, OverwritePrompt PromptData)

   at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandCheckout(ArrayList strItemArray)

   at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)

   at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)

</exception>

<result success="no" />

</vault>


---------------------------
OK   
---------------------------
Any idea why this might be happening? As a side note, the file is successfully checked out, but it's hard to check for a successful checkout when vault tells me that an exception was thrown :)

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Thu Jun 23, 2005 12:16 pm

Does this fail in the GUI client as well? We've been seeing this error creep up recently. I'd like to know for certain what's causing this. Could you email me using the button below this post with your phone number?

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Thu Jun 23, 2005 1:45 pm

JPrime was using a 3.0.1 command line client without a working folder set. Since 3.0.6, checkout and get will throw a more appropriate error when no working folder is set.

JPrime
Posts: 18
Joined: Tue Dec 21, 2004 10:03 pm

Post by JPrime » Thu Jun 23, 2005 2:10 pm

Silly me. ;)

Thanks for the help, Jeremy :)

Post Reply