bwiner
Posts:
1
From:
Carleton University
Registered:
Feb 3, 2010
|
|
Survey locked by import process
Posted:
Feb 3, 2010 10:45 PM
|
|
Hei,
We created a survey using the plugin API (XMLHandler) but the newly created survey is locked and cannot be unlocked within opinio (not even by the admin user). The only way to unlock the survey is by restarting tomcat.
Here is an example of what we tried:
User adminUser = UserManager.getUser(PluginUtil.getSystemUser(), /* admin */ 1 ); long surveyId = XMLHandler.createSurvey( adminUser, xmlfile, destination ); SurveyManager.updateSurvey( adminUser, surveyId );
We also tried to release the lock explicitly but and exception is raised indicating that the current user (admin) cannot unlock the survey because it has been locked by another user. However, there is only one user in the system.
What are we missing???
Any help would be very much appreciated.
Takk Bruce
|
|
|
|
|