<?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: Alfresco with CMIS 1.0 some time error Resource leaked in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-with-cmis-1-0-some-time-error-resource-leaked/m-p/83302#M25513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;This is my code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private void configureSessionFactory()&lt;BR /&gt; {&lt;BR /&gt; if (sessionFactory == null)&lt;BR /&gt; {&lt;BR /&gt; this.parameters = new HashMap&amp;lt;String, String&amp;gt;();&lt;/P&gt;&lt;P&gt;// user credentials&lt;BR /&gt; parameters.put(SessionParameter.USER, username);&lt;BR /&gt; parameters.put(SessionParameter.PASSWORD, password);&lt;/P&gt;&lt;P&gt;// connection settings&lt;BR /&gt; parameters.put(SessionParameter.ATOMPUB_URL, repoUrl);&lt;BR /&gt; parameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());&lt;/P&gt;&lt;P&gt;// Create session factory&lt;BR /&gt; this.sessionFactory = (SessionFactoryImpl) SessionFactoryImpl.newInstance();&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; private void getRepository()&lt;BR /&gt; {&lt;BR /&gt; configureSessionFactory();&lt;BR /&gt; List&amp;lt;Repository&amp;gt; repositories = sessionFactory.getRepositories(parameters);&lt;BR /&gt; this.repository = repositories.get(0);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public Session createSession() throws Exception&lt;BR /&gt; {&lt;BR /&gt; log.debug("try to create session");&lt;BR /&gt; if (repository == null)&lt;BR /&gt; {&lt;BR /&gt; throw new RepositoryUnavailableException(lastException);&lt;BR /&gt; }&lt;BR /&gt; return repository.createSession();&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jul 2019 10:03:35 GMT</pubDate>
    <dc:creator>phong_van</dc:creator>
    <dc:date>2019-07-23T10:03:35Z</dc:date>
    <item>
      <title>Alfresco with CMIS 1.0 some time error Resource leaked</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-with-cmis-1-0-some-time-error-resource-leaked/m-p/83300#M25511</link>
      <description>Hi everyone,I'm using Alfresco 5.2 - community version with cmis on Java 8. Recently, on log file some time miss error:http client request: GET http://ecm.mycompany/alfresco/api/-default-/public/cmis/versions/1.1/atom?repositoryId=-default-spring controller: com.mycompany.ecm.restapi.LosDocRestApi.q</description>
      <pubDate>Tue, 23 Jul 2019 04:50:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-with-cmis-1-0-some-time-error-resource-leaked/m-p/83300#M25511</guid>
      <dc:creator>phong_van</dc:creator>
      <dc:date>2019-07-23T04:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco with CMIS 1.0 some time error Resource leaked</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-with-cmis-1-0-some-time-error-resource-leaked/m-p/83301#M25512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you including Basic Auth credentials in your invocation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 09:19:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-with-cmis-1-0-some-time-error-resource-leaked/m-p/83301#M25512</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2019-07-23T09:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco with CMIS 1.0 some time error Resource leaked</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-with-cmis-1-0-some-time-error-resource-leaked/m-p/83302#M25513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;This is my code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private void configureSessionFactory()&lt;BR /&gt; {&lt;BR /&gt; if (sessionFactory == null)&lt;BR /&gt; {&lt;BR /&gt; this.parameters = new HashMap&amp;lt;String, String&amp;gt;();&lt;/P&gt;&lt;P&gt;// user credentials&lt;BR /&gt; parameters.put(SessionParameter.USER, username);&lt;BR /&gt; parameters.put(SessionParameter.PASSWORD, password);&lt;/P&gt;&lt;P&gt;// connection settings&lt;BR /&gt; parameters.put(SessionParameter.ATOMPUB_URL, repoUrl);&lt;BR /&gt; parameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());&lt;/P&gt;&lt;P&gt;// Create session factory&lt;BR /&gt; this.sessionFactory = (SessionFactoryImpl) SessionFactoryImpl.newInstance();&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; private void getRepository()&lt;BR /&gt; {&lt;BR /&gt; configureSessionFactory();&lt;BR /&gt; List&amp;lt;Repository&amp;gt; repositories = sessionFactory.getRepositories(parameters);&lt;BR /&gt; this.repository = repositories.get(0);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public Session createSession() throws Exception&lt;BR /&gt; {&lt;BR /&gt; log.debug("try to create session");&lt;BR /&gt; if (repository == null)&lt;BR /&gt; {&lt;BR /&gt; throw new RepositoryUnavailableException(lastException);&lt;BR /&gt; }&lt;BR /&gt; return repository.createSession();&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 10:03:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-with-cmis-1-0-some-time-error-resource-leaked/m-p/83302#M25513</guid>
      <dc:creator>phong_van</dc:creator>
      <dc:date>2019-07-23T10:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco with CMIS 1.0 some time error Resource leaked</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-with-cmis-1-0-some-time-error-resource-leaked/m-p/83303#M25514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try to create the session just after getting the repository reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/aborroy/cmis-associations-alfresco/blob/master/cmis-client/src/main/java/org/alfresco/cmis/assoc/service/CmisService.java#L71" title="https://github.com/aborroy/cmis-associations-alfresco/blob/master/cmis-client/src/main/java/org/alfresco/cmis/assoc/service/CmisService.java#L71" rel="nofollow noopener noreferrer"&gt;cmis-associations-alfresco/CmisService.java at master · aborroy/cmis-associations-alfresco · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 10:45:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-with-cmis-1-0-some-time-error-resource-leaked/m-p/83303#M25514</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2019-07-23T10:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco with CMIS 1.0 some time error Resource leaked</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-with-cmis-1-0-some-time-error-resource-leaked/m-p/83304#M25515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Angel Borroy,&lt;/P&gt;&lt;P&gt;Thanks for your reply. You mean that I have to change my code from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; parameters.put(SessionParameter.ATOMPUB_URL, atompubUrl);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; parameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;parameters.put(SessionParameter.BROWSER_URL, browserUrl);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; parameters.put(SessionParameter.BINDING_TYPE, BindingType.BROWSER.value());&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;And, other question, which binding type (BROWSER,&amp;nbsp;ATOMPUB) is better about performance?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Once again, many thanks your help.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 07:27:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-with-cmis-1-0-some-time-error-resource-leaked/m-p/83304#M25515</guid>
      <dc:creator>phong_van</dc:creator>
      <dc:date>2019-07-24T07:27:55Z</dc:date>
    </item>
  </channel>
</rss>

