<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CmisConnectionException - from Session getting objectByPath in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/cmisconnectionexception-from-session-getting-objectbypath/m-p/111727#M31181</link>
    <description>&lt;P&gt;I am successfully getting session and repository info. But any call to session such as the ones below throw CmisConnectionException.&lt;/P&gt;&lt;P&gt;session.getRootFolder();&lt;/P&gt;&lt;P&gt;session.getObjectByPath("/Sites/mysite/documentLibrary")&lt;/P&gt;&lt;P&gt;I write code as:&lt;/P&gt;&lt;PRE&gt;parameter.put(SessionParameter.USER, "admin");
parameter.put(SessionParameter.PASSWORD, "admin");
			
parameter.put(SessionParameter.ATOMPUB_URL, "https://myhost/alfresco/api/-default-/cmis/versions/1.1/atom");
parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");&lt;/PRE&gt;&lt;P&gt;I print out repository info as:&lt;/P&gt;&lt;P&gt;Id=-default-&lt;/P&gt;&lt;P&gt;CmisVersionSupported= 1.1&lt;/P&gt;&lt;P&gt;ProductName=Alfresco Enterprise&lt;/P&gt;&lt;P&gt;I can successfully download the URL of "https://myhost/alfresco/api/-default-/cmis/versions/1.1/atom"&lt;/P&gt;&lt;P&gt;I tried the above setting in CMIS-Workbench also, and I get the same&amp;nbsp;CmisConnectionException: Parsing exception.&lt;/P&gt;&lt;P&gt;I get the exception as the following.&lt;/P&gt;&lt;P&gt;org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Parsing exception!&lt;BR /&gt;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:596)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getObjectInternal(AbstractAtomPubService.java:843)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.getObjectByPath(ObjectServiceImpl.java:628)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:554)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:532)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;MORE EXCEPTIONS&lt;/P&gt;&lt;P&gt;Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog&lt;BR /&gt;at [row,col {unknown-source}]: [1,0]&lt;BR /&gt;at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:677)&lt;BR /&gt;at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2139)&lt;BR /&gt;at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2045)&lt;BR /&gt;at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1134)&lt;BR /&gt;at org.apache.chemistry.opencmis.commons.impl.XMLUtils.next(XMLUtils.java:228)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parse(AtomPubParser.java:133)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:594)&lt;BR /&gt;... 14 more&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jul 2020 06:30:13 GMT</pubDate>
    <dc:creator>SG</dc:creator>
    <dc:date>2020-07-04T06:30:13Z</dc:date>
    <item>
      <title>CmisConnectionException - from Session getting objectByPath</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmisconnectionexception-from-session-getting-objectbypath/m-p/111727#M31181</link>
      <description>&lt;P&gt;I am successfully getting session and repository info. But any call to session such as the ones below throw CmisConnectionException.&lt;/P&gt;&lt;P&gt;session.getRootFolder();&lt;/P&gt;&lt;P&gt;session.getObjectByPath("/Sites/mysite/documentLibrary")&lt;/P&gt;&lt;P&gt;I write code as:&lt;/P&gt;&lt;PRE&gt;parameter.put(SessionParameter.USER, "admin");
parameter.put(SessionParameter.PASSWORD, "admin");
			
parameter.put(SessionParameter.ATOMPUB_URL, "https://myhost/alfresco/api/-default-/cmis/versions/1.1/atom");
parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");&lt;/PRE&gt;&lt;P&gt;I print out repository info as:&lt;/P&gt;&lt;P&gt;Id=-default-&lt;/P&gt;&lt;P&gt;CmisVersionSupported= 1.1&lt;/P&gt;&lt;P&gt;ProductName=Alfresco Enterprise&lt;/P&gt;&lt;P&gt;I can successfully download the URL of "https://myhost/alfresco/api/-default-/cmis/versions/1.1/atom"&lt;/P&gt;&lt;P&gt;I tried the above setting in CMIS-Workbench also, and I get the same&amp;nbsp;CmisConnectionException: Parsing exception.&lt;/P&gt;&lt;P&gt;I get the exception as the following.&lt;/P&gt;&lt;P&gt;org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Parsing exception!&lt;BR /&gt;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:596)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getObjectInternal(AbstractAtomPubService.java:843)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.getObjectByPath(ObjectServiceImpl.java:628)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:554)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:532)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;MORE EXCEPTIONS&lt;/P&gt;&lt;P&gt;Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog&lt;BR /&gt;at [row,col {unknown-source}]: [1,0]&lt;BR /&gt;at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:677)&lt;BR /&gt;at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2139)&lt;BR /&gt;at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2045)&lt;BR /&gt;at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1134)&lt;BR /&gt;at org.apache.chemistry.opencmis.commons.impl.XMLUtils.next(XMLUtils.java:228)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parse(AtomPubParser.java:133)&lt;BR /&gt;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:594)&lt;BR /&gt;... 14 more&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jul 2020 06:30:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmisconnectionexception-from-session-getting-objectbypath/m-p/111727#M31181</guid>
      <dc:creator>SG</dc:creator>
      <dc:date>2020-07-04T06:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: CmisConnectionException - from Session getting objectByPath</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmisconnectionexception-from-session-getting-objectbypath/m-p/111728#M31182</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/80648"&gt;@SG&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Is the Alfresco licence valid?&lt;/P&gt;
&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 09:10:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmisconnectionexception-from-session-getting-objectbypath/m-p/111728#M31182</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-07-06T09:10:05Z</dc:date>
    </item>
  </channel>
</rss>

