Setting the proxyaddress when using the Java CLC

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

Moderator: SourceGear

Post Reply
djm6809
Posts: 1
Joined: Tue Jun 09, 2009 7:47 pm

Setting the proxyaddress when using the Java CLC

Post by djm6809 » Tue Jun 09, 2009 8:12 pm

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.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Setting the proxyaddress when using the Java CLC

Post by lbauer » Wed Jun 10, 2009 7:40 am

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.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply