如何确定sqlite中锁的来源?

时间:2012-07-25 15:23:48

标签: android sqlite concurrency locking

我遇到了一些数据库问题。似乎,首先,我必须弄清楚是锁是基于表还是数据库。谁能告诉我在哪里寻找?这是堆栈跟踪的相关部分:

at java.util.concurrent.locks.ReentrantLock$FairSync.tryAcquire(ReentrantLock.java:208)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1171)
at java.util.concurrent.locks.ReentrantLock$FairSync.lock(ReentrantLock.java:200)
at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:261)
at android.database.sqlite.SQLiteDatabase.lock(SQLiteDatabase.java:378)
at android.database.sqlite.SQLiteDatabase.addSQLiteClosable(SQLiteDatabase.java:300)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:65)
at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:49)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:42)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1356)
at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1324)
at data.model.DeviceModel.getAll(DeviceModel.java:168)
at data.model.DeviceModel.desiredPositionOk(DeviceModel.java:368)
at unittest.classextensions.DeviceTestModel.desiredPositionOk(DeviceTestModel.java:18)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:347)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at data.model.DeviceModel.compressPositionsKeepingVoidFor(DeviceModel.java:432)
at unittest.classextensions.DeviceTestModel.compressPositionsKeepingVoidFor(DeviceTestModel.java:26)
at data.model.DeviceModel.getActualPositionFromDesiredPosition(DeviceModel.java:357)
at unittest.classextensions.DeviceTestModel.getActualPositionFromDesiredPosition(DeviceTestModel.java:30)
at data.model.DeviceModel.update(DeviceModel.java:257)
at unittest.DeviceModelTest.testUpdateDevice(DeviceModelTest.java:256)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448)

1 个答案:

答案 0 :(得分:0)

发现问题!实际上,它与数据库操作无关,而是一个简单的错误递归。无论如何,根据你的评论,我会通过一些SqliteOpenHelper-docu。