2017-07-31 10 views
0

次の類似コードは、私が開発した3年前の私のアプリケーションで動作しています。それを実装する他の方法。私はthisを発見した。com.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

は、スタックトレースを追加します –

答えて

2

解析は、我々はなり終日1月30日(月曜日)、2017年 に解析サービスを無効にします2017年1月30日にシャットダウン彼らのサービスを

フォームBlog link

を持っていますアプリごとに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

代替ソリューション

  • Firebase
  • Buddy
  • Migration(Node.jsのアプリケーションのサポートを使用して独自のサーバーを必要)
関連する問題