You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by Bhupendra Singh <Bh...@sdgc.com> on 2014/06/24 14:53:56 UTC

How to set proxy

Hi ,

I am trying to access hp cloud object storage using jcloud api . I am writing following code to get context

BlobStoreContext context = ContextBuilder.newBuilder("hpcloud-objectstorage").credentials(identity, credential).buildView(BlobStoreContext.class);

But server where I am running this code has network restriction that's why It cannot access hp cloud server and It is throwing unknown host exception.

ERROR com.ge.cloudstore.service.transfer.provider.hp.HPStorageProvider:71 :1: Error while account in HP ..org.jclouds.http.HttpResponseException: region-a.geo-1.identity.hpcloudsvc.com connecting to POST https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens HTTP/1.1<https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens%20HTTP/1.1>

I want to set a proxy setting so that when my application try to connect with hp object storage server It uses those proxy setting .
Can I know how I can do this with code with jcloud api  ?

Thanks & Regards,
Bhupendra Pratap Singh
Sr. Software Engineer
Mobile: +91 9971279010


{SDG-Confidential}

________________________________
SDG Software India Pvt. Ltd.
A-10/11, Sector 2, NOIDA 201301, (UP), India
Website: www.sdgc.com<http:www.sdgc.com>

"Please Note: The e-mail content is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you have erroneously received this message, please delete it immediately and notify the sender. Before opening any attachments please check them for viruses and defects."

Re: How to set proxy

Posted by Jeremy Daggett <je...@RACKSPACE.COM>.
Hi Bhupendra,

There is not enough information here to move forward with analysis. Can you please post the entire stack trace to paste [1] with the link so we can get more information to assist you? Thanks!

/jd

[1] http://pastie.org/

From: Bhupendra Singh <Bh...@sdgc.com>>
Date: Tuesday, June 24, 2014 at 7:20 AM
To: "user@jclouds.apache.org<ma...@jclouds.apache.org>" <us...@jclouds.apache.org>>, Jeremy <je...@rackspace.com>>
Subject: RE: How to set proxy

Hi ,

Can any one tell which port it is using to hp object storage server :

2014-06-24 10:12:38,675 ERROR com.ge.cloudstore.service.transfer.provider.hp.HPStorageProvider:407 :1: Error while getting HP Connection
org.jclouds.http.HttpResponseException: region-a.geo-1.objects.hpcloudsvc.com connecting to HEAD https://region-a.geo-1.objects.hpcloudsvc.com/v1/10745149279234/amp HTTP/1.1<https://region-a.geo-1.objects.hpcloudsvc.com/v1/10745149279234/amp%20HTTP/1.1>

443 or 35357

How to know which port it is using to connect : region-a.geo-1.objects.hpcloudsvc.com .

-Bhupendra


{SDG-Confidential}
From: Jeremy Daggett [mailto:jeremy.daggett@RACKSPACE.COM]
Sent: Tuesday, June 24, 2014 7:29 PM
To: user@jclouds.apache.org<ma...@jclouds.apache.org>
Subject: Re: How to set proxy

Hi Bhupendra,

All you need to do is set the proxy host and port for the JVM as described here:
http://stackoverflow.com/questions/120797/how-do-i-set-the-proxy-to-be-used-by-the-jvm

Hope that helps!

/jd


From: Bhupendra Singh <Bh...@sdgc.com>>
Reply-To: "user@jclouds.apache.org<ma...@jclouds.apache.org>" <us...@jclouds.apache.org>>
Date: Tuesday, June 24, 2014 at 5:53 AM
To: "user@jclouds.apache.org<ma...@jclouds.apache.org>" <us...@jclouds.apache.org>>
Subject: How to set proxy

Hi ,

I am trying to access hp cloud object storage using jcloud api . I am writing following code to get context

BlobStoreContext context = ContextBuilder.newBuilder("hpcloud-objectstorage").credentials(identity, credential).buildView(BlobStoreContext.class);

But server where I am running this code has network restriction that’s why It cannot access hp cloud server and It is throwing unknown host exception.

