Start a Conversation

Unsolved

This post is more than 5 years old

A

5 Practitioner

 • 

274.2K Posts

1047

February 3rd, 2015 11:00

AtmosException{errorCode=0, httpCode=500}

Trying to create a subtenant. Getting an AtmosException with errorCode=0. Any idea why?

Sample Code :

AtmosConfig config = null;
  try {
   config = new AtmosConfig("", "", new URI(""));  //removed the credential here for safety.

    AtmosApi atmos = new AtmosApiClient(config); 
    //ServiceInformation si = atmos.getServiceInformation(); 
    CreateSubtenantRequest req = new CreateSubtenantRequest(); 
    String subtenantId = atmos.createSubtenant(req);
    System.out.println("subtenantId :: "+subtenantId);
   
    //String stringContent = "Hello World!"; 
    //ObjectId oid1 = atmos.createObject( stringContent, "text/plain" ); 

  } catch (URISyntaxException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  } 

Exception :

Exception in thread "main" AtmosException{errorCode=0, httpCode=500} com.emc.atmos.AtmosException: Internal Server Error

      at com.emc.atmos.api.jersey.ErrorFilter.handle(ErrorFilter.java:44)

      at com.emc.atmos.api.jersey.RetryFilter.handle(RetryFilter.java:51)

      at com.emc.atmos.api.jersey.AuthFilter.handle(AuthFilter.java:41)

      at com.sun.jersey.api.client.Client.handle(Client.java:652)

      at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)

      at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)

      at com.sun.jersey.api.client.WebResource$Builder.put(WebResource.java:529)

      at com.emc.atmos.api.jersey.AtmosApiClient.createSubtenant(AtmosApiClient.java:712)

      at com.emc.oil.AtmosCreateSubtenant.main(AtmosCreateSubtenant.java:21)

281 Posts

February 3rd, 2015 11:00

Harish,

The createSubtenant method in the AtmosApiClient is only applicable to ViPR/ECS.  To create a subtenant in real Atmos, please use the GUI or the System Management API.

281 Posts

February 4th, 2015 14:00

Yes.  Please contact me internally and we can have a look at your exact code and see if your system is healthy..

5 Practitioner

 • 

274.2K Posts

February 4th, 2015 14:00

Actually we are using VIPR/ECS. It should work then?

No Events found!

Top