Error starting Eclipse Indigo
I have been using eclipse for a few years now for the majority of my development now fr all of my development, recenly I upgraded to the Indigo release of Eclipse. This morning on the train I was presented with a popup directing me to a logfile with the error below:
!ENTRY org.eclipse.osgi 4 0 2011-10-27 07:41:06.158
!MESSAGE Startup error
!STACK 1
java.lang.ExceptionInInitializerError
at org.eclipse.osgi.framework.internal.core.Framework.initializeProperties(Framework.java:378)
at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:200)
at org.eclipse.osgi.framework.internal.core.Framework.(Framework.java:162)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:261)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at java.net.InetAddress.getLocalHost(InetAddress.java:1356)
at org.eclipse.osgi.framework.internal.core.UniversalUniqueIdentifier.getIPAddress(UniversalUniqueIdentifier.java:146)
at org.eclipse.osgi.framework.internal.core.UniversalUniqueIdentifier.computeNodeAddress(UniversalUniqueIdentifier.java:113)
at org.eclipse.osgi.framework.internal.core.UniversalUniqueIdentifier.(UniversalUniqueIdentifier.java:35)
... 12 more
The fix that I found to resolve the crash was to delete the preferences (plist) file for Eclipse on the mac. The file is called ‘org.eclipse.eclipse.plist’ and can be found by navigating to ‘/Users/<username>/Library/Preferences/’.
I deleted the file and tried starting Eclipse and it has been smooth sailing from there.
I would love to know if others are having this issue? and is it something I can expect to be doing often?