启用本地数据存储区时,我开始出现此错误。我不知道如何解决它。我正在查看文档,但到目前为止还没有找到任何内容......应用程序没有崩溃,但是大部分时间都没有任何东西可以保存到用户对象中。
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): Failed to run command.
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): com.parse.ParseException: Parse::UserCannotBeAlteredWithoutSessionError
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.ParseCommand.onPostExecute(ParseCommand.java:334)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.ParseRequest$5.then(ParseRequest.java:321)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.ParseRequest$5.then(ParseRequest.java:318)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.Task$11.run(Task.java:481)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.Task$ImmediateExecutor.execute(Task.java:673)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.Task.completeAfterTask(Task.java:477)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.Task.continueWithTask(Task.java:353)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.Task.continueWithTask(Task.java:364)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.Task$9.then(Task.java:410)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.Task$9.then(Task.java:402)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.Task$11.run(Task.java:481)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.Task$ImmediateExecutor.execute(Task.java:673)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.Task.completeAfterTask(Task.java:477)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.Task.access$400(Task.java:22)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.Task$7.then(Task.java:346)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.Task$7.then(Task.java:343)
05-03 02:17:24.350: E/ParsePinningEventuallyQueue(1110): at com.parse.Task.runContinuations(Task.java:510)
我设法指出产生错误的代码。它与在当前用户中使用saveEventually()
有关...使用saveinbackground()
不会发生......
ParseUser cu = ParseUser.getCurrentUser();
if (cu != null) {
String locale = getResources().getConfiguration().locale.getDisplayName();
cu.put("locale", locale);
cu.put("version", ParseInstallation.getCurrentInstallation().getString("appVersion"));
cu.saveEventually(); //doesn't happen with cu.saveInBackground();
}
答案 0 :(得分:0)
解析Android更新日志
v1.5.1 - 2014年5月30日
修复了Local的各种错误 数据存储。
最后一个Parse Android SDK v1.5.0确实存在一些错误,但是对于我来说,他们已经修复了今天发布的版本1.5.1,你应该检查一下并再试一次。