Google联系人gdata(Java)在内容类型无解析器时失败:application-xml [application / xml] [英] Google contacts gdata (Java) fails on No parser for content type:application-xml[application/xml]

查看:117
本文介绍了Google联系人gdata(Java)在内容类型无解析器时失败:application-xml [application / xml]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,在2天前,我们开始在Java中使用google gdata客户端遇到异常,尝试访问联系人时(feed:/ m8 / feeds / contacts / default / full)。例外情况是:

Recently, a 2 days ago we started to experience exception in google gdata client in Java, when trying to access contacts (feed : /m8/feeds/contacts/default/full). The exception is :

com.google.gdata.util.ParseException: No parser for content type:application-xml[application/xml]
     at com.google.gdata.client.Service.parseResponseData(Service.java:2142)
     at com.google.gdata.client.Service.parseResponseData(Service.java:2098)
     at com.google.gdata.client.Service.getFeed(Service.java:1136)
     at com.google.gdata.client.Service.getFeed(Service.java:1077)
     at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:676)
     at com.google.gdata.client.Service.getFeed(Service.java:1034)

使用Wireshark和谷歌文档中的一些嗅探我看到正确的响应应该附带内容类型:application / atom + xml但谷歌的响应失败现在有内容类型:application / xml。
似乎谷歌发生了一些变化,现在回归不正确的内容类型,我们的代码停止工作(几年来工作正常)。

Did some sniffing with Wireshark and in the google documentation I see that correct responses should come with Content type : application/atom+xml but failed responses from google now coming with Content Type : application/xml. Seems that something changed in google, and now it's returnes not correct content type and our code stopped to work (it was working fine for few years).

需要说谷歌应用程序租户(我们的客户)的一部分仍然工作正常(使用相同的代码),但客户的某些部分失败。

Need to say that part of the google app tenants (our customers) still working fine (with the same code) , but some parts of the customers is failing.

是否有该问题的任何可能的解决方法?

Is there any possible workaround for that issue ?

谢谢

推荐答案

问题在谷歌方面是固定的,所以我们这边无所事事。

The problem was fixed on Google side, so there is nothing to do on our side.

这篇关于Google联系人gdata(Java)在内容类型无解析器时失败:application-xml [application / xml]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