SilverHoodCorp / gdata-java-client

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

Soft 404s cause com.google.gdata.util.ParseException #306

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Issue summary:
Enum entry for "soft 404" is missing from CrawlIssueIssueType.java.

Steps to reproduce issue:
1. Call getFeed with /crawlissues/
2. Iterate until a soft 404 is found
3. Backtrace

Expected output:
Object should be returned.

Actual results:
Failure.

Exception:
com.google.gdata.util.ParseException: [Line 1, Column 16853, element 
wt:issue-type] Invalid value for attribute : 'null'
at com.google.gdata.util.XmlParser.throwParseException(XmlParser.java:730)
at com.google.gdata.util.XmlParser.parse(XmlParser.java:693)
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:10
0)
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:998)
at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:638)
at com.google.gdata.client.Service.getFeed(Service.java:1017)

Notes:

After debugging, I patched CrawlIssueIssueType.java by inserting the following 
around line 68:
    /** tedt: added this one based on errors */
    SOFT_404("soft-404"),

That fixes it.

Original issue reported on code.google.com by tedde...@gmail.com on 26 Aug 2010 at 6:21

GoogleCodeExporter commented 9 years ago
We need to update the data/webmastertools package.  We've already fixed this 
internally.

Original comment by yan...@google.com on 9 Sep 2010 at 6:29

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 9 Sep 2010 at 6:29

GoogleCodeExporter commented 9 years ago
I still get this error, where can i find the fixed package?

Original comment by choudhar...@pg.com on 26 Apr 2013 at 9:33

GoogleCodeExporter commented 9 years ago
Is there anywhere to download an updated package?

Original comment by TitanNut...@gmail.com on 1 Nov 2013 at 8:58

GoogleCodeExporter commented 9 years ago
Has anyone found a solution to this?

Original comment by ishanc2...@gmail.com on 21 Mar 2014 at 1:58