Questions tagged [locked]

223 questions
94
votes
23 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
  • 4,390
  • 19
  • 70
  • 115
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
  • 22,501
  • 13
  • 78
  • 106
26
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
  • 622
  • 1
  • 9
  • 18
22
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,233
  • 5
  • 21
  • 31
21
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
  • 852
  • 1
  • 9
  • 19
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,529
  • 10
  • 44
  • 82
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

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
  • 187
  • 1
  • 2
  • 10
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,027
  • 8
  • 67
  • 101
11
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
  • 145
  • 1
  • 1
  • 5
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
9
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,073
  • 1
  • 15
  • 20
9
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
  • 131
  • 1
  • 6
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
  • 591
  • 7
  • 22
6
votes
2 answers

sqlite error database is locked when using sqlite3 command line

I use sqlite3 command line, from bash. I spawn multiple processes, all trying to insert into the same sqlite database file. I often get "database is locked". According to my reading of documentation…
Dmitry z
  • 3,009
  • 3
  • 13
  • 14
1
2 3
14 15