cancel
Showing results for 
Search instead for 
Did you mean: 

Ticket could not be found when calling callback handler

amolina
Champ in-the-making
Champ in-the-making
Caused by: org.alfresco.webservice.util.WebServiceException: Ticket could not be found when calling callback handler.

What does it means?

Thanks!
13 REPLIES 13

mwildam
Champ in-the-making
Champ in-the-making
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?
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.

hsohaib
Champ on-the-rise
Champ on-the-rise
You could either :
1 - start new session for for every separate thread.
2 - store authenticationDetails in the user's session, and use it to call the webservice (the code i provided in previous post).
3 - Modify AuthenticationUtils to store authenticationDetails in session instead of ThreadLocal, rebuild the SDK.

but that depends, are you using the remote API on a web application or a standalone one ?

mwildam
Champ in-the-making
Champ in-the-making
Thank you very much!
Caching the AuthenticationDetails and setting them just again using AuthenticationUtils.setAuthenticationDetails from the other thread helped.

mwildam
Champ in-the-making
Champ in-the-making
I am not the OP so I can't set the topic to [SOLVED].