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

Topic: Survey locked by import process
Replies: 0   Pages: 1  


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

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

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



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