SilverHoodCorp / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

WebmasterToolsClient: Unknown attribute: 'file-content' #243

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Would you advice on the following error when I try to compile and run the 
webmastertools pacage from the GData API samples:

The version numbers are
        http://code.google.com/p/gdata-java-client/
        gdata-samples.java-1.40.3.zip 
        gdata-src.java-1.40.3.zip

Here is the output from ant:

C:\Downloads\gdata\java>ant -f build-samples.xml sample.webmastertools.run
Buildfile: C:\Downloads\gdata\java\build-samples.xml

sample.webmastertools.dependencies:

template.require.service.jar:

sample.core.dependencies:

core.sample.core.util.build:
    [javac] C:\Downloads\gdata\java\build-samples\core.xml:101: warning: 
'includeantruntime' was not set, defaulting to build.sysclasspath=last; 
set to false for repeatable b
ilds
    [javac] Compiling 2 source files to 
C:\Downloads\gdata\java\sample\util\classes
    [javac] Note: C:\Downloads\gdata\java\sample\util\CommonUtils.java 
uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
      [jar] Building jar: 
C:\Downloads\gdata\java\sample\util\lib\sample-util.jar

sample.webmastertools.build:
    [javac] C:\Downloads\gdata\java\build-samples\webmastertools.xml:50: 
warning: 'includeantruntime' was not set, defaulting to 
build.sysclasspath=last; set to false for rep
atable builds
    [javac] Compiling 1 source file to 
C:\Downloads\gdata\java\sample\webmastertools\classes
      [jar] Building jar: 
C:\Downloads\gdata\java\sample\webmastertools\lib\WebmasterToolsClient.jar

sample.webmastertools.run:
     [java] Running with user: ibmserch@us.ibm.com
     [java] Printing user's sites:
     [java] com.google.gdata.util.ParseException: [Line 1, Column 2502, 
element wt:verification-method] Unknown attribute: 'file-content'
     [java]     at 
com.google.gdata.util.XmlParser.throwParseException(XmlParser.java:722)
     [java]     at 
com.google.gdata.util.XmlParser.parse(XmlParser.java:685)
     [java]     at 
com.google.gdata.util.XmlParser.parse(XmlParser.java:568)
     [java]     at 
com.google.gdata.data.BaseFeed.parseAtom(BaseFeed.java:838)
     [java]     at 
com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:68)
     [java]     at 
com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:39)
     [java]     at 
com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:10
0)
     [java]     at 
com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:52)
     [java]     at 
com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:66)
     [java]     at 
com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:34)
     [java]     at 
com.google.gdata.client.Service.parseResponseData(Service.java:2036)
     [java]     at 
com.google.gdata.client.Service.getFeed(Service.java:1074)
     [java]     at 
com.google.gdata.client.Service.getFeed(Service.java:936)
     [java]     at 
com.google.gdata.client.GoogleService.getFeed(GoogleService.java:638)
     [java]     at 
com.google.gdata.client.Service.getFeed(Service.java:955)
     [java]     at 
sample.webmastertools.WebmasterToolsClient.printUserSites(WebmasterToolsClient.j
ava:144)
     [java]     at 
sample.webmastertools.WebmasterToolsClient.runExamples(WebmasterToolsClient.java
:468)
     [java]     at 
sample.webmastertools.WebmasterToolsClient.main(WebmasterToolsClient.java:438)
     [java] Caused by: com.google.gdata.util.ParseException: Unknown 
attribute: 'file-content'
     [java]     at 
com.google.gdata.data.AttributeHelper.assertAllConsumed(AttributeHelper.java:522
)
     [java]     at 
com.google.gdata.data.AbstractExtension$AttributesHandler.processEndElement(Abst
ractExtension.java:244)
     [java]     at 
com.google.gdata.util.XmlParser.endElement(XmlParser.java:996)
     [java]     at org.xml.sax.helpers.ParserAdapter.endElement(Unknown 
Source)
     [java]     at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
     [java]     at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source)
     [java]     at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
dispatch(Unknown

Source)
     [java]     at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
     [java]     at 
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
     [java]     at 
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
     [java]     at org.apache.xerces.parsers.XMLParser.parse(Unknown 
Source)
     [java]     at 
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
     [java]     at 
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
     [java]     at org.xml.sax.helpers.ParserAdapter.parse(Unknown Source)
     [java]     at 
com.google.gdata.util.XmlParser.parse(XmlParser.java:677)
     [java]     ... 16 more
     [java] Sample run completed.

BUILD SUCCESSFUL
Total time: 12 seconds

Best regards,
Alexander Gavrin,

Original issue reported on code.google.com by agav...@gmail.com on 24 Feb 2010 at 12:47

GoogleCodeExporter commented 9 years ago

Original comment by yanivin...@gmail.com on 16 Mar 2010 at 2:14

GoogleCodeExporter commented 9 years ago
I am also getting this error. I am running Mac OS X 10.6.2 with Java 1.5.

Have you got a workaround?

Original comment by dugald.m...@gmail.com on 25 Mar 2010 at 11:49

GoogleCodeExporter commented 9 years ago
Dugald, There was a fix pushed out in 1.41.0 release.  If you are using 1.41.0 
or
1.41.1 then the issue should be fixed.  If you are and you are still seeing the
issue, let us know.

Original comment by vbarat...@gmail.com on 25 Mar 2010 at 12:44