ERROR com.ge.cloudstore.service.transfer.provider.hp.HPStorageProvider:71 :1: Error while account in HP ..org.jclouds.http.HttpResponseException: region-a.geo-1.identity.hpcloudsvc.com connecting to POST https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens HTTP/1.1<https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens%20HTTP/1.1>

I want to set a proxy setting so that when my application try to connect with hp object storage server It uses those proxy setting .
Can I know how I can do this with code with jcloud api  ?

Thanks & Regards,
Bhupendra Pratap Singh
Sr. Software Engineer
Mobile: +91 9971279010


{SDG-Confidential}

________________________________
SDG Software India Pvt. Ltd.
A-10/11, Sector 2, NOIDA 201301, (UP), India
Website: www.sdgc.com<http://www.sdgc.com>

"Please Note: The e-mail content is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you have erroneously received this message, please delete it immediately and notify the sender. Before opening any attachments please check them for viruses and defects."

RE: How to set proxy

Posted by Bhupendra Singh <Bh...@sdgc.com>.
Hi ,

Can any one tell which port it is using to hp object storage server :

2014-06-24 10:12:38,675 ERROR com.ge.cloudstore.service.transfer.provider.hp.HPStorageProvider:407 :1: Error while getting HP Connection
org.jclouds.http.HttpResponseException: region-a.geo-1.objects.hpcloudsvc.com connecting to HEAD https://region-a.geo-1.objects.hpcloudsvc.com/v1/10745149279234/amp HTTP/1.1<https://region-a.geo-1.objects.hpcloudsvc.com/v1/10745149279234/amp%20HTTP/1.1>

443 or 35357

How to know which port it is using to connect : region-a.geo-1.objects.hpcloudsvc.com .

-Bhupendra


{SDG-Confidential}
From: Jeremy Daggett [mailto:jeremy.daggett@RACKSPACE.COM]
Sent: Tuesday, June 24, 2014 7:29 PM
To: user@jclouds.apache.org
Subject: Re: How to set proxy

Hi Bhupendra,

All you need to do is set the proxy host and port for the JVM as described here:
http://stackoverflow.com/questions/120797/how-do-i-set-the-proxy-to-be-used-by-the-jvm

Hope that helps!

/jd


From: Bhupendra Singh <Bh...@sdgc.com>>
Reply-To: "user@jclouds.apache.org<ma...@jclouds.apache.org>" <us...@jclouds.apache.org>>
Date: Tuesday, June 24, 2014 at 5:53 AM
To: "user@jclouds.apache.org<ma...@jclouds.apache.org>" <us...@jclouds.apache.org>>
Subject: How to set proxy

Hi ,

I am trying to access hp cloud object storage using jcloud api . I am writing following code to get context

BlobStoreContext context = ContextBuilder.newBuilder("hpcloud-objectstorage").credentials(identity, credential).buildView(BlobStoreContext.class);

But server where I am running this code has network restriction that's why It cannot access hp cloud server and It is throwing unknown host exception.

ERROR com.ge.cloudstore.service.transfer.provider.hp.HPStorageProvider:71 :1: Error while account in HP ..org.jclouds.http.HttpResponseException: region-a.geo-1.identity.hpcloudsvc.com connecting to POST https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens HTTP/1.1<https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens%20HTTP/1.1>

I want to set a proxy setting so that when my application try to connect with hp object storage server It uses those proxy setting .
Can I know how I can do this with code with jcloud api  ?

Thanks & Regards,
Bhupendra Pratap Singh
Sr. Software Engineer
Mobile: +91 9971279010


{SDG-Confidential}

________________________________
SDG Software India Pvt. Ltd.
A-10/11, Sector 2, NOIDA 201301, (UP), India
Website: www.sdgc.com<http://www.sdgc.com>

"Please Note: The e-mail content is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you have erroneously received this message, please delete it immediately and notify the sender. Before opening any attachments please check them for viruses and defects."

Re: How to set proxy

Posted by Everett Toews <ev...@RACKSPACE.COM>.
The way to set the HTTP(S) proxy in jclouds is detailed here:

http://jclouds.apache.org/reference/logging/#proxy

Everett


