<?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 Re: How to getProperties of a Document with OpenCmis in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-getproperties-of-a-document-with-opencmis/m-p/297663#M250793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using 5.0.d, so do not know if this helps…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see a slight difference in my code. It works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I remember getting the same error. Now I could not say how it is gone. Sorry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like the combination of these - 1. the URL, 2. the opencmis libraries (versions) and 3. the SessionParameters used on the SessionFactory - matters a lot. They are very sensitive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code (that works for me)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Map properties = new HashMap();&lt;BR /&gt;properties.put(SessionParameter.USER, user);&lt;BR /&gt;properties.put(SessionParameter.PASSWORD, password);&lt;BR /&gt;properties.put(SessionParameter.ATOMPUB_URL, "&lt;A _jive_internal="true" href="https://community.alfresco.com/{host}:{port}/alfresco/api/-default-/public/cmis/versions/1.1/atom" rel="nofollow noopener noreferrer"&gt;http://{host}:{port}/alfresco/api/-default-/public/cmis/versions/1.1/atom&lt;/A&gt;");&lt;BR /&gt;properties.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());&lt;BR /&gt;SessionFactory factory = SessionFactoryImpl.newInstance();&lt;BR /&gt;List&amp;lt;Repository&amp;gt; repositories = factory.getRepositories(properties);&lt;BR /&gt;Respository cmisRepository = repositories.get(0);&lt;BR /&gt;&lt;BR /&gt;properties.put(SessionParameter.REPOSITORY_ID, cmisRepository.getId());&lt;BR /&gt;cmisSession = factory.createSession(properties);&lt;BR /&gt;….&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use opencmis libraries&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;dependency&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;groupId&amp;gt;org.apache.chemistry.opencmis&amp;lt;/groupId&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;artifactId&amp;gt;chemistry-opencmis-client-api&amp;lt;/artifactId&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;version&amp;gt;0.13.0&amp;lt;/version&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/dependency&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;dependency&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;groupId&amp;gt;org.apache.chemistry.opencmis&amp;lt;/groupId&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;artifactId&amp;gt;chemistry-opencmis-client-impl&amp;lt;/artifactId&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;version&amp;gt;0.13.0&amp;lt;/version&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/dependency&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please post the answer when you figure out the exact issue or any more details…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 May 2016 13:10:00 GMT</pubDate>
    <dc:creator>sepgs2004</dc:creator>
    <dc:date>2016-05-27T13:10:00Z</dc:date>
    <item>
      <title>How to getProperties of a Document with OpenCmis</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-getproperties-of-a-document-with-opencmis/m-p/297662#M250792</link>
      <description>HiI have some problem to get all the properties of a Document with OpenCmis and Atom BindingThis is our environment Alfresco Version: Community - 5.1.0Pom:&amp;lt;dependency&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;groupId&amp;gt;org.apache.chemistry.opencmis&amp;lt;/groupId&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;artifactId&amp;gt;chemistry-opencmis-client-api&amp;lt;/artifactI</description>
      <pubDate>Thu, 19 May 2016 11:47:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-getproperties-of-a-document-with-opencmis/m-p/297662#M250792</guid>
      <dc:creator>moveax0</dc:creator>
      <dc:date>2016-05-19T11:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to getProperties of a Document with OpenCmis</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-getproperties-of-a-document-with-opencmis/m-p/297663#M250793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using 5.0.d, so do not know if this helps…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see a slight difference in my code. It works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I remember getting the same error. Now I could not say how it is gone. Sorry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like the combination of these - 1. the URL, 2. the opencmis libraries (versions) and 3. the SessionParameters used on the SessionFactory - matters a lot. They are very sensitive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code (that works for me)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Map properties = new HashMap();&lt;BR /&gt;properties.put(SessionParameter.USER, user);&lt;BR /&gt;properties.put(SessionParameter.PASSWORD, password);&lt;BR /&gt;properties.put(SessionParameter.ATOMPUB_URL, "&lt;A _jive_internal="true" href="https://community.alfresco.com/{host}:{port}/alfresco/api/-default-/public/cmis/versions/1.1/atom" rel="nofollow noopener noreferrer"&gt;http://{host}:{port}/alfresco/api/-default-/public/cmis/versions/1.1/atom&lt;/A&gt;");&lt;BR /&gt;properties.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());&lt;BR /&gt;SessionFactory factory = SessionFactoryImpl.newInstance();&lt;BR /&gt;List&amp;lt;Repository&amp;gt; repositories = factory.getRepositories(properties);&lt;BR /&gt;Respository cmisRepository = repositories.get(0);&lt;BR /&gt;&lt;BR /&gt;properties.put(SessionParameter.REPOSITORY_ID, cmisRepository.getId());&lt;BR /&gt;cmisSession = factory.createSession(properties);&lt;BR /&gt;….&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use opencmis libraries&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;dependency&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;groupId&amp;gt;org.apache.chemistry.opencmis&amp;lt;/groupId&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;artifactId&amp;gt;chemistry-opencmis-client-api&amp;lt;/artifactId&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;version&amp;gt;0.13.0&amp;lt;/version&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/dependency&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;dependency&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;groupId&amp;gt;org.apache.chemistry.opencmis&amp;lt;/groupId&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;artifactId&amp;gt;chemistry-opencmis-client-impl&amp;lt;/artifactId&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;version&amp;gt;0.13.0&amp;lt;/version&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/dependency&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please post the answer when you figure out the exact issue or any more details…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 13:10:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-getproperties-of-a-document-with-opencmis/m-p/297663#M250793</guid>
      <dc:creator>sepgs2004</dc:creator>
      <dc:date>2016-05-27T13:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to getProperties of a Document with OpenCmis</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-getproperties-of-a-document-with-opencmis/m-p/297664#M250794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have solved. It was a Pom configuration problem. Alfresco 5.0d works well with the library that we have used&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 15:06:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-getproperties-of-a-document-with-opencmis/m-p/297664#M250794</guid>
      <dc:creator>moveax0</dc:creator>
      <dc:date>2016-05-30T15:06:33Z</dc:date>
    </item>
  </channel>
</rss>

