java.lang.RuntimeException

An error occurred while executing doInBackground()

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web14

  • via GitHub by niftynei
    ,
  • via GitHub by kunall17
    ,
  • Stack trace

    • java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:309) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) at java.util.concurrent.FutureTask.setException(FutureTask.java:223) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.RuntimeException: java.sql.SQLException: Transaction callable threw non-SQL exception at com.zulip.android.models.Message.createMessages(Message.java:426) at com.zulip.android.networking.AsyncGetOldMessages.fetchMessages(AsyncGetOldMessages.java:222) at com.zulip.android.networking.AsyncGetOldMessages.doInBackground(AsyncGetOldMessages.java:159) at com.zulip.android.networking.AsyncGetOldMessages.doInBackground(AsyncGetOldMessages.java:25) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 3 more Caused by: java.sql.SQLException: Transaction callable threw non-SQL exception at com.j256.ormlite.misc.SqlExceptionUtil.create(SqlExceptionUtil.java:27) at com.j256.ormlite.misc.TransactionManager.callInTransaction(TransactionManager.java:251) at com.j256.ormlite.misc.TransactionManager.callInTransaction(TransactionManager.java:169) at com.j256.ormlite.misc.TransactionManager.callInTransaction(TransactionManager.java:150) at com.zulip.android.models.Message.createMessages(Message.java:412) ... 8 more Caused by: java.lang.RuntimeException: java.sql.SQLException: Unable to run insert stmt on object com.zulip.android.models.Message$ZulipStreamMessage@d0d5db5b: INSERT INTO `messages` (`content` ,`editDate` ,`formattedContent` ,`hasBeenEdited` ,`id` ,`read` ,`recipients` ,`sender` ,`stream` ,`subject` ,`timestamp` ,`type` ) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) at com.j256.ormlite.dao.RuntimeExceptionDao.createOrUpdate(RuntimeExceptionDao.java:277) at com.zulip.android.models.Message$1.call(Message.java:420) at com.zulip.android.models.Message$1.call(Message.java:413) at com.j256.ormlite.misc.TransactionManager.callInTransaction(TransactionManager.java:227) ... 11 more Caused by: java.sql.SQLException: Unable to run insert stmt on object com.zulip.android.models.Message$ZulipStreamMessage@d0d5db5b: INSERT INTO `messages` (`content` ,`editDate` ,`formattedContent` ,`hasBeenEdited` ,`id` ,`read` ,`recipients` ,`sender` ,`stream` ,`subject` ,`timestamp` ,`type` ) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) at com.j256.ormlite.misc.SqlExceptionUtil.create(SqlExceptionUtil.java:25) at com.j256.ormlite.stmt.mapped.MappedCreate.insert(MappedCreate.java:137) at com.j256.ormlite.stmt.StatementExecutor.create(StatementExecutor.java:458) at com.j256.ormlite.dao.BaseDaoImpl.create(BaseDaoImpl.java:328) at com.j256.ormlite.dao.BaseDaoImpl.createOrUpdate(BaseDaoImpl.java:387) at com.j256.ormlite.dao.RuntimeExceptionDao.createOrUpdate(RuntimeExceptionDao.java:274) ... 14 more Caused by: java.sql.SQLException: inserting to database failed: INSERT INTO `messages` (`content` ,`editDate` ,`formattedContent` ,`hasBeenEdited` ,`id` ,`read` ,`recipients` ,`sender` ,`stream` ,`subject` ,`timestamp` ,`type` ) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) at com.j256.ormlite.misc.SqlExceptionUtil.create(SqlExceptionUtil.java:27) at com.j256.ormlite.android.AndroidDatabaseConnection.insert(AndroidDatabaseConnection.java:180) at com.j256.ormlite.stmt.mapped.MappedCreate.insert(MappedCreate.java:91) ... 18 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Hiren AmaliyarHiren Amaliyar
    2 times, last one
    Chandan JhaChandan Jha
    83 times, last one
    Unknown visitor
    Unknown visitorOnce,
    hoangtranworkhoangtranwork
    Once,