Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-151

WstxParsingException when getting default repository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • chemistry-old
    • None

    Description

      The ServiceDocumentReader should handle the cmis:aclCapability element. Currently an WstxParsingException is thrown when such an element is present.

      This was observed when connecting to Alfresco's demo repository at http://cmis.alfresco.com/service/cmis

      org.apache.chemistry.CMISRuntimeException: java.io.IOException
      at org.apache.chemistry.atompub.client.Connector.getServiceDocument(Connector.java:87)
      at org.apache.chemistry.atompub.client.APPRepositoryService.loadRepositories(APPRepositoryService.java:82)
      at org.apache.chemistry.atompub.client.APPRepositoryService.getDefaultRepository(APPRepositoryService.java:86)
      ...
      Caused by: java.io.IOException
      at org.apache.chemistry.atompub.client.stax.ServiceDocumentReader.read(ServiceDocumentReader.java:99)
      at org.apache.chemistry.atompub.client.Connector.getServiceDocument(Connector.java:84)
      ...
      Caused by: com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT.
      at [row,col

      {unknown-source}

      ]: [61,35]
      at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605)
      at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)
      at com.ctc.wstx.sr.BasicStreamReader.getElementText(BasicStreamReader.java:677)
      at javax.xml.stream.util.StreamReaderDelegate.getElementText(StreamReaderDelegate.java:71)
      at org.apache.chemistry.xml.stax.StaxReader.getElementText(StaxReader.java:96)
      at org.apache.chemistry.atompub.client.stax.ServiceDocumentReader.readRepositoryInfo(ServiceDocumentReader.java:162)
      at org.apache.chemistry.atompub.client.stax.ServiceDocumentReader.read(ServiceDocumentReader.java:88)

      Attachments

        1. CMIS-151.txt
          0.9 kB
          Michael Dürig

        Activity

          People

            fguillaume Florent Guillaume
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: