rome
  1. rome
  2. ROME-101

Get "White spaces are required" when trying to get an Atom service using Propono

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • 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>

        Activity

        Hide
        davidvc added a comment -

        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)

        Show
        davidvc added a comment - 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)
        Hide
        snoopdave added a comment -

        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.

        Show
        snoopdave added a comment - 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.

          People

          • Assignee:
            rome-issues
            Reporter:
            davidvc
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: