[ROME-101] Get "White spaces are required" when trying to get an Atom service using Propono Created: 13/Aug/08  Updated: 31/Mar/10

Status: Open
Project: rome
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Blocker
Reporter: davidvc Assignee: rome-issues
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: Macintosh


Issuezilla Id: 101

 Description   

If I try to connect to

http://webflavors.com/brent/wp-app.php/service

through the Propono AtomPub client I get

org.jdom.input.JDOMParseException: Error on line 1: White spaces are required
between publicId and systemId.

If I just go to the URI directly I get a nicely formed XML response displaying
the workspaces (see below).

Marking this a P1 because I am completely stuck with this bug.

<?xml version="1.0" encoding="utf-8"?>
<service xmlns="http://www.w3.org/2007/app"
xmlns:atom="http://www.w3.org/2005/Atom">
<workspace>
<atom:title> Workspace</atom:title>
<collection href="http://webflavors.com/brent/wp-app.php/posts">
<atom:title> Posts</atom:title>
<accept>application/atom+xml;type=entry</accept>

<categories href="http://webflavors.com/brent/wp-app.php/categories" />
</collection>
<collection href="http://webflavors.com/brent/wp-app.php/attachments">
<atom:title> Media</atom:title>
<accept>image/</accept><accept>audio/</accept><accept>video/*</accept>
</collection>

</workspace>
</service>



 Comments   
Comment by davidvc [ 13/Aug/08 ]

Here is the full stack trace:

Exception in thread "main" com.sun.syndication.propono.utils.ProponoException:
ERROR retrieving Atom Service Document, code: -1
at
com.sun.syndication.propono.atom.client.ClientAtomService.<init>(ClientAtomService.java:93)
at
com.sun.syndication.propono.atom.client.AtomClientFactory.getAtomService(AtomClientFactory.java:33)
at com.webflavors.hogwash.CreateBlogs.run(CreateBlogs.java:38)
at com.webflavors.hogwash.CreateBlogs.main(CreateBlogs.java:29)
— ROOT CAUSE —
org.jdom.input.JDOMParseException: Error on line 1: White spaces are required
between publicId and systemId.
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:468)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:770)
at
com.sun.syndication.propono.atom.client.ClientAtomService.<init>(ClientAtomService.java:88)
at
com.sun.syndication.propono.atom.client.AtomClientFactory.getAtomService(AtomClientFactory.java:33)
at com.webflavors.hogwash.CreateBlogs.run(CreateBlogs.java:38)
at com.webflavors.hogwash.CreateBlogs.main(CreateBlogs.java:29)
Caused by: org.xml.sax.SAXParseException: White spaces are required between
publicId and systemId.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.scanExternalID(XMLScanner.java:1026)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.scanDoctypeDecl(XMLDocumentScannerImpl.java:687)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:963)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
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:508)
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.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
... 5 more
Caused by: org.xml.sax.SAXParseException: White spaces are required between
publicId and systemId.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.scanExternalID(XMLScanner.java:1026)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.scanDoctypeDecl(XMLDocumentScannerImpl.java:687)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:963)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
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:508)
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.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:770)
at
com.sun.syndication.propono.atom.client.ClientAtomService.<init>(ClientAtomService.java:88)
at
com.sun.syndication.propono.atom.client.AtomClientFactory.getAtomService(AtomClientFactory.java:33)
at com.webflavors.hogwash.CreateBlogs.run(CreateBlogs.java:38)
at com.webflavors.hogwash.CreateBlogs.main(CreateBlogs.java:29)

Comment by snoopdave [ 31/Mar/10 ]

I suspect this is a either a JDOM bug or the service doc is actually malformed XML (whitespace before the
<?xml version="1.0" encoding="utf-8"> line. Hard to tell because the service no longer appears to be
online.

Generated at Fri May 29 16:38:11 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.