Julian,
I don't have too many contacts, as far as I know none of the contacts
have a nickname value.

How would I "get the feed directly using the protocol" other than
"service.getFeed(url, ContactFeed.class); ", as this is the call that
is raising the exception?

Thanks,
Brian

Exception output from NetBeans running Contact Example:
run:
Executing action: LIST
Exception in thread "main" com.google.gdata.util.ParseException: [Line
1, Column 8801, element gContact:nickname] Missing required text
content
        at com.google.gdata.util.XmlParser.throwParseException
(XmlParser.java:722)
        at com.google.gdata.util.XmlParser.parse(XmlParser.java:685)
        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: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:1878)
        at com.google.gdata.client.Service.getFeed(Service.java:1035)
        at com.google.gdata.client.Service.getFeed(Service.java:976)
        at com.google.gdata.client.GoogleService.getFeed
(GoogleService.java:662)
        at com.google.gdata.client.Service.query(Service.java:1136)
        at com.google.gdata.client.Service.query(Service.java:1077)
        at sample.contacts.ContactsExample.listEntries
(ContactsExample.java:438)
        at sample.contacts.ContactsExample.processAction
(ContactsExample.java:342)
        at sample.contacts.ContactsExample.main(ContactsExample.java:
619)
Caused by: com.google.gdata.util.ParseException: Missing required text
content
        at com.google.gdata.data.AttributeHelper.consume
(AttributeHelper.java:101)
        at com.google.gdata.data.AttributeHelper.consumeContent
(AttributeHelper.java:86)
        at com.google.gdata.data.ValueConstruct.consumeAttributes
(ValueConstruct.java:184)
        at com.google.gdata.data.AbstractExtension
$AttributesHandler.processEndElement(AbstractExtension.java:243)
        at com.google.gdata.util.XmlParser.endElement(XmlParser.java:
996)
        at org.xml.sax.helpers.ParserAdapter.endElement
(ParserAdapter.java:626)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement
(AbstractSAXParser.java:593)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement
(XMLDocumentFragmentScannerImpl.java:1774)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next
(XMLDocumentScannerImpl.java:648)
        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:510)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(XML11Configuration.java:807)
        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:107)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
(AbstractSAXParser.java:1205)
        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:677)
        ... 17 more
Java Result: 1
BUILD SUCCESSFUL (total time: 3 seconds)


On Jun 15, 8:33 am, "Julian (Google)" <[email protected]> wrote:
> Hi,
>
> There may be an inconsistency with a Nickname value in your contacts
> and the API client cannot parse a character or a value, can you post
> the whole error message?
>
> Do you think you can narrow down the problem to a specific contact? If
> your contact list is not too long, maybe you can get the feed directly
> using the protocol and look for the contact that has the
> inconsistency. I am reviewing the Java Client to look for possible
> errors, but would help if we can find an example.
>
> Thanks,
> Julian.
>
> On Jun 14, 12:26 am, bwinfrey <[email protected]> wrote:
>
> > Setting the protocol version handles this error.
>
> > service.setProtocolVersion(ContactsService.Versions.V2);
>
> > However, I would like more information about how to correctly
> > implement version 3.0 of the API to be able to utilize the added scema
> > elements and work with older data.  Perhaps a different feed URL?  Any
> > help appreciated.
>
> > Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to