java.lang.RuntimeException: java.sql.SQLException: Could not perform raw query for SELECT s.id as _id, s.name, s.color, count(case when m.id > -1 or messages.read = 1 then 1 end) as unread FROM streams as s LEFT JOIN messages as m ON s.id=m.stream group by s.name order by s.name COLLATE NOCASE

GitHub | niftynei | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 120#240272736

    GitHub | 6 months ago | niftynei
    java.lang.RuntimeException: java.sql.SQLException: Could not perform raw query for SELECT s.id as _id, s.name, s.color, count(case when m.id > -1 or messages.read = 1 then 1 end) as unread FROM streams as s LEFT JOIN messages as m ON s.id=m.stream group by s.name order by s.name COLLATE NOCASE

    Root Cause Analysis

    1. java.lang.RuntimeException

      java.sql.SQLException: Could not perform raw query for SELECT s.id as _id, s.name, s.color, count(case when m.id > -1 or messages.read = 1 then 1 end) as unread FROM streams as s LEFT JOIN messages as m ON s.id=m.stream group by s.name order by s.name COLLATE NOCASE

      at com.j256.ormlite.dao.RuntimeExceptionDao.queryRaw()
    2. ORMLite Core
      RuntimeExceptionDao.queryRaw
      1. com.j256.ormlite.dao.RuntimeExceptionDao.queryRaw(RuntimeExceptionDao.java:483)
      1 frame
    3. com.zulip.android
      ZulipActivity.onCreate
      1. com.zulip.android.activities.ZulipActivity$17.call(ZulipActivity.java:625)
      2. com.zulip.android.activities.ZulipActivity$17.call(ZulipActivity.java:621)
      3. com.zulip.android.activities.ZulipActivity.setupListViewAdapter(ZulipActivity.java:638)
      4. com.zulip.android.activities.ZulipActivity.checkAndSetupStreamsDrawer(ZulipActivity.java:747)
      5. com.zulip.android.activities.ZulipActivity.onCreate(ZulipActivity.java:409)
      5 frames
    4. Android Platform
      ActivityThread.handleLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6251)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
      4 frames