I added your image and tested this with no issues.  Can you confirm that you 
are still having this issue?  I also checked the data returned by the api and 
it looks just like any other image so I am not sure what could have happened.

You can look at the wire dump like this, just to make sure you get the same 
descriptor that I am seeing:
gcutil --project myproject listimages --dump_request_response

em2 top, compared to debian 7 wheezy below:

{
  "kind": "compute#image",
  "selfLink": 
"https://www.googleapis.com/compute/v1/projects/oemesosphere/global/images/em2";,
  "id": "12258396119106299516",
  "creationTimestamp": "2014-08-01T11:47:43.692-07:00",
  "name": "em2",
  "description": "",
  "sourceType": "RAW",
  "rawDisk": {
   "source": "",
   "containerType": "TAR"
  },
  "status": "READY",
  "archiveSizeBytes": "2105823816",
  "diskSizeGb": "10"
}

{
  "kind": "compute#image",
  "selfLink": 
"https://www.googleapis.com/compute/v1/projects/debian-cloud/global/images/debian-7-wheezy-v20140718";,
  "id": "11535450626613878896",
  "creationTimestamp": "2014-07-24T09:06:16.694-07:00",
  "name": "debian-7-wheezy-v20140718",
  "description": "Debian GNU/Linux 7.6 (wheezy) amd64 built on 2014-07-18",
  "sourceType": "RAW",
  "rawDisk": {
   "source": "",
   "containerType": "TAR"
  },
  "status": "READY",
  "archiveSizeBytes": "1195066695",
  "diskSizeGb": "10"
}

-Chris
--  
Chris Custine


On August 1, 2014 at 11:52:54 AM, Sunil Shah ([email protected]) wrote:
> Hello,
>  
> We're trying to use Jclouds with a GCE project that has a custom image
> added and we get a null pointer exception.
>  
> We added the image to our project with this command:
> gcutil addimage em2
> http://storage.googleapis.com/mesosphere-public-images/446d06471fa12aa35b1badd567168be134b95cf8.image.tar.gz
>   
>  
> (This is a public bucket, so you should be able to try this out too.)
>  
> JClouds throws a NullPointerException when we call:
> context.getComputeService.listImages()
>  
> The full stack trace is here:
> https://gist.github.com/ssk2/5ee56af7f0976b4b1e9d
>  
> Has anyone run into this problem before or have any suggestions for how to
> fix it?
>  
> Regards,
>  
> Sunil
>  

Reply via email to