【问题标题】:com.parse.ParseException: bolts.ExecutorException: An exception was thrown by an Executor [closed]com.parse.ParseException:bolts.ExecutorException:Executor抛出异常[关闭]
【发布时间】:2017-07-31 15:46:00
【问题描述】:

下面的类似代码在我开发了 3 年的应用程序中运行,我需要添加和依赖文件还是有其他实现它的方法。我找到了this

private void appLevel_Lang(final Context cntxt) {

    final ParseQuery<ParseObject> query = ParseQuery.getQuery("appSupportedLanguages");
    query.setLimit(100);
    // Get last updated date of appSupportedLanguage table from sqllite
    Date dbLastUpdatedDate = db.getLastUpdateDateOfTable("appSupportedLanguages");

    if (dbLastUpdatedDate != null) {
        query.whereGreaterThan("updatedAt", dbLastUpdatedDate);
    }
    query.orderByAscending("updatedAt");

  // run in background

    query.findInBackground(new FindCallback<ParseObject>() {
        @Override
        public void done(List<ParseObject> applvl_LangList, ParseException e) {

            if (e == null) {

                if (applvl_LangList.size() > 0) {
                    String lastUpdatedDate = ParseQueries.getNSDateFormatterUpdateAtForParse().format(applvl_LangList.get(applvl_LangList.size() - 1).getUpdatedAt());

                    for (ParseObject p : applvl_LangList) {
                      // ****Insert in DB****
                        AppLevel appLevelLanguage = new AppLevel();
                        appLevelLanguage.objectID = p.getObjectId();
                        appLevelLanguage.key = p.getString("key");
                        appLevelLanguage.updatedAt = lastUpdatedDate;
                        ArrayList<String> arrLangColNames = (ArrayList<String>) ParseConfig.getCurrentConfig().get("supportedLanguages");


              // *Insert in local DB*           
          db.insertOrUpdateAppSupportedLanguageTable(appLevelLanguage);
                    }
                }

                if (applvl_LangList.size() == query.getLimit()) {
                    appLevel_Lang(cntxt);
                } else {
                    Log.d("", "AppSupportedLanguages is not equal to limit");
                }


            } else {  
              *// Show parse exception here*

                Log.d("AppSupportedLanguages", "Error: " +  e.getMessage()); 

            }
        }
    });            
}

【问题讨论】:

  • 添加堆栈跟踪

标签: java android parse-platform


【解决方案1】:

Parse 已于 2017 年 1 月 30 日关闭其服务

表格Blog link

我们将于 2017 年 1 月 30 日星期一禁用 Parse 服务。 一整天,我们将逐个应用禁用 Parse API 基础。 When your app is disabled, you will not be able to access the data browser or export any data, and your applications will no longer be able to access the Parse API.

替代解决方案

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-21
    • 2014-01-17
    • 2011-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多