com.parse.ParseException:bolts.ExecutorException:Executor抛出异常

问题描述:

下面的类似代码在我的应用程序中工作,我已经开发了3年,我需要添加和依赖关系文件还是有一个其他实施方式。我找到了thiscom.parse.ParseException:bolts.ExecutorException:Executor抛出异常

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()); 

      } 
     } 
    });    
} 
+1

添加堆栈跟踪 – 2017-07-31 15:48:05

解析已关闭其在1月30日的服务,2017年

形式Blog link

,我们将在星期一,2017年1月30日, 禁用解析服务整整一天,我们将在每个应用程序 的基础上禁用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

替代解决方案