On Jun 24, 2014, at 8:58 AM, Jeremy Daggett <je...@RACKSPACE.COM>> wrote:

Hi Bhupendra,

All you need to do is set the proxy host and port for the JVM as described here:
http://stackoverflow.com/questions/120797/how-do-i-set-the-proxy-to-be-used-by-the-jvm

Hope that helps!

/jd


From: Bhupendra Singh <Bh...@sdgc.com>>
Reply-To: "user@jclouds.apache.org<ma...@jclouds.apache.org>" <us...@jclouds.apache.org>>
Date: Tuesday, June 24, 2014 at 5:53 AM
To: "user@jclouds.apache.org<ma...@jclouds.apache.org>" <us...@jclouds.apache.org>>
Subject: How to set proxy

Hi ,

I am trying to access hp cloud object storage using jcloud api . I am writing following code to get context

BlobStoreContext context = ContextBuilder.newBuilder("hpcloud-objectstorage").credentials(identity, credential).buildView(BlobStoreContext.class);

But server where I am running this code has network restriction that’s why It cannot access hp cloud server and It is throwing unknown host exception.

ERROR com.ge.cloudstore.service.transfer.provider.hp.HPStorageProvider:71 :1: Error while account in HP ..org.jclouds.http.HttpResponseException: region-a.geo-1.identity.hpcloudsvc.com<http://1.identity.hpcloudsvc.com> connecting to POST https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens HTTP/1.1<https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens%20HTTP/1.1>

I want to set a proxy setting so that when my application try to connect with hp object storage server It uses those proxy setting .
Can I know how I can do this with code with jcloud api  ?

Thanks & Regards,
Bhupendra Pratap Singh
Sr. Software Engineer
Mobile: +91 9971279010


{SDG-Confidential}

________________________________
SDG Software India Pvt. Ltd.
A-10/11, Sector 2, NOIDA 201301, (UP), India
Website: www.sdgc.com<http://www.sdgc.com/>


"Please Note: The e-mail content is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you have erroneously received this message, please delete it immediately and notify the sender. Before opening any attachments please check them for viruses and defects."


Re: How to set proxy

Posted by Jeremy Daggett <je...@RACKSPACE.COM>.
Hi Bhupendra,

All you need to do is set the proxy host and port for the JVM as described here:
http://stackoverflow.com/questions/120797/how-do-i-set-the-proxy-to-be-used-by-the-jvm

Hope that helps!

/jd


From: Bhupendra Singh <Bh...@sdgc.com>>
Reply-To: "user@jclouds.apache.org<ma...@jclouds.apache.org>" <us...@jclouds.apache.org>>
Date: Tuesday, June 24, 2014 at 5:53 AM
To: "user@jclouds.apache.org<ma...@jclouds.apache.org>" <us...@jclouds.apache.org>>
Subject: How to set proxy

Hi ,

I am trying to access hp cloud object storage using jcloud api . I am writing following code to get context

BlobStoreContext context = ContextBuilder.newBuilder("hpcloud-objectstorage").credentials(identity, credential).buildView(BlobStoreContext.class);

But server where I am running this code has network restriction that’s why It cannot access hp cloud server and It is throwing unknown host exception.

ERROR com.ge.cloudstore.service.transfer.provider.hp.HPStorageProvider:71 :1: Error while account in HP ..org.jclouds.http.HttpResponseException: region-a.geo-1.identity.hpcloudsvc.com connecting to POST https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens HTTP/1.1<https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens%20HTTP/1.1>

I want to set a proxy setting so that when my application try to connect with hp object storage server It uses those proxy setting .
Can I know how I can do this with code with jcloud api  ?

Thanks & Regards,
Bhupendra Pratap Singh
Sr. Software Engineer
Mobile: +91 9971279010


{SDG-Confidential}

________________________________
SDG Software India Pvt. Ltd.
A-10/11, Sector 2, NOIDA 201301, (UP), India
Website: www.sdgc.com<http:www.sdgc.com>

"Please Note: The e-mail content is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you have erroneously received this message, please delete it immediately and notify the sender. Before opening any attachments please check them for viruses and defects."