com.googlecode.jdeltasync.UnrecognizedErrorCodeException:3206:用户已超出其同步关系配额
我遇到了 jdelta 同步问题 http://code.google.com/p/jdeltasync/< /a>. 我会尝试解释一下。 在 google code 网站上有一个使用 jdeltasync 库的代码示例:
以下 Java 代码将收件箱文件夹中的所有邮件下载到当前目录:
DeltaSyncClientHelper client = new DeltaSyncClientHelper(
new DeltaSyncClient(), "[email protected]", "secret");
client.login();
Message[] messages = client.getMessages(client.getInbox());
System.out.println(messages.length + " messages in Inbox");
for (Message message : messages) {
File file = new File(message.getId() + ".msg");
System.out.println("Downloading message from \""
+ message.getFrom() + "\" with subject \""
+ message.getSubject() + "\" received at "
+ message.getDateReceived());
OutputStream out = new FileOutputStream(file);
client.downloadMessageContent(message, out);
out.close();
}
我已成功使用它,但如果我第二次使用时出现“无法识别错误”:
com.googlecode.jdeltasync.UnrecognizedErrorCodeException:3206:用户已超出其同步关系配额
所以我的问题是任何人都已经遇到这个问题并且他/她是否解决了它。
感谢您抽出时间。
西蒙
i've got an issue with jdelta sync http://code.google.com/p/jdeltasync/.
I'll try to explain.
On the google code web site there is an example of code to use the jdeltasync librairy:
The following Java code downloads all messages in the Inbox folder to the current directory:
DeltaSyncClientHelper client = new DeltaSyncClientHelper(
new DeltaSyncClient(), "[email protected]", "secret");
client.login();
Message[] messages = client.getMessages(client.getInbox());
System.out.println(messages.length + " messages in Inbox");
for (Message message : messages) {
File file = new File(message.getId() + ".msg");
System.out.println("Downloading message from \""
+ message.getFrom() + "\" with subject \""
+ message.getSubject() + "\" received at "
+ message.getDateReceived());
OutputStream out = new FileOutputStream(file);
client.downloadMessageContent(message, out);
out.close();
}
i've used it successfully but if i used it a second time i've got an "unrecognize error":
com.googlecode.jdeltasync.UnrecognizedErrorCodeException: 3206: User has maxed out their sync relationship quota
So my question is anybody already have this problem and does he/she fix it.
Thanks for your time.
Simon
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据我的观察,hotmail 服务器连续接受最多 50 次点击,然后抛出此错误,并在 10 小时后 hotmail 服务器释放用户访问该帐户以进行接下来的 50 次点击。
最好尝试每 15 分钟从您的帐户连接一次,这样就不会收到此错误
Per my observation hotmail-server accepting max 50 hits in a row and then it is throwing this error and after 10hrs hotmail-server releasing the user to access the account for next 50 hits.
Better try to connect for each 15 mins from your account so that you won't get this error
这是来自 hotmail-server 的错误,而不是来自您的代码。检查这个链接类似案例。
切换到不同的服务器进行测试或尝试解决 hotmail 问题。
It's a error from hotmail-server, not from your code. Check this link with similar case.
Switch to different server for testing or try to resolve problem with hotmail.