Customer login  |   Contact us
Home Company Products Support Purchase
Forum Home » Survey software » Opinio plugins

Topic: Survey locked by import process
Replies: 1   Pages: 1   Last Post: Feb 1, 2011 4:29 PM by:

Back to Topic List Back to Topic List Topics: [ Previous | Next ]
Replies: 1   Pages: 1  

Posts: 2
From: Carleton University
Registered: Feb 3, 2010
Survey locked by import process
Posted: Feb 3, 2010 10:45 PM


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.


Posts: 1
From: India
Registered: Feb 1, 2011
Re: Survey locked by import process
Posted: Feb 1, 2011 4:29 PM

This problem might be because of the value of "authenticationType" in your upload XML string.
This value should be one of the following:
Authentication type:
1: No authentication
2: Authentication on, with a fixed password.
3: Authentication on, with unique passwords per invitee
Use the numeric code: <authenticationType>1</authenticationType>

If the value is '0', then the Survey will be shown as "Locked by Import process".

Please reply, if the solution works for you.

© 1998-2019 ObjectPlanet, Inc. Øvre Slottsgate 5, 0157 Oslo, Norway Tel (+47) 2233 3360 | Fax (+47) 2233 3361