bmatthias / kolab-android

Automatically exported from code.google.com/p/kolab-android
Other
0 stars 0 forks source link

SQLite Exception #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When adding a new calendar entry with an alarm you get the fologin exception

E/DatabaseUtils( 9463): Error inserting state=0 event_id=139 minutes=0 
end=1274014800000 alarmTime=1273996800000 begin=1273996800000 into table  Calen
darAlerts
E/DatabaseUtils( 9463): android.database.sqlite.SQLiteConstraintException: 
error code 19: constraint failed
E/DatabaseUtils( 9463):         at 
android.database.sqlite.SQLiteStatement.native_execute(Native Method)
E/DatabaseUtils( 9463):         at 
android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:81)
E/DatabaseUtils( 9463):         at 
android.database.DatabaseUtils$InsertHelper.insertInternal(DatabaseUtils.java:89
0)
E/DatabaseUtils( 9463):         at 
android.database.DatabaseUtils$InsertHelper.insert(DatabaseUtils.java:1011)
E/DatabaseUtils( 9463):         at 
com.android.providers.calendar.CalendarDatabaseHelper.calendarAlertsInsert(Calen
darDatabaseHelper.java:117)
E/DatabaseUtils( 9463):         at 
com.android.providers.calendar.CalendarProvider2.insertInTransaction(CalendarPro
vider2.java:1677)
E/DatabaseUtils( 9463):         at 
com.android.providers.calendar.SQLiteContentProvider.insert(SQLiteContentProvide
r.java:90)
E/DatabaseUtils( 9463):         at 
android.content.ContentProvider$Transport.insert(ContentProvider.java:197)
E/DatabaseUtils( 9463):         at 
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:146)
E/DatabaseUtils( 9463):         at 
android.os.Binder.execTransact(Binder.java:288)
E/DatabaseUtils( 9463):         at dalvik.system.NativeStart.run(Native Method)

Original issue reported on code.google.com by arthur.z...@gmail.com on 9 Dec 2010 at 2:53

GoogleCodeExporter commented 8 years ago

Original comment by arthur.z...@gmail.com on 9 Dec 2010 at 2:54

GoogleCodeExporter commented 8 years ago
I've fixed that in newest version of froyo branch on gitorious.

The problem was that receivedTime, creationTime and notifyTime were not set.

Original comment by STrille...@googlemail.com on 10 Jan 2011 at 10:11