com.parse.ParseException:bolts.ExecutorException:执行器抛出异常 [英] com.parse.ParseException: bolts.ExecutorException: An exception was thrown by an Executor
问题描述
下面类似的代码正在我开发了3年的应用程序中运行,我是否需要添加和依赖文件,或者是否有其他实现方法,我发现了
The similar code below is working in my app which I have developed 3-yrs back, Do I need to add and dependencies files Or is there an other way of implementing it.I have found 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());
}
}
});
}
推荐答案
Parse已于2017年1月30日关闭服务
Parse has shutdown their service on January 30, 2017
我们将于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
.
we will disable the Parse service on Monday, January 30, 2017. Throughout the day we will be disabling the Parse API on an app-by-app basis.
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
.
替代解决方案
- Firebase
- Buddy
- Migration (required your own server with node.js application support)
这篇关于com.parse.ParseException:bolts.ExecutorException:执行器抛出异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!