<?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 Error connecting to Alfresco CMIS: Unexpected document! Received: HTML document  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/error-connecting-to-alfresco-cmis-unexpected-document-received/m-p/279226#M232356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to connect to Alfresco Community 4.2.0 hosted in a Linux 64 bits server (java 1.7.0_7, encoding UTF-8) through CMIS using this properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Map&amp;lt;String, String&amp;gt; parameter = new HashMap&amp;lt;String, String&amp;gt;(); &lt;BR /&gt;parameter.put(SessionParameter.USER, "USR"); &lt;BR /&gt;parameter.put(SessionParameter.PASSWORD, "PWD"); &lt;BR /&gt;parameter.put(SessionParameter.ATOMPUB_URL, "&lt;A href="http://xxx:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom" rel="nofollow noopener noreferrer"&gt;http://xxx:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom&lt;/A&gt;"); &lt;BR /&gt;parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());&lt;BR /&gt;parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");&lt;BR /&gt;&lt;BR /&gt;SessionFactory sessionFactory = SessionFactoryImpl.newInstance();&lt;BR /&gt;&lt;BR /&gt;List&amp;lt;Repository&amp;gt; repositories = sessionFactory.getRepositories(parameter);&lt;BR /&gt;if (repositories != null &amp;amp;&amp;amp; !repositories.isEmpty()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;repo = repositories.get(0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;org.apache.chemistry.opencmis.client.api.Session session = repo.createSession();&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I'm getting this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Unexpected document! Received: HTML document&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:596)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:777)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:65)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:85)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:109)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:96)&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you try the old URL for connecting to Alfresco CMIS (/alfresco/cmisatom) you can see that the result is a xml, but if you try the new URL the result is a html page. What do I have to do to connect with the new URL and now getting this error? Is something that I have missed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2014 12:11:06 GMT</pubDate>
    <dc:creator>victorba</dc:creator>
    <dc:date>2014-12-05T12:11:06Z</dc:date>
    <item>
      <title>Error connecting to Alfresco CMIS: Unexpected document! Received: HTML document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-connecting-to-alfresco-cmis-unexpected-document-received/m-p/279226#M232356</link>
      <description>Hi, I'm trying to connect to Alfresco Community 4.2.0 hosted in a Linux 64 bits server (java 1.7.0_7, encoding UTF-8) through CMIS using this properties:Map&amp;lt;String, String&amp;gt; parameter = new HashMap&amp;lt;String, String&amp;gt;(); parameter.put(SessionParameter.USER, "USR"); parameter.put(SessionParame</description>
      <pubDate>Fri, 05 Dec 2014 12:11:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-connecting-to-alfresco-cmis-unexpected-document-received/m-p/279226#M232356</guid>
      <dc:creator>victorba</dc:creator>
      <dc:date>2014-12-05T12:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error connecting to Alfresco CMIS: Unexpected document! Received: HTML document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-connecting-to-alfresco-cmis-unexpected-document-received/m-p/279227#M232357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which specific version of Community are you using? Please be aware that CMIS 1.1 was first added for the browser binding only and AtomPub binding for CMIS 1.1 was added in subsequent releases. I actually have not checked if the latest 4.2 Community contains AtomPub for 1.1 or if it is only part of Enterprise 4.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 14:05:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-connecting-to-alfresco-cmis-unexpected-document-received/m-p/279227#M232357</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2014-12-05T14:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error connecting to Alfresco CMIS: Unexpected document! Received: HTML document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-connecting-to-alfresco-cmis-unexpected-document-received/m-p/279228#M232358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Axel, thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the Alfresco Community 4.2.c version.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Dec 2014 16:26:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-connecting-to-alfresco-cmis-unexpected-document-received/m-p/279228#M232358</guid>
      <dc:creator>victorba</dc:creator>
      <dc:date>2014-12-06T16:26:00Z</dc:date>
    </item>
  </channel>
</rss>

