<?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: Session unexpectedly destroyed in Alfresco 4.2.c in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278453#M231583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've returned after a long time to this (still) unresolved issue. The only thing I know is that somehow unexpectedly new HTTP session is created, losing old one and ticket, which "kicks out" user from the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One log line:&lt;/P&gt;&lt;P&gt;10:49:49,524 DEBUG [web.app.ContextListener] HTTP session created: 4B74AC672E5809472A5D6E91BA2D8B2A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For no known reason, new session is created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2017 09:40:12 GMT</pubDate>
    <dc:creator>joko71</dc:creator>
    <dc:date>2017-01-20T09:40:12Z</dc:date>
    <item>
      <title>Session unexpectedly destroyed in Alfresco 4.2.c</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278449#M231579</link>
      <description>Hi all!We're now in process of migration from 3.2 to 4.2.c Alfresco Community version. So far we've done it in a copy of production environment to weed out possible bugs.The most unpleasant bug is when session is unexpectedly destroyed. We've been so far unable to find out the cause, but it seems th</description>
      <pubDate>Fri, 06 Dec 2013 07:37:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278449#M231579</guid>
      <dc:creator>joko71</dc:creator>
      <dc:date>2013-12-06T07:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Session unexpectedly destroyed in Alfresco 4.2.c</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278450#M231580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the meantime we've migrated to the new 4.2.c Alfresco Community version. Beforementioned behavior is still present, our users have difficulty because their (Alfresco) session terminates unexpectedly and abruptly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After long investigation, we think we've found finally the cause of this strange behaviour. The problem is in this method in authentication service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;AlfrescoServices.getAuthenticationService().getCurrentTicket();&lt;SPAN class="line-numbers-rows"&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;Ticket is created with getNewTicket() method, and retrieved by getCurrentTicket() if needed later. The problem is that getCurrentTicket() ticket method very often "steals" ticket from some other user and gives it to current user. That's why the other user sees his ticket invalidated and session is terminated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our solution to the problem is to create ticket with getNewTicket() method, and store it and retrieve it by our code, bypassing erroneous getCurrentTicket() method.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 07:54:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278450#M231580</guid>
      <dc:creator>joko71</dc:creator>
      <dc:date>2014-02-07T07:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Session unexpectedly destroyed in Alfresco 4.2.c</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278451#M231581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Before said assumption that session or ticket gets stolen by other users is incorrect, due to errors in our log, which led to confusion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We've discovered that session invalidation problem is under control if we restart production every night. This solution helps, but it's not the final solution. It seems that somehow Alfresco after some time is left without resources needed for new sessions, then this problem arises, sessions for users get terminated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestion, similar experiences?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 09:23:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278451#M231581</guid>
      <dc:creator>joko71</dc:creator>
      <dc:date>2014-03-18T09:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Session unexpectedly destroyed in Alfresco 4.2.c</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278452#M231582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;we just encountered a similar issue here. We also set "authentication.ticket.useSingleTicketPerUser=false" to avoid side effects from ticket creations - without success. Did someone already find the needle killing the session after some time?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 15:25:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278452#M231582</guid>
      <dc:creator>heiko_robert</dc:creator>
      <dc:date>2014-11-26T15:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Session unexpectedly destroyed in Alfresco 4.2.c</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278453#M231583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've returned after a long time to this (still) unresolved issue. The only thing I know is that somehow unexpectedly new HTTP session is created, losing old one and ticket, which "kicks out" user from the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One log line:&lt;/P&gt;&lt;P&gt;10:49:49,524 DEBUG [web.app.ContextListener] HTTP session created: 4B74AC672E5809472A5D6E91BA2D8B2A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For no known reason, new session is created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 09:40:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278453#M231583</guid>
      <dc:creator>joko71</dc:creator>
      <dc:date>2017-01-20T09:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Session unexpectedly destroyed in Alfresco 4.2.c</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278454#M231584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've overrided the original ContextListener class to get calls stack trace, to catch what calls and initiates the session destruction, and here it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;09:49:02,780 INFO [STDOUT] 09:49:02,779 INFO [test.session.MyWebAppContextListener] *******************sessionDestroyed - STACK TRACE BEGIN *******************&lt;BR /&gt;09:49:02,782 INFO [STDOUT] 09:49:02,782 INFO [test.session.MyWebAppContextListener] [java.lang.Thread.getStackTrace(Thread.java:1567),&lt;BR /&gt; com.inkubator.common.server.test.session.MyWebAppContextListener.logIt(MyWebAppContextListener.java:41),&lt;BR /&gt; com.inkubator.common.server.test.session.MyWebAppContextListener.sessionDestroyed(MyWebAppContextListener.java:35),&lt;BR /&gt; org.apache.catalina.session.StandardSession.expire(StandardSession.java:702),&lt;BR /&gt; org.apache.catalina.session.StandardSession.expire(StandardSession.java:660),&lt;BR /&gt; org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1115),&lt;BR /&gt; org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:150),&lt;BR /&gt; org.alfresco.web.app.servlet.AuthenticationHelper.authenticate(AuthenticationHelper.java:305),&lt;BR /&gt; org.alfresco.web.app.servlet.BaseServlet.servletAuthenticate(BaseServlet.java:149),&lt;BR /&gt; org.alfresco.web.app.servlet.BaseServlet.servletAuthenticate(BaseServlet.java:129),&lt;BR /&gt; org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:129),&lt;BR /&gt; javax.servlet.http.HttpServlet.service(HttpServlet.java:617),&lt;BR /&gt; javax.servlet.http.HttpServlet.service(HttpServlet.java:717),&lt;BR /&gt; org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290),&lt;BR /&gt; org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206),&lt;BR /&gt; org.togglz.servlet.TogglzFilter.doFilter(TogglzFilter.java:100),&lt;BR /&gt; org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235),&lt;BR /&gt; org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206),&lt;BR /&gt; com.inkubator.common.server.filters.GWTCacheControlFilter.doFilter(GWTCacheControlFilter.java:57),&lt;BR /&gt; org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235),&lt;BR /&gt; org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206),&lt;BR /&gt; org.alfresco.repo.web.filter.beans.NullFilter.doFilter(NullFilter.java:68),&lt;BR /&gt; sun.reflect.GeneratedMethodAccessor762.invoke(Unknown Source),&lt;BR /&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43),&lt;BR /&gt; java.lang.reflect.Method.invoke(Method.java:601),&lt;BR /&gt; org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:116),&lt;BR /&gt; org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172),&lt;BR /&gt; org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202),&lt;BR /&gt; $Proxy649.doFilter(Unknown Source),&lt;BR /&gt; org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82),&lt;BR /&gt; org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235),&lt;BR /&gt; org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206),&lt;BR /&gt; org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61),&lt;BR /&gt; org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235),&lt;BR /&gt; org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206),&lt;BR /&gt; org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96),&lt;BR /&gt; org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235),&lt;BR /&gt; org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206),&lt;BR /&gt; org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235),&lt;BR /&gt; org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191),&lt;BR /&gt; org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190),&lt;BR /&gt; org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433),&lt;BR /&gt; org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92),&lt;BR /&gt; org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126),&lt;BR /&gt; org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70),&lt;BR /&gt; org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127),&lt;BR /&gt; org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102),&lt;BR /&gt; org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158),&lt;BR /&gt; org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109),&lt;BR /&gt; org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330),&lt;BR /&gt; org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829),&lt;BR /&gt; org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598),&lt;BR /&gt; org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447),&lt;BR /&gt; java.lang.Thread.run(Thread.java:722)]&lt;BR /&gt;09:49:02,797 INFO [STDOUT] 09:49:02,797 INFO [test.session.MyWebAppContextListener] *******************sessionDestroyed - STACK TRACE END *******************&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 09:02:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278454#M231584</guid>
      <dc:creator>joko71</dc:creator>
      <dc:date>2017-01-23T09:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Session unexpectedly destroyed in Alfresco 4.2.c</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278455#M231585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this have any connection with this bug?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://issues.alfresco.com/jira/browse/ALF-13194" title="https://issues.alfresco.com/jira/browse/ALF-13194" rel="nofollow noopener noreferrer"&gt;[ALF-13194] Can't log in to Share 4.0 with only external authentication in the chain because of call to restrictions API…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 09:14:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278455#M231585</guid>
      <dc:creator>joko71</dc:creator>
      <dc:date>2017-01-23T09:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Session unexpectedly destroyed in Alfresco 4.2.c</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278456#M231586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems this issue is connected to content downloading. I suspect that sometimes &amp;amp;somehow content downloading invalidates the ticket and session gets destroyed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the log:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2017-01-25 09:03:39,137 INFO &amp;nbsp;[STDOUT] (xxxxxxxx:http-0.0.0.0-8080-12) 09:03:39,137 DEBUG [server.utils.XMLUtils] URL for ustrojstvo is /alfresco/download/direct/workspace/SpacesStore/b40abc1d-b056-42bf-be2a-dbe3e693bb32/b40abc1d-b056-42bf-be2a-dbe3e693bb32.xml?property={&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}content&amp;amp;ticket=TICKET_bdcee9bf5948597f4beb3ebbd2f6f8f8499dd2de&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 08:23:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278456#M231586</guid>
      <dc:creator>joko71</dc:creator>
      <dc:date>2017-01-25T08:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Session unexpectedly destroyed in Alfresco 4.2.c</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278457#M231587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's me, again, with no progress. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're still having problems with unexpected ending sessions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've found some situations when session ending can be observed more often:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Servlet or webscript call. Often happens that logged in user loses the session&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Recently we added a module that imports documents from external systems. This module was working 24/7, and we've noticed that session losing increased considerably. We then modified the import module to work only outside working hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible that Alfresco get confused if number of threads increases, and sessions and ticket get lost?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 08:30:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278457#M231587</guid>
      <dc:creator>joko71</dc:creator>
      <dc:date>2017-06-12T08:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Session unexpectedly destroyed in Alfresco 4.2.c</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278458#M231588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've finally solved this one. The problem was server side object instancing which was improper in web environment, so it happened that different users used same objects and were kicking each other out of the sessions. After a bit of code change, the problem was gone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread can be closed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 09:41:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278458#M231588</guid>
      <dc:creator>joko71</dc:creator>
      <dc:date>2018-06-12T09:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Session unexpectedly destroyed in Alfresco 4.2.c</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278459#M231589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please elaborate on the solution of the problem? What kind of objects were wrongly instantiated and how this led to the tickets being invalidated? We are having the same issue and we are very puzzled by the mystery of it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 11:31:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/session-unexpectedly-destroyed-in-alfresco-4-2-c/m-p/278459#M231589</guid>
      <dc:creator>bayat</dc:creator>
      <dc:date>2019-06-18T11:31:52Z</dc:date>
    </item>
  </channel>
</rss>

