cancel
Showing results for 
Search instead for 
Did you mean: 

[Resolved]: Missing ticket error

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi All

I am able to upload and download files in Alfresco.
I open two browser window and I upload two diffrent different file in different different folder in Alfresco at the same time.
I am using "admin" username & password combination for both browser.
Then upload operation works for one browser only.
This problem I am facing for download also.
Question 1 : Does it mean , Alfresco creates one session per user.

Question 2 : If i create two user in Alfresco and repeat the same upload operation for two browsers at the same time.
                        Will it work?


Thanks in advance. Kindly help me.

Regards
Nishant
14 REPLIES 14

mrogers
Star Contributor
Star Contributor
Your code is not going to work on 2.1 C,  either use a more recent version of Alfresco,  use separate accounts, re-engineer your solution to only submit from one thread or back-port the fix to your version of Alfresco.

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi mrogers

1 : If I use higher version, then what i need to change means
alfresco-community-war-2.1.0–>alfresco.war OR  alfresco-community-sdk-2.1.0–>samples–>WebServiceSamples OR both.

2 :Please tell me If we use higher version of alfresco-community-sdk–>samples–>WebServiceSamples, then also can we  use this code or we need to write the other code according to that version


Please guide me which version of combination I need to use.

Regards
Nishant

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi mrogers

Now I tested my code with alfresco-labs-sdk3stable. I downloaded this from http://dev.alfresco.com/downloads/nightly/dist/ URL.

Now also i am facing the concurrency issue. I replaced all the jar files in my application\lib  with jar files located under server and remote folder inside alfresco-labs-sdk3stable.

I didn't copy jars in my application\lib from located  under server/dependency
                                                                                                                      /abdera
                                                                                                                      /commons
                                                                                                                      /devenv
                                                                                                                      /fop
                                                                                                                      /jbpm
                                                                                                                      /jgroups
                                                                                                                      /jibx
                                                                                                                      /jmagick
                                                                                                                      /one-jar
                                                                                                                      /openoffice
                                                                                                                      /xalan-2.7.0 folders.



I have following doubts–

1: Is it also required to upgrade Alfresco server(alfresco-community-war-2.1.0) to alfresco-community-war-3 ?

2: Is it mandatory to use same version for alfresco-labs-sdk and alfresco-community-war?



I would very much appreciate any help or comment. Please help me.

Regards
Nishant

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi mrogers

Now I am not getting Missing ticket error. Yes you were right there was known issue (concurrency issue) with alfresco 2.1 .
I tried with alfresco 3.0 also but It doesn't support to PostgreSQL database until patch 1. Currently patches are not available on Alfresco site.For all Please check this url http://wiki.alfresco.com/wiki/Alfresco_Labs_3_Stable_Release_Notes

Now I downloaded alfresco 2.9.0B . Hardly I got the download link for alfresco 2.9.0B. For all Please download alfresco 2.9.0B from this url http://mirror.optus.net/sourceforge/a/al/alfresco/  .

I faced lot of problem in deployment also (http://forums.alfresco.com/en/viewtopic.php?f=9&t=16791). Finally I achieved this.

You are the real hero for this communication. Thanks for the help. Smiley Very Happy

Thanks & Regards
Nishant

sisao
Champ in-the-making
Champ in-the-making
Assuming that the tickets within the same session are overwritten while calling "AuthenticationUtils.startSession(name_alfresco,password_alfresco)" multiple times there is no need to take care of this as long as you login using differents users from differents machines.
Sometime i have to overwrite the ticket in order to refresh the session several times before even calling the endSession() method, this may happen while handling hyperlinks to nodes stored in alfresco.
A single user may rewrite the ticket even 100 times per session without any particular issue imo…problems will occure if the tickets wont get overwritten  Smiley Very Happy.