You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by Nirmal Fernando <ni...@wso2.com> on 2013/05/06 12:23:30 UTC

jclouds EC2 API fails to parse an EC2 AMI having a tag

Hi All,

I've noticed $subject. I want to know whether it is fixed already? or else
I might able to send a pull request.

2013-03-29 07:52:22,510] WARN
{org.jclouds.ec2.xml.DescribeImagesResponseHandler} - malformed image: null
java.lang.NullPointerException: imageId
at
com.google.common.base.Preconditions.checkNotNull(Preconditions.java:208)
at org.jclouds.ec2.domain.Image.<init>(Image.java:84)
at
org.jclouds.ec2.xml.DescribeImagesResponseHandler.endElement(DescribeImagesResponseHandler.java:175)

at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jclouds.http.functions.ParseSax.doParse(ParseSax.java:141)
at org.jclouds.http.functions.ParseSax.parse(ParseSax.java:130)
at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:86)
at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:54)
at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380)
at
com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522)

at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

at java.lang.Thread.run(Thread.java:662)

-- 

Thanks & regards,
Nirmal

Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/

Re: jclouds EC2 API fails to parse an EC2 AMI having a tag

Posted by Nirmal Fernando <ni...@wso2.com>.
Hi All,

We found the root cause for this issue and the reason was in my AMI there's
was a tag specified. I've patched it in Stratos, just to get rid of this
error (since we had no need to care about tags).

This might be already fixed in latest jclouds.


On Mon, May 6, 2013 at 9:10 PM, Adrian Cole <ad...@gmail.com> wrote:

> Hi, Nirmal.
>
> I can't be sure because this would depend on what XML caused this error,
> etc.  We don't have the ASF Jira setup, yet.  In the mean time, can you
> send the xml from jclouds.wire log and the version of jclouds you are
> using?  Also, this is probably more a user@jclouds.incubator.apache.orgreport
> a dev/design question.
>
> Cheers,
> -A
>
>
> On Mon, May 6, 2013 at 3:23 AM, Nirmal Fernando <ni...@wso2.com> wrote:
>
> > Hi All,
> >
> > I've noticed $subject. I want to know whether it is fixed already? or
> else
> > I might able to send a pull request.
> >
> > 2013-03-29 07:52:22,510] WARN
> > {org.jclouds.ec2.xml.DescribeImagesResponseHandler} - malformed image:
> null
> > java.lang.NullPointerException: imageId
> > at
> > com.google.common.base.Preconditions.checkNotNull(Preconditions.java:208)
> > at org.jclouds.ec2.domain.Image.<init>(Image.java:84)
> > at
> >
> >
> org.jclouds.ec2.xml.DescribeImagesResponseHandler.endElement(DescribeImagesResponseHandler.java:175)
> >
> > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> > at
> >
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
> > Source)
> > at
> >
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> > Source)
> > at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> > Source)
> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> > at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
> > at org.jclouds.http.functions.ParseSax.doParse(ParseSax.java:141)
> > at org.jclouds.http.functions.ParseSax.parse(ParseSax.java:130)
> > at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:86)
> > at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:54)
> > at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380)
> > at
> >
> >
> com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522)
> >
> > at
> >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
> >
> > at
> >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> >
> > at java.lang.Thread.run(Thread.java:662)
> >
> > --
> >
> > Thanks & regards,
> > Nirmal
> >
> > Software Engineer- Platform Technologies Team, WSO2 Inc.
> > Mobile: +94715779733
> > Blog: http://nirmalfdo.blogspot.com/
> >
>



-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/

Re: jclouds EC2 API fails to parse an EC2 AMI having a tag

Posted by Adrian Cole <ad...@gmail.com>.
Hi, Nirmal.

I can't be sure because this would depend on what XML caused this error,
etc.  We don't have the ASF Jira setup, yet.  In the mean time, can you
send the xml from jclouds.wire log and the version of jclouds you are
using?  Also, this is probably more a user@jclouds.incubator.apache.org report
a dev/design question.

Cheers,
-A


On Mon, May 6, 2013 at 3:23 AM, Nirmal Fernando <ni...@wso2.com> wrote:

> Hi All,
>
> I've noticed $subject. I want to know whether it is fixed already? or else
> I might able to send a pull request.
>
> 2013-03-29 07:52:22,510] WARN
> {org.jclouds.ec2.xml.DescribeImagesResponseHandler} - malformed image: null
> java.lang.NullPointerException: imageId
> at
> com.google.common.base.Preconditions.checkNotNull(Preconditions.java:208)
> at org.jclouds.ec2.domain.Image.<init>(Image.java:84)
> at
>
> org.jclouds.ec2.xml.DescribeImagesResponseHandler.endElement(DescribeImagesResponseHandler.java:175)
>
> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> at
>
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
> Source)
> at
>
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> at org.jclouds.http.functions.ParseSax.doParse(ParseSax.java:141)
> at org.jclouds.http.functions.ParseSax.parse(ParseSax.java:130)
> at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:86)
> at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:54)
> at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380)
> at
>
> com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522)
>
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>
> at java.lang.Thread.run(Thread.java:662)
>
> --
>
> Thanks & regards,
> Nirmal
>
> Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>