Eclipse - 保存工作区时出现问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/381273/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse - Problems saving workspace
提问by Scott Evernden
Periodically (during autosave) and at close i get:
定期(在自动保存期间)并在关闭时我得到:
Problems saving workspace
保存工作区的问题
(X) Problems occurred while trying to save the state of the workbench.
Details >>
Could not write metadata for '/projectname'.
encoded string too long: 123456 bytes
Can't find a reason or solution for this using the usual means. Any ideas how to fix? THis is using eclipse 3.4 (Ganymede)
无法使用通常的方法为此找到原因或解决方案。任何想法如何解决?这是使用 eclipse 3.4 (Ganymede)
回答by Dennis C
It should relate to a bug in DataOuputStreamthat it cannot writeUTF with longer then 65535 utflen.
它应该与DataOuputStream中的一个错误有关,即它无法使用超过 65535 utflen 的时间写入 UTF。
If I were you, I will try to find a way to reduce the data size, and I will submit bug report to Eclipse and JRE.
如果我是你,我会尝试找到减少数据大小的方法,并且我会向 Eclipse 和 JRE 提交错误报告。
回答by dmkc
Started having the same issues under Vista x64. The latest JREappears to not have the same DataOuputStream limitation so installing it fixes the annoyance.
在 Vista x64 下开始遇到同样的问题。在最新的JRE的似乎不具有相同的DataOuputStream限制,安装它修复了烦恼。
回答by dmkc
An observation I've made about these occurrences for me is that they only occur on newly created projects during the same Eclipse session that I created the project. Once I restart Eclipse, I don't see the issue again until the next time I create a new project.
我对这些事件所做的观察是,它们仅在我创建项目的同一个 Eclipse 会话期间发生在新创建的项目上。重新启动 Eclipse 后,直到下次创建新项目时,我才会再次看到该问题。
Has anyone else noticed this about the occurrences of the error for them?
有没有其他人注意到他们的错误发生?
回答by Daniel Spiewak
It's not a write permissions or disk-space issue. I'm getting the same problem on Eclipse 3.5 M4. No troubles with 3.4.1.
这不是写权限或磁盘空间问题。我在 Eclipse 3.5 M4 上遇到了同样的问题。3.4.1 没有问题。