Questions tagged [locked]
244 questions
153
votes
29 answers
OperationalError: database is locked
I have made some repetitive operations in my application (testing it), and suddenly I’m getting a weird error:
OperationalError: database is locked
I've restarted the server, but the error persists. What can it be all about?

dana
- 5,168
- 20
- 75
- 116
34
votes
3 answers
How do I get a list of locked users in an Oracle database?
I want to be able to list all of the users in a given database along with an icon that determines whether they are locked or not. The problem I'm having is querying the "locked" status for a given user, I though it might have been on all_users but…

ninesided
- 23,085
- 14
- 83
- 107
28
votes
6 answers
How to handle background audio playing while iOS device is locked or on another application?
Designing a generative music system for iOS, using OpenFrameworks, I'd need to provide a mode in which the user could listen the music produced by the application when:
the device is locked
the user uses another application
Some applications like…

gluon
- 662
- 1
- 10
- 18
25
votes
2 answers
SQLite in a multithreaded java application
I have written a java application that sporadically logs events to an SQLite database from multiple threads. I've noticed that I can trigger SQLite's "Database Locked" errors relatively easily by spawning a small number of events at the same time. …

jlunavtgrad
- 997
- 1
- 11
- 21
24
votes
2 answers
What does "locked" mean in a Java stack trace?
For example, this is a stack trace from a Tomcat server:
"RMI TCP Accept-0" daemon prio=10 tid=0x091a5800 nid=0x8f1 runnable [0x8b305000]
java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketAccept(Native Method)
at…

Frank LaRosa
- 3,533
- 6
- 26
- 32
20
votes
4 answers
BitmapImage in WPF does lock file
I use:
Dim bmi As New BitmapImage(New Uri(fiInfo.FullName, UriKind.Absolute))
bmi.CacheOption = BitmapCacheOption.OnLoad
this does not Use OnLoad
And file still is locked to overwrite on harddisk. Any idea how to unlock?
Regards

Nasenbaer
- 4,810
- 11
- 53
- 86
19
votes
2 answers
Playing a sound while app is in the foreground and the screen is locked - iOS
Preface: I'm building an alarm clock app. Many other alarm apps such as Alarm Clock Pro are able to play an alarm while the screen is locked and the app is in the foreground. Their alarms can play for an unlimited amount of time and can…

gabe.roze
- 302
- 3
- 14
12
votes
1 answer
How to unlock a tomcat user?
I am using Tomcat 7.0 and a user i defined at tomcat-users.xml is locked. I saw warnings at catalina.out that the user is locked. How can i unlock it without restarting tomcat? I searched a lot but could not find any solution.
Thanks a lot,

sacunu
- 155
- 1
- 1
- 5
12
votes
1 answer
Programmatically unlocking IIS configuration sections in Powershell
I am writing a powershell script to create and configure a number of websites and virtual directories. I am using the .NET Microsoft.Web.Administration assembly. I have created a new application under the default website and added a new virtual…

Al Henderson
- 307
- 1
- 3
- 11
12
votes
2 answers
android room database locked
I had been getting " android.database.sqlite.SQLiteDatabaseLockedException" exception from production when I had been using 3rd party non-thread safe sqlite libraries. I checked all the threads and connection closing, I made all instances singleton…

DiRiNoiD
- 1,281
- 2
- 18
- 24
12
votes
2 answers
"Attempted to lock an already-locked dir" using SVNANT
I'm using SVNANT for checking out my project directory on my Windows XP machine. The first time I've used tortoiseSVN for the check out.. as result I obtained an error message relative to the incompatible versions so I had to fix it using a…

Claus
- 5,662
- 10
- 77
- 118
10
votes
3 answers
android sqlite "database is locked" errors despite use of content provider and sequential database access
I have an app (Android 2.2 Google API Level 8) that has multiple activities pulling data from a content provider (SELECT only database access).
It also has a service with a central blocking task queue accepting any database write tasks; activities…

Eveys
- 101
- 1
- 3
10
votes
4 answers
Python / SQLite - database locked despite large timeouts
I'm sure I'm missing something pretty obvious, but I can't for the life of me stop my pysqlite scripts crashing out with a database is locked error. I have two scripts, one to load data into the database, and one to read data out, but both will…

Chris Phillips
- 140
- 1
- 1
- 8
8
votes
2 answers
listen volume button when phone is locked android
I have a service in my application that run on backend, the service can be started when I press button volume up and stopped when I press button volume down.
public class SettingsContentObserver extends ContentObserver {
int…

Wafae
- 177
- 3
- 12
6
votes
1 answer
Image file locked after loading in WPF
I am reading my WPF imagesource like this:
VB
Dim bmi As BitmapImage = New BitmapImage
bmi.BeginInit
bmi.CacheOption = BitmapCacheOption.None
bmi.CreateOptions = BitmapCreateOptions.IgnoreImageCache
bmi.UriSource = New Uri(input.FullName,…

goldengel
- 611
- 8
- 22