<?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: Ticket could not be found when calling callback handler in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84807#M57127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In order to use Alfresco Web Services you MUST establish a valid session with the repository (which will return a ticket). See the "Starting a Session" section in this &lt;A href="http://wiki.alfresco.com/wiki/Web_Service_Samples_for_Java" rel="nofollow noopener noreferrer"&gt;link&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;That's all I could think of (without having seen your code). Maybe you can get more help if you post the code that heads to that exception…&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Enrique&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; suddenly&amp;nbsp; we got the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In random way it gives us error and (i.e.) fulltext search doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following operation may works or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We surely pass the right ticket, and we check it via rest call every time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Login always work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem always raise during all other operations:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fulltext search,getStoreRef, delete, insert, create,update.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our logic is quite simple:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A webapp, we always call webservice getStoreRef() method, passing ticket as password.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It may crash or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If we re-authenticate every time before getStoreRef everything works ok, but we create a lot of ticket for a single session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fact we can't really understand is why&amp;nbsp; if we pass the same ticket the following operation it may work as it's not a ticket problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help us, it's a lot of time we are looking for a solution&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pietro&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2009 15:17:03 GMT</pubDate>
    <dc:creator>pietro</dc:creator>
    <dc:date>2009-07-27T15:17:03Z</dc:date>
    <item>
      <title>Ticket could not be found when calling callback handler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84804#M57124</link>
      <description>Caused by: org.alfresco.webservice.util.WebServiceException: Ticket could not be found when calling callback handler.What does it means?Thanks!</description>
      <pubDate>Mon, 02 Jul 2007 07:32:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84804#M57124</guid>
      <dc:creator>amolina</dc:creator>
      <dc:date>2007-07-02T07:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket could not be found when calling callback handler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84805#M57125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In order to use Alfresco Web Services you MUST establish a valid session with the repository (which will return a ticket). See the "Starting a Session" section in this &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Service_Samples_for_Java" rel="nofollow noopener noreferrer"&gt;link&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's all I could think of (without having seen your code). Maybe you can get more help if you post the code that heads to that exception…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enrique&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 13:30:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84805#M57125</guid>
      <dc:creator>doblek</dc:creator>
      <dc:date>2007-07-03T13:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket could not be found when calling callback handler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84806#M57126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is possible to get ticket issues when using clustering and the caching is not configured correctly. See the wiki docs if you are using clustering.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 15:57:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84806#M57126</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-07-06T15:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket could not be found when calling callback handler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84807#M57127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In order to use Alfresco Web Services you MUST establish a valid session with the repository (which will return a ticket). See the "Starting a Session" section in this &lt;A href="http://wiki.alfresco.com/wiki/Web_Service_Samples_for_Java" rel="nofollow noopener noreferrer"&gt;link&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;That's all I could think of (without having seen your code). Maybe you can get more help if you post the code that heads to that exception…&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Enrique&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; suddenly&amp;nbsp; we got the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In random way it gives us error and (i.e.) fulltext search doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following operation may works or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We surely pass the right ticket, and we check it via rest call every time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Login always work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem always raise during all other operations:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fulltext search,getStoreRef, delete, insert, create,update.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our logic is quite simple:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A webapp, we always call webservice getStoreRef() method, passing ticket as password.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It may crash or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If we re-authenticate every time before getStoreRef everything works ok, but we create a lot of ticket for a single session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fact we can't really understand is why&amp;nbsp; if we pass the same ticket the following operation it may work as it's not a ticket problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help us, it's a lot of time we are looking for a solution&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pietro&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 15:17:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84807#M57127</guid>
      <dc:creator>pietro</dc:creator>
      <dc:date>2009-07-27T15:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket could not be found when calling callback handler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84808#M57128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know, this is an old issue - but I suddenly experience it from one moment to the other when issuing a search like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Query qt = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"app:company_home/\"");&lt;BR /&gt;try&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Node[] nodes = repositoryService.get(new Predicate(null,spacesStore, qt));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (Node node : nodes)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; results.add(getNodeAttributes(node));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return results;&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;And that worked half an hour before and since then nothing helps, not even a reboot (I am on community 3.3g under Ubuntu 10.04).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 00:03:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84808#M57128</guid>
      <dc:creator>mwildam</dc:creator>
      <dc:date>2010-08-18T00:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket could not be found when calling callback handler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84809#M57129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The line &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Node[] nodes = repositoryService.get(new Predicate(null,spacesStore, qt));&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;is the exact location where the exception occurs an I have no idea why. I start and end sessions as intended and shown in the link given earlier. And again: It worked half an hour before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The only thing I remember is that I got an update from Ubuntu repositories for OpenJDK, but Alfresco is using the Sun JRE 1.6.0_20 (as installed and configured) so I can't believe that it has something to do with that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried again with the older remote SDK (from 3.2r2) and same effect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 00:09:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84809#M57129</guid>
      <dc:creator>mwildam</dc:creator>
      <dc:date>2010-08-18T00:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket could not be found when calling callback handler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84810#M57130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is the complete stack trace:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;WSHandler: password callback failed; nested exception is: &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org.alfresco.webservice.util.WebServiceException: Ticket could not be found when calling callback handler.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trace: &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exception: org.apache.ws.security.WSSecurityException&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Message: WSHandler: password callback failed; nested exception is: &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; org.alfresco.webservice.util.WebServiceException: Ticket could not be found when calling callback handler.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.ws.security.handler.WSHandler.performCallback(WSHandler.java:736)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.ws.security.handler.WSHandler.readPwViaCallbackClass(WSHandler.java:712)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.ws.security.handler.WSHandler.getPassword(WSHandler.java:670)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.ws.security.action.UsernameTokenAction.execute(UsernameTokenAction.java:35)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:197)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.axis.client.Call.invokeEngine(Call.java:2784)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.axis.client.Call.invoke(Call.java:2767)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.axis.client.Call.invoke(Call.java:2443)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.axis.client.Call.invoke(Call.java:2366)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.axis.client.Call.invoke(Call.java:1812)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.get(RepositoryServiceSoapBindingStub.java:1078)&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 00:11:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84810#M57130</guid>
      <dc:creator>mwildam</dc:creator>
      <dc:date>2010-08-18T00:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket could not be found when calling callback handler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84811#M57131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This a problem caused by the use of ThreadLocal to store your authentication Details by Alfresco Web service API. the call for "repositoryService.get(new Predicate(null,spacesStore, qt));" is sometimes executed in different Thread than the one used to authenticate, and therefore AuthanticationUtils can't retreive the Ticket used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;WorkAround : Once authenticated store your AuthenticationDetails in the user's session, and before you call a webservice operation pass the authentication Details to AuthenticationUtils :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Authentication : &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;AuthenticationUtils.startSession("user", "password");&lt;BR /&gt;request.getSession().setAttribute("authenticationDetails", AuthenticationUtils.getAuthenticationDetails());&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;your code becomes : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;AuthenticationUtils.setAuthenticationDetails((AuthenticationDetails) req.getSession().getAttribute("authenticationDetails"));&lt;BR /&gt;Node[] nodes = repositoryService.get(new Predicate(null,spacesStore, qt));&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Might not be the best practice, but it avoids creating multiple tickets, and faster than re-Authenticating every time you use a webservice operation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 11:43:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84811#M57131</guid>
      <dc:creator>hsohaib</dc:creator>
      <dc:date>2010-08-18T11:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket could not be found when calling callback handler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84812#M57132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is req or request in your case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was assuming that if I retrieve the repositoryService from the WebServiceFactory after login, I am fine because it handles the session internally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And I don't find the getSession method anywhere.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 11:20:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84812#M57132</guid>
      <dc:creator>mwildam</dc:creator>
      <dc:date>2010-08-26T11:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket could not be found when calling callback handler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84813#M57133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the "request" is HttServletRequest in your servlet or controller, its juste for saving the authenticationDetails for later use, of course you can use a session scope bean to store it instead if you're using Spring.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I was assuming that if I retrieve the repositoryService from the WebServiceFactory after login, I am fine because it handles the session internally.&lt;BR /&gt;And I don't find the getSession method anywhere.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;That's true only if all your subsequent calls to webservice operations occurs in the same thread, which is not guaranteed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So instead of storing the ticket in ThreadLocal we are storing it now in user's session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to sum it up : when you call "AuthenticationUtils.startSession(user,pass)" , the ticket is stored in threadA, when you call a webservice operation from threadB, the API calls AuthenticationUtils to get the ticket, however there is no ticket stored in threadB and an exception is thrown.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 14:33:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84813#M57133</guid>
      <dc:creator>hsohaib</dc:creator>
      <dc:date>2010-08-27T14:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket could not be found when calling callback handler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84814#M57134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Indeed I am using several threads in my app. I am using the Alfresco Remote APIs - should I start a new session for every separate thread?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not yet understand what happens if I use AuthenticationUtils - can I get the authenticationdetails via that class for different threads? - I guess no.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 15:52:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84814#M57134</guid>
      <dc:creator>mwildam</dc:creator>
      <dc:date>2010-08-27T15:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket could not be found when calling callback handler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84815#M57135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could either : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 - start new session for for every separate thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2 - store authenticationDetails in the user's session, and use it to call the webservice (the code i provided in previous post).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3 - Modify AuthenticationUtils to store authenticationDetails in session instead of ThreadLocal, rebuild the SDK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but that depends, are you using the remote API on a web application or a standalone one ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 17:30:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84815#M57135</guid>
      <dc:creator>hsohaib</dc:creator>
      <dc:date>2010-08-27T17:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket could not be found when calling callback handler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84816#M57136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Caching the AuthenticationDetails and setting them just again using AuthenticationUtils.setAuthenticationDetails from the other thread helped.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 15:26:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84816#M57136</guid>
      <dc:creator>mwildam</dc:creator>
      <dc:date>2010-08-30T15:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket could not be found when calling callback handler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84817#M57137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not the OP so I can't set the topic to [SOLVED].&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 15:28:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ticket-could-not-be-found-when-calling-callback-handler/m-p/84817#M57137</guid>
      <dc:creator>mwildam</dc:creator>
      <dc:date>2010-08-30T15:28:11Z</dc:date>
    </item>
  </channel>
</rss>

