Eclipse 启动时出错

发布于 2024-08-27 16:48:44 字数 2231 浏览 14 评论 0原文

Eclipse 昨晚运行良好,但今天早上我尝试启动它,却遇到了这个错误:

alt text http://img707.imageshack.us/img707/4416/ss20100407181208.png

这是日志

!SESSION 2010-04-07 17:58:37.208 -----------------------------------------------
eclipse.buildId=I20080617-2000
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 4 0 2010-04-07 17:58:37.457
!MESSAGE Startup error
!STACK 1
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.eclipse.osgi.storagemanager.StorageManager.updateTable(StorageManager.java:512)
at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:694)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(BaseStorage.java:208)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(BaseStorage.java:142)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.java:124)
at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:180)
at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:152)
at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90)
at org.eclipse.osgi.framework.internal.core.OSGi.<init>(OSGi.java:31)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:286)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

有帮助吗?我确实需要启动并运行它,但目前无法重新安装和重置我的所有插件和设置。

Eclipse was running fine last night, but this morning I tried starting it up and I came upon this error:

alt text http://img707.imageshack.us/img707/4416/ss20100407181208.png

Here's the log

!SESSION 2010-04-07 17:58:37.208 -----------------------------------------------
eclipse.buildId=I20080617-2000
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 4 0 2010-04-07 17:58:37.457
!MESSAGE Startup error
!STACK 1
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.eclipse.osgi.storagemanager.StorageManager.updateTable(StorageManager.java:512)
at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:694)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(BaseStorage.java:208)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(BaseStorage.java:142)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.java:124)
at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:180)
at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:152)
at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90)
at org.eclipse.osgi.framework.internal.core.OSGi.<init>(OSGi.java:31)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:286)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

Any help? I really need this up and running, and reinstalling and resetting all of my plugins and settings just isn't an option at the moment.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

猫弦 2024-09-03 16:48:45

至少尝试使用 -clean 选项重新启动 Eclipse。
还要检查(以防万一)您的磁盘空间!当磁盘上没有足够的空间时,可能会发生这种情况,因为 代码显示它正在从文件中读取字符串(应该是整数)。

还尝试将用于启动 eclipse 的 java 升级到最新版本(u19 而不是 u13)

此错误堆栈跟踪已在 bug 113596 关于某些版本的 Vista:您使用的是什么操作系统,最近是否更新过? (例如通过 Windows 更新)

Try at least to restart eclipse with a -clean option.
Check also (just in case) your disk space! That can occur when not enough space is left on the disk, since the code shows it is reading strings (supposed to be Integer) from a file.

Try also upgrading your java used to start eclipse to the latest one (u19 instead of u13)

This error stacktrace has been reported in bug 113596 about some version of Vista: what OS are you using, and has it been updated recently? (by Windows update for instance)

小梨窩很甜 2024-09-03 16:48:45

最好的办法是使用 Eclipse 的新副本,并指向您在旧 Eclipse 中使用的工作区位置。这样,您就不会丢失您的设置,并且可以100%避免启动错误。

A Best shot would be to use a fresh copy of eclipse and point the workspace location that you were using in the old eclipse. By this way, you will not lose your settings and will 100% avoid the startup error.

江湖正好 2024-09-03 16:48:44

我有同样的问题。经过一些调试后,我尝试从 eclipse 目录中删除以下文件夹

./configuration/org.eclipse.core.runtime/.manager
./configuration/org.eclipse.osgi/.manager

这为我解决了这个问题。无副作用。我认为这只是一个缓存,因为它会动态地重新创建自己。如果没有找到,源代码似乎并没有特别重视它,但是有一个错误 尝试解析第 512 行的空字符串< /a>.

查看 org.eclipse.osgi 的源代码,这些文件似乎是通过时间戳进行管理的,因此,如果您正在执行任何会扰乱时间戳的操作,那么您将遇到此问题。我使用 git 来管理我的 eclipse 安装,这样如果新安装的功能开始影响我的业力,我可以恢复到早期版本。回国后就遇到这个问题了。将其添加到 .gitignore。

I had the same issue. After some debugging i tried deleting the following folders from my eclipse directory

./configuration/org.eclipse.core.runtime/.manager
./configuration/org.eclipse.osgi/.manager

That fixed the issue for me. No side effects. I think this is just a cache because it recreates itself on the fly. The source code doesn't seem to treat it with any special importance if it is not found, but there is a bug that tries to parse an empty string on line 512.

Looking into the source of org.eclipse.osgi it looks like these files are somehow managed with a timestamp, so if you're doing anything that will mess with the timestamps then you'll run into this issue. I use git to manage my eclipse installation so i can revert to an earlier version if a newly installed feature starts stepping on my karma. Ran into this issue after reverting. Added it to .gitignore.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文