Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-9725

"CmisConnectionException: Parsing exception!" connecting to OpenCmis Atompub URL after Alfresco upgrade

    Details

    • Type: Service Pack Request
    • Status: Closed
    • Resolution: Not a bug
    • Affects Version/s: 4.1.5
    • Fix Version/s: None
    • Component/s: CMIS, Upgrades
    • Labels:
      None
    • Bug Priority:
      Category 3
    • ACT Numbers:

      00136296

      Description

      [ Steps to reproduce]
      1. Install Alfresco 4.0.2.9 using Alfresco installer
      Use Lucene search system
      2. Verify cmis connection works fine with AtomPub URL
      http://HOST:PORT/alfresco/cmisatom
      3. Install Alfresco 4.1.5 using Alfresco installer
      Use Lucene search system
      4. Verify cmis connection works fine with AtomPub URL
      http://HOST:PORT/alfresco/cmisatom
      5. Upgrade: point Alf4.1.5 to Alf4.0.2.9 alf_data and DB
      6. Verify Alf4.1.5 works fine
      7. Verify cmis connection works fine with AtomPub URL
      http://HOST:PORT/alfresco/cmisatom

      [ Actual Result]
      Connection fails with error message:

      log
      org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Parsing exception!
      	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:531)
      	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:719)
      	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:59)
      	at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:85)
      	at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:109)
      	at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:96)
      	at org.alfresco.support.cmis.cmis_test.CmisCmisService.connect(CmisCmisService.java:29)
      	at org.alfresco.support.cmis.cmis_test.CmisCmisService.main(CmisCmisService.java:39)
      Caused by: com.ctc.wstx.exc.WstxParsingException: Unrecognized XML directive; expected CDATA or comment ('<![CDATA[' or '<!--').
       at [row,col {unknown-source}]: [26,3]
      	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.nextFromTreeCommentOrCData(BasicStreamReader.java:3285)
      	at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2822)
      	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
      	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.next(AtomPubParser.java:650)
      	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parse(AtomPubParser.java:142)
      	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:529)
      	... 7 more
      

      [ Expected Result]
      Connection with no error

      [Notes]

      • Connection works fine with old AtomPub implementation:
        "http://HOST:PORT/alfresco/s/cmis"
      • Tested with a client Java class (<opencmis.version>0.7.0</opencmis.version>)
        and chemistry-opencmis-workbench-0.8.0

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                mmancuso Marco Mancuso [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h

                    Structure Helper Panel