· 9 years ago · Oct 28, 2016, 10:54 AM
1D227-44B4-800D-A416F6A333FC/tmp/sample.db got #115784320
22016-10-28 14:53:24,544 [INFO] TableUtils executed create table statement changed 0 rows: CREATE TABLE IF NOT EXISTS `remindDose` (`doseType` VARCHAR , `dose` INTEGER , `time` BIGINT , `drugReminderEntity_id` INTEGER NOT NULL , `doseId` INTEGER , PRIMARY KEY (`doseId`) )
3connection opened
4start connect...
5SQLite.JDBCDriver
6***SQLite.JDBCDriver***
7SQLite.JDBCDriver
82016-10-28 14:53:24,545 [DEBUG] DaoManager created dao for class class ru.agima.mobile.bl.db.Entities.reminders.IntakeEntity with reflection
92016-10-28 14:53:24,548 [INFO] TableUtils creating table 'remindIntake'
102016-10-28 14:53:24,550 [DEBUG] JdbcConnectionSource opened connection to jdbc:sqlite:/private/var/mobile/Containers/Data/Application/29EB476A-D227-44B4-800D-A416F6A333FC/tmp/sample.db got #115827984
112016-10-28 14:53:24,551 [INFO] TableUtils executed create table statement changed 0 rows: CREATE TABLE IF NOT EXISTS `remindIntake` (`isDeleted` BOOLEAN , `isMissed` BOOLEAN , `doseType` VARCHAR , `dose` INTEGER , `date` BIGINT , `doseId` INTEGER , `intakeId` INTEGER , PRIMARY KEY (`intakeId`) )
12connection opened
132016-10-28 14:53:24,551 [DEBUG] BaseMappedStatement insert data with statement 'INSERT INTO `remindDrugReminder` (`isStopped` ,`duration` ,`startDate` ,`daysOfMedication` ,`daysOfMedicationType` ,`drugName` ,`reminderId` ) VALUES (?,?,?,?,?,?,?)' and 7 args, threw exception: java.sql.SQLException: SQLite.Exception: UNIQUE constraint failed: remindDrugReminder.reminderId
14java.sql.SQLException: Unable to run insert stmt on object ru.agima.mobile.bl.db.Entities.reminders.DrugReminderEntity@6979de0: INSERT INTO `remindDrugReminder` (`isStopped` ,`duration` ,`startDate` ,`daysOfMedication` ,`daysOfMedicationType` ,`drugName` ,`reminderId` ) VALUES (?,?,?,?,?,?,?)
15 at com.j256.ormlite.misc.SqlExceptionUtil.create(SqlExceptionUtil.java:25)
16 at com.j256.ormlite.stmt.mapped.MappedCreate.insert(MappedCreate.java:137)
17 at com.j256.ormlite.stmt.StatementExecutor.create(StatementExecutor.java:471)
18 at com.j256.ormlite.dao.BaseDaoImpl.create(BaseDaoImpl.java:314)
19 at ru.agima.mobile.bl.db.DAO.reminders.DrugReminderDAO.create(DrugReminderDAO.java:45)
20 at ru.agima.mobile.bl.logic.reminders.CreateReminderWorker.doWork(CreateReminderWorker.java:21)
21 at ru.agima.mobile.bl.logic.reminders.CreateReminderWorker.doWork(CreateReminderWorker.java:12)
22 at ru.agima.mobile.bl.logic.BaseWorker.Execute(BaseWorker.java:37)
23Caused by: java.sql.SQLException: SQLite.Exception: UNIQUE constraint failed: remindDrugReminder.reminderId
24 at SQLite.JDBC2z.JDBCStatement.executeQuery(JDBCStatement.java:141)
25 at SQLite.JDBC2z.JDBCPreparedStatement.executeUpdate(JDBCPreparedStatement.java:119)
26 at com.j256.ormlite.jdbc.JdbcDatabaseConnection.insert(JdbcDatabaseConnection.java:172)
27 at com.j256.ormlite.stmt.mapped.MappedCreate.insert(MappedCreate.java:91)
28 ... 6 more
292016-10-28 14:53:24,558 [DEBUG] JdbcConnectionSource closed connection #115827984
30connection closed
312016-10-28 14:53:24,558 [DEBUG] JdbcConnectionSource closed connection #115784320
32connection closed
332016-10-28 14:53:24,559 [DEBUG] JdbcConnectionSource closed connection #115667280
34connection closed