Vault.exe exception
Moderator: SourceGear
Vault.exe exception
When trying to use the vault client to set working folder, the vault.exe crashes. I’m using VisualBuildProfessional to build my product, and attached is the command-line used and the return values:
---
"C:\Program Files\SourceGear\Vault Client\vault.exe" -host BUILDPC -user USERNAME -password PASSWORD -repository PRODUCT setworkingfolder $/Source -merge overwrite -unchanged undocheckout D:\Source
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at VaultClientNetLib.VaultConnection.Logout()
at VaultClientOperationsLib.ClientInstance.Logout()
at VaultCmdLineClient.VaultCmdLineClient.Logout(Boolean bForceLogout)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
Process completed with exit code -1073741819
---
Both server and client are using Vault v3.0.1. My build-script is running the SETWORKINGFOLDER successfully early in the script, but fails later in the script.
If I close the build-script, reopen it and manually try to execute the failing setworkingfolder - it will not crash.
Any ideas to overcome this problem?
---
"C:\Program Files\SourceGear\Vault Client\vault.exe" -host BUILDPC -user USERNAME -password PASSWORD -repository PRODUCT setworkingfolder $/Source -merge overwrite -unchanged undocheckout D:\Source
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at VaultClientNetLib.VaultConnection.Logout()
at VaultClientOperationsLib.ClientInstance.Logout()
at VaultCmdLineClient.VaultCmdLineClient.Logout(Boolean bForceLogout)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
Process completed with exit code -1073741819
---
Both server and client are using Vault v3.0.1. My build-script is running the SETWORKINGFOLDER successfully early in the script, but fails later in the script.
If I close the build-script, reopen it and manually try to execute the failing setworkingfolder - it will not crash.
Any ideas to overcome this problem?
- Attachments
-
- Screendump of error message
- error.jpg (19.42 KiB) Viewed 11332 times
Off the top of my head... if you remove from your command line, does that seem to help?
Code: Select all
-merge overwrite -unchanged undocheckout
Jeff Clausius
SourceGear
SourceGear
So the command look similar to the following -
vault.exe -host BUILDPC -user USERNAME -password PASSWORD -repository PRODUCT SETWORKINGFOLDER "$/Source" "D:\Source"
What about other commands, do they crash as well?
Something like :
vault.exe -host BUILDPC -user USERNAME -password PASSWORD -repository PRODUCT LISTWORKINGFOLDERS
vault.exe -host BUILDPC -user USERNAME -password PASSWORD -repository PRODUCT SETWORKINGFOLDER "$/Source" "D:\Source"
What about other commands, do they crash as well?
Something like :
vault.exe -host BUILDPC -user USERNAME -password PASSWORD -repository PRODUCT LISTWORKINGFOLDERS
Jeff Clausius
SourceGear
SourceGear
When running arguments directly from command-line, everything works fine. I’m using a build tool called VisualBuildProfessional from http://www.kinook.com that has a nice GUI to command-line arguments in Vault.
I was able to crash the Vault client using VisualBuildPro:
1) Set working folder in Vault
2) Run a SUBST command (Associates a path with a drive letter)
3) Run a “Set Current Dir” command in VisualBuildPro to the subst dir
4) Do a Check-in or SetWorkingFolder in Vault will crash the client.
If I skip step 3, the vault client will not crash. Also, when testing different options I sometimes get the following error message: The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. 1000 : FailNotValidLogin. I assume that Vault (3.0.1) and VisualBuildPro (5.6b) is not fully integrated. To bad actually, they are both nice tools.
I was able to crash the Vault client using VisualBuildPro:
1) Set working folder in Vault
2) Run a SUBST command (Associates a path with a drive letter)
3) Run a “Set Current Dir” command in VisualBuildPro to the subst dir
4) Do a Check-in or SetWorkingFolder in Vault will crash the client.
If I skip step 3, the vault client will not crash. Also, when testing different options I sometimes get the following error message: The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. 1000 : FailNotValidLogin. I assume that Vault (3.0.1) and VisualBuildPro (5.6b) is not fully integrated. To bad actually, they are both nice tools.
If you use absolute paths, you should be able to skip step 3 anyway. Does that work for you?
As for VisualBuild Professional, if they are merely forking out to the command line client (CLC), then that should work. However, I'm uncertain of what version of the CLC they support. Perhaps some arguments have changed in the version they support vs. 3.0.1?
As for VisualBuild Professional, if they are merely forking out to the command line client (CLC), then that should work. However, I'm uncertain of what version of the CLC they support. Perhaps some arguments have changed in the version they support vs. 3.0.1?
Jeff Clausius
SourceGear
SourceGear
I am using absolute path for all Vault commands. If I skip step 3, the Vault client will crash.
I posted the same question to the forum on VisualBuildProfessional and here is the reply from their administrator:
I posted the same question to the forum on VisualBuildProfessional and here is the reply from their administrator:
I was unable to reproduce either of these behaviors using VBP 5.6b and Vault 3.0.1 client (against the sourcegear test server). I was able to reproduce a crash in the Vault client if the current directory wasn't set back to a valid drive+path after deleting the subst drive (this sequence has a consistent although slightly different behavior from a batch file: the shell complains about the directory being invalid and won't execute the vault command).