Connection pool has been unable to grant a connection to thread

Basic Coder picture Basic Coder · Jul 31, 2012 · Viewed 22.2k times · Source

I'm using GreenDAO for database handling in Android. When performing many database changes (> 15.000) I get this error Message:

The connection pool for database '/data/data/...' has been unable to grant a connection to thread 312 (Thread-312) with flags 0x1 for 30.000002 seconds.

Everything gets stuck. Why does this error happen?

Answer

hkutluay picture hkutluay · Dec 26, 2012

I got this message when I want to select a query on a table which is used on a transaction without ended transaction before. Problem solved after executing endTransaction() on finally block of transaction.