jclouds uses GSON [1] as it’s default JSON parser. Could you give that a try?

Everett

[1] https://code.google.com/p/google-gson/


On Apr 7, 2014, at 1:59 PM, Jeremiah Robertson 
<[email protected]<mailto:[email protected]>> wrote:

Here is the return from the wire log:

POST https://identity.api.rackspacecloud.com/v2.0/tokens HTTP/1.1
-  >> POST https://identity.api.rackspacecloud.com/v2.0/tokens HTTP/1.1
-  >> Accept: application/json
-  >> Accept: application/json
-  >> Content-Type: application/json
-  >> Content-Type: application/json
-  >> Content-Length: 109
-  >> Content-Length: 109
-  << HTTP/1.1 200 OK
-  << VIA: 1.0 Repose (Repose/2.3.5)
-  << Transfer-Encoding: chunked
-  << Date: Mon, 07 Apr 2014 19:51:18 GMT
-  << Front-End-Https: on
-  << Connection: keep-alive
-  << vary: Accept, Accept-Encoding, X-Auth-Token
-  << Server: nginx/0.8.55
-  << Content-Type: application/json
-  << HTTP/1.1 200 OK
-  << VIA: 1.0 Repose (Repose/2.3.5)
-  << Transfer-Encoding: chunked
-  << Date: Mon, 07 Apr 2014 19:51:18 GMT
-  << Front-End-Https: on
-  << Connection: keep-alive
-  << vary: Accept, Accept-Encoding, X-Auth-Token
-  << Server: nginx/0.8.55
-  << Content-Type: application/json
<< 
"{"access":{"token":{"id":"dd5b5f7194634a60936fa03effa9f22c","expires":"2014-04-08T19:35:29.178Z","tenant":{"id":"884436","name":"884436"},"RAX-AUTH:authenticatedBy":["APIKEY"]},"serviceCatalog":[{"name":"cloudFilesCDN","endpoints":[{"region":"IAD","tenantId":"MossoCloudFS_7eaf02d4-10a3-49bd-86f9-f37e3ac71aa0","publicURL":"https:\/\/cdn5.clouddrive.com<http://cdn5.clouddrive.com/>\/v1\/MossoCloudFS_7eaf02d4-10a3-49bd-86f9-f37e3ac71aa0"},{"region":"SYD","tenantId":"MossoCloudFS_7eaf02d4-10a3-49bd-86f9-f37e3ac71aa0","publicURL":"https:\/\/cdn4.clouddrive.com<http://cdn4.clouddrive.com/>\/v1\/MossoCloudFS_7eaf02d4-10a3-49bd-86f9-f37e3ac71aa0"},{"region":"DFW","tenantId":"MossoCloudFS_7eaf02d4-10a3-49bd-86f9-f37e3ac71aa0","publicURL":"https:\/\/cdn1.clouddrive.com<http://cdn1.clouddrive.com/>\/v1\/MossoCloudFS_7eaf02d4-10a3-49bd-86f9-f37e3ac71aa0"},{"region":"HKG","tenantId":"MossoCloudFS_7eaf02d4-10a3-49bd-86f9-f37e3ac71aa0","publicURL":"https:\/\/cdn6.clouddrive.com<http://cdn6.clouddrive.com/>\/v1\/MossoCloudFS_7eaf02d4-10a3-49bd-86f9-f37e3ac71aa0"},{"region":"ORD","tenantId":"MossoCloudFS_7eaf02d4-10a3-49bd-86f9-f37e3ac71aa0","publicURL":"https:\/\/cdn2.clouddrive.com<http://cdn2.clouddrive.com/>\/v1\/MossoCloudFS_7eaf02d4-10a3-49bd-86f9-f37e3ac71aa0"}],"type":"rax:object-cdn"},{"name":"cloudFiles","endpoints":[{"region":"IAD","tenantId":"MossoCloudFS_7eaf02d4-10a3-49bd-86f9-f37e3ac71aa0","publicURL":"https:\/\/storage101.iad3.clouddrive.com<http://storage101.iad3.clouddrive.com/>\/v1\/MossoCloudFS_7eaf02d4-10a3-49bd-86f9-f37e3ac71aa0","internalURL":"https:\/\/snet-storage101.iad3.clouddrive.com<http://snet-storage101.iad3.clouddrive.com/>\/v1\/MossoCloudFS_7eaf02d4-10a3-49bd-86f9-f37e3ac71aa0"}
  Authenticated

I cut off a bunch of the JSON that was returned. I'm confused though because 
this is the right return so I'm not sure why it's not being parsed correctly in 
Android. Specifically at Line 1 Column 13 is where it errors which is where the 
NAME title appears. I did switch out the JAXB Parser for another parser so if 
JAXB is used to parse through the JSON and convert it then that would be 
something to look into, but I don't know the process of parsing the JSON that 
well.


On Sat, Apr 5, 2014 at 6:16 AM, Andrew Phillips 
<[email protected]<mailto:[email protected]>> wrote:
I just need to find the returned information so I can verify what it is.

That should be in the wire log? Could you attach the log file of the call, or 
repeat the call with cURL or so (i.e. without using jclouds)?

ap



--
Jeremiah Robertson
Georgia Tech Junior
Aerospace Engineering
Grand Challenges Program
[email protected]<mailto:[email protected]>
417.207.1563

Reply via email to