Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-160

AWS EC2 - constant error malformed image: null - NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.10, 1.6.1, 1.7.0
    • 1.7.0
    • None

    Description

      I constantly see the following error. Is it a problem with AWS or our expectations of their output?

      2013-06-29 16:30:19,776 (main) [WARN - logging.slf4j.SLF4JLogger] 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:82)
      	at org.jclouds.ec2.xml.DescribeImagesResponseHandler.endElement(DescribeImagesResponseHandler.java:169)
      	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:139)
      	at org.jclouds.http.functions.ParseSax.parse(ParseSax.java:128)
      	at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:84)
      	at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:52)
      	at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.invoke(InvokeSyncToAsyncHttpMethod.java:131)
      	at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:97)
      	at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:58)
      	at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
      	at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:70)
      	at $Proxy66.describeImagesInRegion(Unknown Source)
      	at org.jclouds.ec2.compute.loaders.RegionAndIdToImage.load(RegionAndIdToImage.java:57)
      	at org.jclouds.ec2.compute.loaders.RegionAndIdToImage.load(RegionAndIdToImage.java:40)
      	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
      	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
      	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
      	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
      	at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
      	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
      	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
      	at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4880)
      	at org.jclouds.ec2.compute.functions.RunningInstanceToNodeMetadata.apply(RunningInstanceToNodeMetadata.java:136)
      	at org.jclouds.ec2.compute.functions.RunningInstanceToNodeMetadata.apply(RunningInstanceToNodeMetadata.java:72)
      	at com.google.common.collect.Iterators$8.transform(Iterators.java:860)
      	at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
      	at com.google.common.collect.Iterators$7.computeNext(Iterators.java:701)
      	at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
      	at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
      	at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:316)
      	at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:302)
      	at org.jclouds.ec2.compute.strategy.EC2ListNodesStrategy.listDetailsOnNodesMatching(EC2ListNodesStrategy.java:117)
      	at org.jclouds.ec2.compute.strategy.EC2ListNodesStrategy.listDetailsOnNodesMatching(EC2ListNodesStrategy.java:65)
      	at org.jclouds.compute.internal.BaseComputeService.listNodesDetailsMatching(BaseComputeService.java:361)
      

      Attachments

        1. JCLOUDS-190.patch
          3 kB
          Brock Noland
        2. JCLOUDS-190.patch
          3 kB
          Brock Noland
        3. JCLOUDS-160-final.patch
          17 kB
          Ignasi Barrera

        Activity

          People

            nacx Ignasi Barrera
            brocknoland Brock Noland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: