google-code-export / fanfoudroid

Automatically exported from code.google.com/p/fanfoudroid
0 stars 0 forks source link

Cann't create Follower #85

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
05-09 16:46:01.415: ERROR/DatabaseHelper(424): Cann't create Follower : 
withoutborders
05-09 16:46:01.675: ERROR/Database(424): Error inserting _id=lynnecho
05-09 16:46:01.675: ERROR/Database(424): 
android.database.sqlite.SQLiteConstraintException: error code 19: constraint 
failed
05-09 16:46:01.675: ERROR/Database(424):     at 
android.database.sqlite.SQLiteStatement.native_execute(Native Method)
05-09 16:46:01.675: ERROR/Database(424):     at 
android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:61)
05-09 16:46:01.675: ERROR/Database(424):     at 
android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:
1562)
05-09 16:46:01.675: ERROR/Database(424):     at 
android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1422)
05-09 16:46:01.675: ERROR/Database(424):     at 
com.ch_linghu.fanfoudroid.db.TwitterDatabase.createFollower(TwitterDatabase.java
:615)
05-09 16:46:01.675: ERROR/Database(424):     at 
com.ch_linghu.fanfoudroid.db.TwitterDatabase.syncFollowers(TwitterDatabase.java:
639)
05-09 16:46:01.675: ERROR/Database(424):     at 
com.ch_linghu.fanfoudroid.ui.base.TwitterCursorBaseActivity$FollowersRetrieveTas
k._doInBackground(TwitterCursorBaseActivity.java:512)
05-09 16:46:01.675: ERROR/Database(424):     at 
com.ch_linghu.fanfoudroid.task.GenericTask.doInBackground(GenericTask.java:73)
05-09 16:46:01.675: ERROR/Database(424):     at 
com.ch_linghu.fanfoudroid.task.GenericTask.doInBackground(GenericTask.java:1)
05-09 16:46:01.675: ERROR/Database(424):     at 
android.os.AsyncTask$2.call(AsyncTask.java:185)
05-09 16:46:01.675: ERROR/Database(424):     at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
05-09 16:46:01.675: ERROR/Database(424):     at 
java.util.concurrent.FutureTask.run(FutureTask.java:138)
05-09 16:46:01.675: ERROR/Database(424):     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
05-09 16:46:01.675: ERROR/Database(424):     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
05-09 16:46:01.675: ERROR/Database(424):     at 
java.lang.Thread.run(Thread.java:1019)

Original issue reported on code.google.com by lds1...@gmail.com on 9 May 2011 at 8:47

GoogleCodeExporter commented 9 years ago
随便看看页面 insert tweet也有相同问题

05-17 23:57:04.870: ERROR/TwitterDatabase(2591): cann't insert the tweet : 
Tweet [source=享拍微博通, id=xOz2U-Jhlmg, screenName=雪飞尧舞, 
text=今天告诉大家一个消息,台湾大师李敖(@哈囉李敖)在��
�浪,开微博了,一天写了28条微博,嬉笑怒骂。, 
profileImageUrl=http://avatar2.fanfou.com/s0/00/s8/c1.jpg?1304558027, 
createdAt=Tue May 17 23:56:46 格林尼治标准时间+0800 2011, 
userId=faithiszy, favorited=false, inReplyToStatusId=, inReplyToUserId=, 
inReplyToScreenName=]
05-17 23:57:04.920: ERROR/Database(2591): Error inserting uid=lindau text=@<a 
href="http://fanfou.com/SUPER_GUANG" class="former">西瓜西瓜西瓜</a>  
晚安,但我不是那个焚蛋。 in_reply_to_screen_name=西瓜西瓜西瓜 
pic_middle= truncated=false source=手机上网 _id=pRVReie6jrA favorited=false 
status_type=5 in_reply_to_status_id=5m8jGgZLh9A pic_original= owner=lds2012 
created_at=2011-05-17T23:56:54.000 in_reply_to_user_id=SUPER_GUANG 
pic_thumbnail= screen_name=林大友 is_unread=false 
profile_image_url=http://avatar1.fanfou.com/s0/00/wb/ap.jpg?1305197343
05-17 23:57:04.920: ERROR/Database(2591): 
android.database.sqlite.SQLiteConstraintException: error code 19: constraint 
failed
05-17 23:57:04.920: ERROR/Database(2591):     at 
android.database.sqlite.SQLiteStatement.native_execute(Native Method)
05-17 23:57:04.920: ERROR/Database(2591):     at 
android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:61)
05-17 23:57:04.920: ERROR/Database(2591):     at 
android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:
1562)
05-17 23:57:04.920: ERROR/Database(2591):     at 
android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1422)
05-17 23:57:04.920: ERROR/Database(2591):     at 
com.ch_linghu.fanfoudroid.db.TwitterDatabase.putTweets(TwitterDatabase.java:414)
05-17 23:57:04.920: ERROR/Database(2591):     at 
com.ch_linghu.fanfoudroid.BrowseActivity.addMessages(BrowseActivity.java:40)
05-17 23:57:04.920: ERROR/Database(2591):     at 
com.ch_linghu.fanfoudroid.ui.base.TwitterCursorBaseActivity$RetrieveTask._doInBa
ckground(TwitterCursorBaseActivity.java:504)
05-17 23:57:04.920: ERROR/Database(2591):     at 
com.ch_linghu.fanfoudroid.task.GenericTask.doInBackground(GenericTask.java:73)
05-17 23:57:04.920: ERROR/Database(2591):     at 
com.ch_linghu.fanfoudroid.task.GenericTask.doInBackground(GenericTask.java:1)
05-17 23:57:04.920: ERROR/Database(2591):     at 
android.os.AsyncTask$2.call(AsyncTask.java:185)
05-17 23:57:04.920: ERROR/Database(2591):     at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
05-17 23:57:04.920: ERROR/Database(2591):     at 
java.util.concurrent.FutureTask.run(FutureTask.java:138)
05-17 23:57:04.920: ERROR/Database(2591):     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
05-17 23:57:04.920: ERROR/Database(2591):     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
05-17 23:57:04.920: ERROR/Database(2591):     at 
java.lang.Thread.run(Thread.java:1019)

Original comment by lds1...@gmail.com on 17 May 2011 at 3:58

GoogleCodeExporter commented 9 years ago
随便看看页面一直有 Cann't create Follower 问题, 
应该是重复主键导致, 有点我不明白, 
为什么随便看看页面要create follower? "create follower"不是字面意?

Original comment by lds1...@gmail.com on 19 May 2011 at 11:00

GoogleCodeExporter commented 9 years ago

Original comment by lds2...@gmail.com on 20 May 2011 at 7:40