
UNSOLVED
Atmos + timezone problem?
Hello,
In the course of evaluating Atmos, I've tried to write a small java uploader, "translating" from the .NET version of the quick start guide. This is what I've come up with:
public class HelloAtmosWorld {
public static void main(String[] args) {
Logger logger = Logger.getLogger(HelloAtmosWorld.class);
BasicConfigurator.configure();
logger.setLevel(Level.ALL);
logger.info("Initializing connection...");
EsuApi esu= new EsuRestApi( "accesspoint.emccis.com", 80, "my token", "my shared" );UploadHelper helper = new UploadHelper( esu, null );
logger.info("Done!");
logger.info("Initializing upload...");
ObjectId id = helper.createObject( new File( "/home/readme.txt" ), null, null );
logger.info("Done!");
logger.info("Object contents:");
System.out.println( esu.readObject(id, null, null));
logger.info("Done!");
}}
where "my token" = subtenantid/tokenid (tried all combinations - only subtenant/only token) and "my secret"=shared secret as per the confirmation e-mail.
Unfortunately, I end up with something like this:
0 [main] INFO gr.ntua.cslab.atmos.test.HelloAtmosWorld - Initializing connection...
51 [main] DEBUG com.emc.esu.api.rest.EsuRestApi - TZ: sun.util.calendar.ZoneInfo[id="GMT",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null]
57 [main] DEBUG com.emc.esu.api.rest.EsuRestApi - Date: Τρι, 26 Μαϊ 2009 12:31:09 GMT
59 [main] DEBUG com.emc.esu.api.rest.EsuRestApi - Hashing:
GET
Τρι, 26 Μαϊ 2009 12:31:09 GMT
/rest/namespacenull?metadata/system
x-emc-uid:c936ea05fce94111914de4d593f2fcc5/NTUA0F21D9CF00B06914
338 [main] DEBUG com.emc.esu.api.rest.EsuRestApi - Hash: hOlmZW2PlhCpaw3UFL+j0sLGW5Q=
813 [main] DEBUG com.emc.esu.api.rest.EsuRestApi - Error response:
1031
The request timestamp was outside the valid time window. 867 [main] DEBUG com.emc.esu.api.rest.EsuRestApi - Error: 1031 message: The request timestamp was outside the valid time window.
So the question is am I doing something wrong during the initialization fase? Should I try to mess with the calendar info, the metadata, or is it simply an access denied error?
Thanks in advance!
Responses (0)
Solutions (0)
