Using the vaultJavaCLC client version 4.1.0.16216 on Linux.
How can I set the Java client to use a proxy?
I think it this will solve my "No server found" problem.
The command I run is:
./vault -user my.username -password my.password -host ourhost listprojects
And I get this error:
<exception>System.Exception: The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Unable to connect to http://dps1/VaultService. No server was found at the specified URL. Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client. Web Exception: ---> System.Exception: Unable to connect to http://dps1/VaultService. No server was found at the specified URL. Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client. Web Exception:
at clr.System.ExceptionStaticWrapper.ExceptionCtor(ExceptionStaticWrapper.java:43)
at VaultClientNetLib.VaultConnection.Login(Unknown Source)
at VaultClientOperationsLib.ClientInstance.Login(Unknown Source)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2292)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2398)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Unknown Source)
at VaultCmdLineClient.VaultCmdLineClient.$Main$(Unknown Source)
at VaultCmdLineClient.VaultCmdLineClient.main(Unknown Source)
at clr.System.ExceptionStaticWrapper.ExceptionCtor(ExceptionStaticWrapper.java:43)
at VaultClientNetLib.VaultConnection.Login(Unknown Source)
at VaultClientOperationsLib.ClientInstance.Login(Unknown Source)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2292)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2398)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Unknown Source)
at VaultCmdLineClient.VaultCmdLineClient.$Main$(Unknown Source)
at VaultCmdLineClient.VaultCmdLineClient.main(Unknown Source)
--- End of inner exception stack trace ---
at clr.System.ExceptionStaticWrapper.ExceptionCtor(ExceptionStaticWrapper.java:48)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2303)
at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:2398)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Unknown Source)
at VaultCmdLineClient.VaultCmdLineClient.$Main$(Unknown Source)
at VaultCmdLineClient.VaultCmdLineClient.main(Unknown Source)
</exception>
Thanks, David.
Setting the proxyaddress when using the Java CLC
Moderator: SourceGear
Re: Setting the proxyaddress when using the Java CLC
There are additional parameters you can use to specify a proxy when connecting to the Vault server via the CLC (Java or regular CLC).
-proxyserver proxyserver
Server name or url for the proxy to use when connecting.
-proxyport proxyport
Port to use to connect to the proxy.
-proxyuser proxyuser
Username for proxy authentication.
-proxypassword proxypassword
Password for proxy authentication.
-proxydomain proxydomain
Domain for proxy authentication.
You'll see these options in the CLC help. From the command line in the Java CLC directory, type "Vault help listprojects." You can also use these proxy options for Get, Commit, etc.
-proxyserver proxyserver
Server name or url for the proxy to use when connecting.
-proxyport proxyport
Port to use to connect to the proxy.
-proxyuser proxyuser
Username for proxy authentication.
-proxypassword proxypassword
Password for proxy authentication.
-proxydomain proxydomain
Domain for proxy authentication.
You'll see these options in the CLC help. From the command line in the Java CLC directory, type "Vault help listprojects." You can also use these proxy options for Get, Commit, etc.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager