com.google.gdata.util.ParseException: The prefix "atom" for element "atom:cc" is not bound. at com.google.gdata.util.XmlParser.parse(XmlParser.java:695)| at com.google.gdata.util.XmlParser.parse(XmlParser.java:568)| at com.google.gdata.data.BaseFeed.parseAtom(BaseFeed.java:793)| at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:68)| at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:39)| at com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:)| at com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:52)|...I get this error only for a particular user in that domain. It works fine when i try to fetch the contacts for other users in that same domain.I have searched in the forum, but it seems no one have posted about this issue. Kindly help me in resolving this issue.Thanks,Vijayraj
--
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
google-co...@googlegroups.com
To unsubscribe from this group, send email to
google-contacts...@googlegroups.com
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html
Caused by: com.google.gdata.util.ParseException: The prefix "atom" for element "atom:cc" is not bound. at com.google.gdata.util.XmlParser.parse(XmlParser.java:703) at com.google.gdata.util.XmlParser.parse(XmlParser.java:576) at com.google.gdata.data.BaseFeed.parseAtom(BaseFeed.java:867) at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:68) at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:39) at com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:100) at com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:52) at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:66) at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:34) at com.google.gdata.client.Service.parseResponseData(Service.java:2165) 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:662) at com.google.gdata.client.Service.query(Service.java:1237) at com.google.gdata.client.Service.query(Service.java:1178) at com.floreysoft.ucm.server.contacts.provider.google.SyncGoogleContactsAction.collectContacts(SyncGoogleContactsAction.java:311) ... 34 more Caused by: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 757; The prefix "atom" for element "atom:cc" is not bound. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:429) at com.google.gdata.util.XmlParser.parse(XmlParser.java:685) ... 50 more
Caused by: java.util.concurrent.ExecutionException:
com.google.gdata.util.ParseException: The prefix "atom" for element
"atom:cc" is not bound.
at java.util.concurrent.FutureTask
$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at
com.yoxel.sync.mail.AccountHandler.collectParallelSyncs(AccountHandler.java:
353)
... 8 more
at com.google.gdata.client.Service.getFeed(Service.java:1034)
at
com.yoxel.sync.imap.PeopleSynchronizer.call(PeopleSynchronizer.java:
143)
... 5 more
Caused by: org.xml.sax.SAXParseException: The prefix "atom" for
element "atom:cc" is not bound.
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1231)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:
405)
at com.google.gdata.util.XmlParser.parse(XmlParser.java:685)
... 20 more
On Nov 7, 6:09 am, Daniel Florey <daniel.flo...@gmail.com> wrote:
> I've come across the same issue - unfortunately I just have the exception
> as the contacts data is privately owned by our customer:
>
> Caused by: com.google.gdata.util.ParseException: The prefix "atom" for element "atom:cc" is not bound.
> at com.google.gdata.util.XmlParser.parse(XmlParser.java:703)
> at com.google.gdata.util.XmlParser.parse(XmlParser.java:576)
> at com.google.gdata.data.BaseFeed.parseAtom(BaseFeed.java:867)
> at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java :68)
> at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java :39)
> at com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.ja va:100)
> at com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java :52)
> at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java :66)
> at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java :34)
> at com.google.gdata.client.Service.parseResponseData(Service.java:2165)
> 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:662)
> at com.google.gdata.client.Service.query(Service.java:1237)
> at com.google.gdata.client.Service.query(Service.java:1178)
> at com.floreysoft.ucm.server.contacts.provider.google.SyncGoogleContactsAction .collectContacts(SyncGoogleContactsAction.java:311)
Has this issue been resolved for you?
Thanks,
Aleey
May be one of your contact has a gd:extendedProperty set to:
<atom:cc xmlns='http://www.w3.org/2005/Atom'>0</atom:cc>According to the documentation, a contact should be able to have arbitrary XML data in an extendedProperty element. Unfortunately, it appears that the Java GData client library is unable to parse the XML.What I would suggest, if you don't need this element, is to delete it from your contact. However, using the Java client library won't work as it is unable to parse the entry.You should try using raw HTTP to delete this element; one tool you could use is OAuth Playground:
- Select "Contacts" as scope
- Click on "Request Token"
- Click on "Authorize"
- You will be redirected to a Google page to grant access, please grant access
- Click on "Access token"
- Set the GData-Version to 3.0
- In the "Enter a feed URI" text box, enter the contact's edit URL
- Click on "execute"
- The API should return the contact's XML
- Copy the contact's XML in your clipboard and click on "enter post data"
- Paste the contact's XML in the textbox that appeared and removed the extended property that contains the "un-parsable" XML
- Change the request to "PUT" (instead of "GET") and click on "execute"
- The API should return the contact's XML with an 200 HTTP status code
If that is still not possible, please feel free to file a bug against the Java GData client library project page or try to use an other client library (Python or .NET).