<?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 Repository connection using Apache Chemistry APIs in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/repository-connection-using-apache-chemistry-apis/m-p/294552#M247682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem. I am trying to connect Alfresco v3.2 with Apache Chemistry 0.10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the following code that found in another forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;System.out.println("Step-1");&lt;BR /&gt;SessionFactory factory = SessionFactoryImpl.newInstance();&lt;BR /&gt;System.out.println("Step-2");&lt;BR /&gt;Map&amp;lt;String, String&amp;gt; parameter = new HashMap&amp;lt;String, String&amp;gt;();&lt;BR /&gt;System.out.println("Step-3");&lt;BR /&gt;parameter.put(SessionParameter.USER, "username");&lt;BR /&gt;System.out.println("Step-4");&lt;BR /&gt;parameter.put(SessionParameter.PASSWORD, "password");&lt;BR /&gt;System.out.println("Step-5");&lt;BR /&gt;parameter.put(SessionParameter.ATOMPUB_URL, "&lt;A href="http://localhost/alfresco/s/api/cmis" rel="nofollow noopener noreferrer"&gt;http://localhost/alfresco/s/api/cmis&lt;/A&gt;");&lt;BR /&gt;System.out.println("Step-6");&lt;BR /&gt;parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());&lt;BR /&gt;System.out.println("Step-7");&lt;BR /&gt;parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");&lt;BR /&gt;System.out.println("Step-8");&lt;BR /&gt;List&amp;lt;Repository&amp;gt; repositories = factory.getRepositories(parameter);&lt;BR /&gt;System.out.println("Step-9");&lt;BR /&gt;Session session = repositories.get(0).createSession();&lt;BR /&gt;System.out.println("Step-10");&lt;BR /&gt;System.out.println("Connected to repository:" + repositories.get(0).getId());&lt;BR /&gt;Folder root = session.getRootFolder();&lt;BR /&gt;System.out.println("Step-11");&lt;BR /&gt;for (Tree&amp;lt;FileableCmisObject&amp;gt; item : root.getDescendants(1)) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("Itemname=" + item.getItem().getName());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("Itemtype=" + item.getItem().getType().getDisplayName());&lt;BR /&gt;}&lt;BR /&gt;System.out.println("Reached End");&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;/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;When I run the project in the console of netbeans show the follow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;session cmis&lt;BR /&gt;Step-1&lt;BR /&gt;Step-2&lt;BR /&gt;Step-3&lt;BR /&gt;Step-4&lt;BR /&gt;Step-5&lt;BR /&gt;Step-6&lt;BR /&gt;Step-7&lt;BR /&gt;Step-8&lt;BR /&gt;Step-9&lt;BR /&gt;Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.745 sec &amp;lt;&amp;lt;&amp;lt; FAILURE!&lt;BR /&gt;testSessionCMIS(ec.com.linbrox.alfresco.AlfrescoUtilsV3Test)&amp;nbsp; Time elapsed: 1.684 sec&amp;nbsp; &amp;lt;&amp;lt;&amp;lt; ERROR!&lt;BR /&gt;java.lang.IndexOutOfBoundsException: Index: 0, Size: 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.util.ArrayList.rangeCheck(ArrayList.java:635)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.util.ArrayList.get(ArrayList.java:411)&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;I don't know to do.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jan 2014 22:32:42 GMT</pubDate>
    <dc:creator>zepolar</dc:creator>
    <dc:date>2014-01-23T22:32:42Z</dc:date>
    <item>
      <title>Repository connection using Apache Chemistry APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/repository-connection-using-apache-chemistry-apis/m-p/294552#M247682</link>
      <description>Hi everybody!!!I have a problem. I am trying to connect Alfresco v3.2 with Apache Chemistry 0.10.I am using the following code that found in another forum.System.out.println("Step-1");SessionFactory factory = SessionFactoryImpl.newInstance();System.out.println("Step-2");Map&amp;lt;String, String&amp;gt; par</description>
      <pubDate>Thu, 23 Jan 2014 22:32:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/repository-connection-using-apache-chemistry-apis/m-p/294552#M247682</guid>
      <dc:creator>zepolar</dc:creator>
      <dc:date>2014-01-23T22:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Repository connection using Apache Chemistry APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/repository-connection-using-apache-chemistry-apis/m-p/294553#M247683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems there is nothing wrong with your code,Maybe it is a bug of your alfresco version,you can try a higher version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And you'd better&amp;nbsp; use url &lt;/SPAN&gt;&lt;A href="http://localhost/alfresco/cmisatom" rel="nofollow noopener noreferrer"&gt;http://localhost/alfresco/cmisatom&lt;/A&gt;&lt;SPAN&gt; instead of &lt;/SPAN&gt;&lt;A href="http://localhost/alfresco/s/api/cmis.Since" rel="nofollow noopener noreferrer"&gt;http://localhost/alfresco/s/api/cmis.Since&lt;/A&gt;&lt;SPAN&gt; 3.x(I can't remember the exact version number) url &lt;/SPAN&gt;&lt;A href="http://localhost/alfresco/s/api/cmis" rel="nofollow noopener noreferrer"&gt;http://localhost/alfresco/s/api/cmis&lt;/A&gt;&lt;SPAN&gt; is deprecated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 23:55:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/repository-connection-using-apache-chemistry-apis/m-p/294553#M247683</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-01-23T23:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Repository connection using Apache Chemistry APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/repository-connection-using-apache-chemistry-apis/m-p/294554#M247684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks kaynezhang for your answer. I installed the Alfresco 3.4 and the code works very good. I will think, the problem is Alfresco 3.2.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 22:07:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/repository-connection-using-apache-chemistry-apis/m-p/294554#M247684</guid>
      <dc:creator>zepolar</dc:creator>
      <dc:date>2014-01-24T22:07:07Z</dc:date>
    </item>
  </channel>
</rss>

