IsCheckedOutByMeOnThisMachine NullReferenceException

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

Moderator: SourceGear

Post Reply
BSayatovic
Posts: 47
Joined: Thu Jun 25, 2009 12:02 pm

IsCheckedOutByMeOnThisMachine NullReferenceException

Post by BSayatovic » Fri Jan 30, 2015 2:04 pm

I'm trying to check in some files and its not working. When I run it from the command line, it says success:

Code: Select all

<vault>
  <changeset />
  <result>
    <success>True</success>
  </result>
</vault>
But it never actually checks anything in. When I looked in the server log, I saw no error. But when I looked in the client log, I saw errors like these. They appear to be very closely correlated to my check-in attempts:

Code: Select all

1/30/2015 2:10:39 PM <generic>: [System.NullReferenceException: Object reference not set to an instance of an object.
   at VaultClientOperationsLib.ClientInstance.IsCheckedOutByMeOnThisMachine(VaultClientFile file, VaultClientCheckOutItem& checkOutItem, VaultClientCheckOutUser& checkOutUser)
   at VaultClientOperationsLib.WorkingFolder.GetStatusForSingleFile(VaultClientFile file, Boolean& isModified, Boolean& exists, String& strAbsoluteFilename)
   at VaultClientOperationsLib.WorkingFolder.GetStatus(VaultClientFile file, Boolean& isModified, Boolean& exists, String& strAbsoluteFilename)
   at VaultClientOperationsLib.WorkingFolder.GetStatus(VaultClientFile file)
   at VaultClientOperationsLib.ClientInstance.MakeChangeSetItemForKnownChange(VaultClientFile file, WorkingFolder wf, Boolean ignoreCheckedOutFiles)
   at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_Folder(VaultClientFolder folder, Hashtable alreadySearchedFolderPaths, Boolean recursive)
   at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_All(Boolean notifyChangeSetItemsChanged)] Object reference not set to an instance of an object.
   at VaultClientOperationsLib.ClientInstance.IsCheckedOutByMeOnThisMachine(VaultClientFile file, VaultClientCheckOutItem& checkOutItem, VaultClientCheckOutUser& checkOutUser)
   at VaultClientOperationsLib.WorkingFolder.GetStatusForSingleFile(VaultClientFile file, Boolean& isModified, Boolean& exists, String& strAbsoluteFilename)
   at VaultClientOperationsLib.WorkingFolder.GetStatus(VaultClientFile file, Boolean& isModified, Boolean& exists, String& strAbsoluteFilename)
   at VaultClientOperationsLib.WorkingFolder.GetStatus(VaultClientFile file)
   at VaultClientOperationsLib.ClientInstance.MakeChangeSetItemForKnownChange(VaultClientFile file, WorkingFolder wf, Boolean ignoreCheckedOutFiles)
   at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_Folder(VaultClientFolder folder, Hashtable alreadySearchedFolderPaths, Boolean recursive)
   at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_All(Boolean notifyChangeSetItemsChanged)

Stack Trace:
   at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_All(Boolean notifyChangeSetItemsChanged)
   at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_All(Object notifyChangeSetItemsChanged)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

1/30/2015 2:16:58 PM <generic>: [System.NullReferenceException: Object reference not set to an instance of an object.
   at VaultClientOperationsLib.ClientInstance.IsCheckedOutByMeOnThisMachine(VaultClientFile file, VaultClientCheckOutItem& checkOutItem, VaultClientCheckOutUser& checkOutUser)
   at VaultClientOperationsLib.ClientInstance.MakeChangeSetItemForKnownChange(VaultClientFile file, WorkingFolder wf, Boolean ignoreCheckedOutFiles)
   at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_Folder(VaultClientFolder folder, Hashtable alreadySearchedFolderPaths, Boolean recursive)
   at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_All(Boolean notifyChangeSetItemsChanged)] Object reference not set to an instance of an object.
   at VaultClientOperationsLib.ClientInstance.IsCheckedOutByMeOnThisMachine(VaultClientFile file, VaultClientCheckOutItem& checkOutItem, VaultClientCheckOutUser& checkOutUser)
   at VaultClientOperationsLib.ClientInstance.MakeChangeSetItemForKnownChange(VaultClientFile file, WorkingFolder wf, Boolean ignoreCheckedOutFiles)
   at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_Folder(VaultClientFolder folder, Hashtable alreadySearchedFolderPaths, Boolean recursive)
   at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_All(Boolean notifyChangeSetItemsChanged)

Stack Trace:
   at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_All(Boolean notifyChangeSetItemsChanged)
   at VaultClientOperationsLib.ClientInstance.UpdateKnownChanges_All(Object notifyChangeSetItemsChanged)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
What can I do?

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

Re: IsCheckedOutByMeOnThisMachine NullReferenceException

Post by Beth » Wed Feb 04, 2015 4:49 pm

Try using the ListCheckOuts command to see if the item is checked out and ready for a check in:http://download-us.sourcegear.com/misc/ ... TCHECKOUTS.

Does the item show up there?
Beth Kieler
SourceGear Technical Support

Post Reply