<?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: Problem with multiple sessions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-multiple-sessions/m-p/147350#M102871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This issue has been resolved.&amp;nbsp; I'm not sure exactly which release the fix was initially deployed to, but I have installed 2.9.0B from the nightly build page, and the problem is solved.&amp;nbsp; Alfresco always returns a new ticket number when startSession() is invoked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/browse/AR-1623" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AR-1623&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Keep in mind that AuthenticationUtils.startSession() caches the ticket number in a threadLocal, and doesn't check for existing sessions, so calling startSession() twice in the same thread will overwrite the ticket, and the second call to endSession() will result in an error because the first ticket is lost.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2008 05:41:24 GMT</pubDate>
    <dc:creator>stevewickii</dc:creator>
    <dc:date>2008-01-23T05:41:24Z</dc:date>
    <item>
      <title>Problem with multiple sessions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-multiple-sessions/m-p/147346#M102867</link>
      <description>I am having trouble with the alfresco session getting closed to early, and subsequent webservice requests throwing exceptions like this "AuthenticationFault: Missing ticket for TICKET_2013a944ec66018941e2be80c8e484074654250d".I have found that two calls to AuthenticationUtils.startSession with the s</description>
      <pubDate>Thu, 17 Jan 2008 23:21:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-multiple-sessions/m-p/147346#M102867</guid>
      <dc:creator>stevewickii</dc:creator>
      <dc:date>2008-01-17T23:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple sessions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-multiple-sessions/m-p/147347#M102868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After several requests to our website (and several startSession() calls to alfresco) our website stops displaying alfresco content.&amp;nbsp; The only way to fix the issue is to restart our website (not the alfresco application server).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have noticed that the alfresco forums are not very active.&amp;nbsp; Not one of my posts have every been replied to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 16:15:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-multiple-sessions/m-p/147347#M102868</guid>
      <dc:creator>stevewickii</dc:creator>
      <dc:date>2008-01-18T16:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple sessions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-multiple-sessions/m-p/147348#M102869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't believe this problem has anything to do with the Alfresco webservice client API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following JSP can be used to show that regardless of the Thread starting the session, Alfresco returns the same ticket number when two sessions start with the same username.&amp;nbsp; This is the real problem.&amp;nbsp; Alfresco should not return the same ticket number when startSession() is invoked multiple times for a single username.&amp;nbsp; Every time startSession() is invoked a new ticket should be created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Add test.jsp to your web application with the webservice API, and open the test.jsp url in two different browsers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;test.jsp sleeps for 30 seconds to give you time to open test.jsp in another browser, which will start a concurrent session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that the Thread is different but the Ticket is the same for both browsers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;test.jsp&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;%@ taglib prefix="c" uri="&lt;A href="http://java.sun.com/jsp/jstl/core" rel="nofollow noopener noreferrer"&gt;http://java.sun.com/jsp/jstl/core&lt;/A&gt;" %&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;%@page import="org.alfresco.webservice.util.AuthenticationUtils"%&amp;gt;&lt;BR /&gt;&amp;lt;pre&amp;gt;&lt;BR /&gt;Testing Alfresco Connectivity&lt;BR /&gt;&lt;BR /&gt;&amp;lt;%&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;AuthenticationUtils.startSession("website", "website");&lt;BR /&gt;%&amp;gt;&lt;BR /&gt;Started Alfresco Session&lt;BR /&gt;&lt;BR /&gt;Ticket: &amp;lt;%=AuthenticationUtils.getTicket()%&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Thread: &amp;lt;%=Thread.currentThread()%&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Sleeping 30 seconds&lt;BR /&gt;&lt;BR /&gt;&amp;lt;%&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;out.flush();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thread.currentThread().sleep(30000);&lt;BR /&gt;%&amp;gt;&lt;BR /&gt;&amp;lt;%&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;try&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AuthenticationUtils.endSession();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;catch(Exception e)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;request.setAttribute("endSessionException", e);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;%&amp;gt;&lt;BR /&gt;&amp;lt;c:choose&amp;gt;&lt;BR /&gt;&amp;lt;c:when test="${!empty endSessionException}"&amp;gt;Error Ending Alfresco Session&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;table border=1&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;${endSessionException}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;/c:when&amp;gt;&lt;BR /&gt;&amp;lt;c:otherwise&amp;gt;Closed Alfresco Session&amp;lt;/c:otherwise&amp;gt;&lt;BR /&gt;&amp;lt;/c:choose&amp;gt;&lt;BR /&gt;&amp;lt;/pre&amp;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;&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ket: TICKET_ea351ff97650d807dd9c93f1428fca28f13d7689&lt;BR /&gt;&lt;BR /&gt;Thread: Thread[http-8080-1,5,main]&lt;BR /&gt;&lt;BR /&gt;Sleeping 30 seconds&lt;BR /&gt;&lt;BR /&gt;Ended Alfresco Session&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;SPAN&gt;Invocation 2: (Concurrent to Invocation 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Testing Alfresco Connectivity&lt;BR /&gt;&lt;BR /&gt;Started Alfresco Session&lt;BR /&gt;&lt;BR /&gt;Ticket: TICKET_ea351ff97650d807dd9c93f1428fca28f13d7689&lt;BR /&gt;&lt;BR /&gt;Thread: Thread[http-8080-3,5,main]&lt;BR /&gt;&lt;BR /&gt;Sleeping 30 seconds&lt;BR /&gt;&lt;BR /&gt;Error Ending Alfresco Session&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.alfresco.webservice.util.WebServiceException: Error ending session. &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 18:09:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-multiple-sessions/m-p/147348#M102869</guid>
      <dc:creator>stevewickii</dc:creator>
      <dc:date>2008-01-18T18:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple sessions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-multiple-sessions/m-p/147349#M102870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I also have problems with sessions? Is it an alfresco bug?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 09:29:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-multiple-sessions/m-p/147349#M102870</guid>
      <dc:creator>robertoroberto</dc:creator>
      <dc:date>2008-01-22T09:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple sessions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-multiple-sessions/m-p/147350#M102871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This issue has been resolved.&amp;nbsp; I'm not sure exactly which release the fix was initially deployed to, but I have installed 2.9.0B from the nightly build page, and the problem is solved.&amp;nbsp; Alfresco always returns a new ticket number when startSession() is invoked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/browse/AR-1623" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AR-1623&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Keep in mind that AuthenticationUtils.startSession() caches the ticket number in a threadLocal, and doesn't check for existing sessions, so calling startSession() twice in the same thread will overwrite the ticket, and the second call to endSession() will result in an error because the first ticket is lost.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 05:41:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-multiple-sessions/m-p/147350#M102871</guid>
      <dc:creator>stevewickii</dc:creator>
      <dc:date>2008-01-23T05:41:24Z</dc:date>
    </item>
  </channel>
</rss>

