Skip to content

Instantly share code, notes, and snippets.

@philippe-tseyen
Last active December 17, 2015 08:28
Show Gist options
  • Save philippe-tseyen/5579744 to your computer and use it in GitHub Desktop.
Save philippe-tseyen/5579744 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>123</ID><DisplayName>FakeS3</DisplayName></Owner>
<Buckets><Bucket><Name>releasequeue</Name><CreationDate>2013-05-14T22:46:02.000Z</CreationDate></Bucket></Buckets></ListAllMyBucketsResult>
================
DEBUG [main] 2013-05-14 23:23:17,966 S3Signer#sign - Calculated string to sign:
"GET
application/x-www-form-urlencoded; charset=utf-8
Tue, 14 May 2013 21:23:17 GMT
/releasequeue/"
DEBUG [main] 2013-05-14 23:23:18,118 AmazonHttpClient#executeHelper - Sending Request: GET http://releasequeue.fakes3:4567 / Parameters: (prefix: automatedev, ) Headers: (Authorization: AWS AKIAIL33QQ6XBIRVEVXA:8aKnKqNuwgYHNy5gQBrmoobzrfY=, Date: Tue, 14 May 2013 21:23:17 GMT, User-Agent: aws-sdk-java/1.4.3 Windows_Vista/6.0 Java_HotSpot(TM)_Client_VM/20.14-b01, Content-Type: application/x-www-form-urlencoded; charset=utf-8, )
DEBUG [main] 2013-05-14 23:23:18,271 XmlResponsesSaxParser#sanitizeXmlDocument - Sanitizing XML document destined for handler class com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser$ListBucketHandler
DEBUG [main] 2013-05-14 23:23:18,273 XmlResponsesSaxParser#parseXmlInputStream - Parsing XML response document with handler: class com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser$ListBucketHandler
com.amazonaws.AmazonClientException: Unable to unmarshall response (Failed to parse XML document with handler class com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser$ListBucketHandler)
at com.amazonaws.http.AmazonHttpClient.handleResponse(AmazonHttpClient.java:585)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:319)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:190)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:2985)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:2956)
at com.amazonaws.services.s3.AmazonS3Client.listObjects(AmazonS3Client.java:478)
at com.amazonaws.services.s3.iterable.S3Objects$S3ObjectIterator.prepareCurrentListing(S3Objects.java:141)
at com.amazonaws.services.s3.iterable.S3Objects$S3ObjectIterator.hasNext(S3Objects.java:118)
at com.automatedev.releasequeue.debian.FakeS3TestCase.testGetObjects(FakeS3TestCase.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:77)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: com.amazonaws.AmazonClientException: Failed to parse XML document with handler class com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser$ListBucketHandler
at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser.parseXmlInputStream(XmlResponsesSaxParser.java:148)
at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser.parseListBucketObjectsResponse(XmlResponsesSaxParser.java:277)
at com.amazonaws.services.s3.model.transform.Unmarshallers$ListObjectsUnmarshaller.unmarshall(Unmarshallers.java:75)
at com.amazonaws.services.s3.model.transform.Unmarshallers$ListObjectsUnmarshaller.unmarshall(Unmarshallers.java:72)
at com.amazonaws.services.s3.internal.S3XmlResponseHandler.handle(S3XmlResponseHandler.java:62)
at com.amazonaws.services.s3.internal.S3XmlResponseHandler.handle(S3XmlResponseHandler.java:31)
at com.amazonaws.http.AmazonHttpClient.handleResponse(AmazonHttpClient.java:562)
... 33 more
Caused by: java.lang.NullPointerException
at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser$ListBucketHandler.startElement(XmlResponsesSaxParser.java:609)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser.parseXmlInputStream(XmlResponsesSaxParser.java:139)
... 39 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment