Subhadip created JCLOUDS-765:
--------------------------------

             Summary: create EBS volume for amazon ec2 using jclouds giving 
error
                 Key: JCLOUDS-765
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-765
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-labs, jclouds-labs-aws
    Affects Versions: 1.7.3
         Environment: Linux
            Reporter: Subhadip
            Priority: Blocker
             Fix For: 1.7.3


Hi,

I'm using the below code to create EBS volume in amazon ec2. The same code is 
in production and was working fine. But suddenly from last couple of days I'm 
getting a new exception. I cant find out the exact error reason. Please help to 
understand the error.


else if (cloudType.toUpperCase().equalsIgnoreCase("AWS-EC2")) {
                                EC2Api ec2Api = 
computeServiceContext.unwrapApi(EC2Api.class);
                                LOG.info("initialized ec2 api for volume 
creation");

                                org.jclouds.ec2.domain.Volume volume = ec2Api
                                                .getElasticBlockStoreApi()
                                                .get()
                                                
.createVolumeInAvailabilityZone(zoneId, size);
                                
                                
ec2Api.getTagApi().get().applyToResources(ImmutableMap.of("Name",volumeName), 
ImmutableSet.of(volume.getId()));
                                
                                responseTemplate.setJobId(volume.getId());
                                
responseTemplate.setCreationTime(volume.getCreateTime());
                                
responseTemplate.setZoneId(volume.getAvailabilityZone());
                        }


Exception :
java.lang.IllegalArgumentException: argument at index 0 on 
invocation.getInvoked() public abstract org.jclouds.ec2.domain.Volume 
org.jclouds.ec2.features.ElasticBlockStoreApi.createVolumeInAvailabilityZone(java.lang.String,int)
 was null




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to