Eclipse error on startup

Eclipse worked fine last night, but this morning I tried to run it, and I came across this error:

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

Here 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 it and work, and reinstalling and resetting all my plugins and settings is simply not an option at the moment.

+4
source share
3 answers

It’s best to use a new copy of the eclipse and indicate the location of the workspace that you used in the old eclipse. Thus, you will not lose your settings and 100% avoid startup errors.

+1
source

I had the same problem. After some debugging, I tried to delete the following folders from the eclipse directory

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

This fixed the problem for me. No side effects. I think this is just a cache, because it recreates itself on the fly. The source code does not seem to relate to it with particular importance if it is not found, but there is an error due to which it tries to parse an empty line in line 512 .

Looking at the source of org.eclipse.osgi, it looks like these files are somehow timestamped, so if you do something that will mess with timestamps then you will run into this problem. I use git to control my eclipse installation, so I can revert to an earlier version if a new installed function starts to step on my karma. After that I returned to this question. Added it to .gitignore.

+11
source

Try at least restarting eclipse with the -clean .
Check also (just in case) your disk space! This can happen when there is not enough disk space left, as the code shows , it reads the lines (presumably Integer) from the file.

Try also updating your java used to run eclipse to the latest version (u19 instead of u13)

This stacktrace error was reported in error 113596 about some version of Vista: which OS are you using and has it been updated recently? (for example, when updating Windows)

+5
source

Source: https://habr.com/ru/post/1306303/


All Articles