Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException : while creating AWS EC2 instances #271

Open
sanjivsingh opened this issue Aug 3, 2013 · 4 comments
Open

NullPointerException : while creating AWS EC2 instances #271

sanjivsingh opened this issue Aug 3, 2013 · 4 comments
Labels

Comments

@sanjivsingh
Copy link

Hi,

I am getting NullPointerException while creating instances at AWS EC2. through i am instance is getting cloned sucessfilly , but getting following error at REPL console.

Please help me on this.what is possible reason of error And what are impact of this ? and How to avoid it ?

16:57:16.234 [user thread 8] WARN o.j.e.x.DescribeImagesResponseHandler - malformed image: null
java.lang.NullPointerException: imageId
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:208) ~[guava-13.0.jar:na]
at org.jclouds.ec2.domain.Image.(Image.java:84) ~[ec2-1.5.5.jar:1.5.5]
at org.jclouds.ec2.xml.DescribeImagesResponseHandler.endElement(DescribeImagesResponseHandler.java:175) ~[ec2-1.5.5.jar:1.5.5]
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601) [na:1.6.0_43]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782) [na:1.6.0_43]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2939) [na:1.6.0_43]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647) [na:1.6.0_43]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) [na:1.6.0_43]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) [na:1.6.0_43]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) [na:1.6.0_43]
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) [na:1.6.0_43]
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) [na:1.6.0_43]
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) [na:1.6.0_43]
at org.jclouds.http.functions.ParseSax.doParse(ParseSax.java:141) [jclouds-core-1.5.5.jar:1.5.5]
at org.jclouds.http.functions.ParseSax.parse(ParseSax.java:130) [jclouds-core-1.5.5.jar:1.5.5]
at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:86) [jclouds-core-1.5.5.jar:1.5.5]
at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:54) [jclouds-core-1.5.5.jar:1.5.5]
at com.google.common.util.concurrent.Futures$3.apply(Futures.java:376) [guava-13.0.jar:na]
at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:518) [guava-13.0.jar:na]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [na:1.6.0_43]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [na:1.6.0_43]
at java.lang.Thread.run(Thread.java:662) [na:1.6.0_43]

@hugoduncan
Copy link
Member

Apologies for the delayed reply. This looks like a transient failure in image enumeration by jclouds.

If this is still an issue, please report the versions of pallet, pallet-jclouds and jclouds that you are using.

@trampoline
Copy link

i'm seeing this error too : afaics the instance is created correctly though, so it doesn't seem to be critical

here are my jar versions : https://www.refheap.com/20567

i tried upgrading jclouds to 1.6.0, but there are some API changes and it failed, so i couldn't tell if the problem is sorted in later versions of jclouds

@hugoduncan
Copy link
Member

Could it be happening on nodes where the ami they were started with has been removed from AWS?

@trampoline
Copy link

no : i got the error with two amis, one from the pallet first-steps guide, us-east-1/ami-3c994355, and the second alestic's latest ubuntu in ireland : eu-west-1/ami-a0dd3dd7 : both AMIs are still there

other things i thought of :

  • i started using IAM keys, so i tried using the main account keys too : made no difference
  • US vs EU : made no difference

i was out of ideas and time after that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants