yigit / android-priority-jobqueue

A Job Queue specifically written for Android to easily schedule jobs (tasks) that run in the background, improving UX and application stability.
3.4k stars 395 forks source link

IllegalArgumentException in SqliteJobQueue #457

Open TusharSri opened 6 years ago

TusharSri commented 6 years ago

I am getting IllegalArgumentException in "SqliteJobQueue" class. This issue is coming in method "setSessionIdOnJob" at statement " stmt.bindString(3, jobHolder.getId());" Please help me if we can solve this. As this is not a very frequent crash therefore i am not able to replicate this. Any suggestions or would be appreciated

birender-s commented 6 years ago

@yigit , your quick pointers on this issue would be very helpful. Please advise. Thanks !

arun-infy commented 6 years ago

More details on the stack trace below:

0 | java.lang.IllegalArgumentException: the bind value at index 3 is null   | 1 | at android.database.sqlite.SQLiteProgram.bindString(SQLiteProgram.java:164)   | 2 | at android.database.sqlite.SQLiteProgram.bindAllArgsAsStrings(SQLiteProgram.java:200)   | 3 | at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:47)   | 4 | at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1348)   | 5 | at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1287) ! | 6 | at com.birbit.android.jobqueue.persistentQueue.sqlite.SqliteJobQueue.findJobs(SqliteJobQueue.java:263)   | 7 | at com.birbit.android.jobqueue.cachedQueue.CachedJobQueue.findJobs(CachedJobQueue.java:100)   | 8 | at com.birbit.android.jobqueue.CancelHandler.query(CancelHandler.java:42)   | 9 | at com.birbit.android.jobqueue.JobManagerThread.handleCancel(JobManagerThread.java:454)   | 10 | at com.birbit.android.jobqueue.JobManagerThread.access$400(JobManagerThread.java:35)   | 11 | at com.birbit.android.jobqueue.JobManagerThread$1.handleMessage(JobManagerThread.java:247)   | 12 | at com.birbit.android.jobqueue.messaging.PriorityMessageQueue.consume(PriorityMessageQueue.java:39)   | 13 | at com.birbit.android.jobqueue.JobManagerThread.run(JobManagerThread.java:222)   | 14 | at java.lang.Thread.run(Thread.java:761)