Unsolved

This post is more than 5 years old

3671

July 31st, 2009 14:00

Uploading a Document in Atoms

Hi Everyone,

This is the first time I am using Atoms. I tried to upload a Document with the following snippet,

EsuApi cesu= new EsuRestApi( "accesspoint.emccis.com", 80, "Token Id", "Shared Secret" );                     //Upload Document           UploadHelper helper = new UploadHelper( cesu, null );           ObjectId id = helper.createObject(new File("C:\\Test\\Test.pdf"), null, null);           System.out.println("New Object ID:"+id.toString());

But i am getting,

Exception in thread "main" com.emc.esu.api.EsuException: Error connecting to server

at com.emc.esu.api.rest.EsuRestApi.createObjectFromSegment(EsuRestApi.java:253)

at com.emc.esu.api.UploadHelper.createObject(UploadHelper.java:137)

at com.emc.esu.api.UploadHelper.createObject(UploadHelper.java:106)

at com.cts.atoms.sample.UpLoadDocument.main(UpLoadDocument.java:22)

Caused by: java.net.ConnectException: Connection refused: connect

...

I am entering the Correct Tocket Id and Shared Secret. Kindly let me know, If i am doing any thing wrong.

Thanks & Regards,

Prabhu

222 Posts

August 3rd, 2009 07:00

Prabhu,

It appears that you are unable to connect to the host for some reason.  It could be a few different issues.

Something in your local environment appears to be preventing it.  Either the Windows firewall, a proxy, or something similar could be causing the issue.

You could try disabling the local Windows firewall and/or find out if you have a proxy.


Raj

August 3rd, 2009 08:00

Hi Raj,

Thanks! For the Reply. I will check my Firewall settings in my Machine.

Regards,

Prabhu

March 15th, 2010 15:00

Hi bala/prabhu

I am facing the same issue and unable to connect to the server.

would be helpful, if you could post the solution to this problem.  I have checked the window firewall settings and

proxy settings, but the problem is something else which i was unable to trace it.

would appreciate if you could post, how you have resolved this.

Thank you

Kamal

No Events found!

Top